← Back to team overview

sikuli-driver team mailing list archive

[Bug 1224811] Re: [1.0.1] improvements for text recognition

 

** Changed in: sikuli
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1224811

Title:
  [1.0.1] improvements for text recognition

Status in Sikuli:
  Fix Released

Bug description:
  ------------ small fonts
  ... more background info in the related question
  Improvement in OCR recognition with small images (thanks to Jose Damian)

  Anyway, I think it is an error to use interpolation to enlarge these small images. Given that it is needed an image height greater than 30 pixels, the best solution for me has been to enlarge the image adding pixels to the border:
  ---------------
  if (in_img.rows < MIN_HEIGHT){
     scale = ceil(MIN_HEIGHT / float(in_img.rows));
     copyMakeBorder (in_img, out_img, 0, (scale-1)*in_img.rows, 0, (scale-1)*in_img.cols, BORDER_REPLICATE);
  ---------------

  This solution achieves near perfect recognition with my image samples.
  I don't know if this is the right treatment for all kinds of small images and could be included in a future release; but at least it is a change that people can try if they have problems recognizing small fonts.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1224811/+subscriptions


References