← Back to team overview

sikuli-driver team mailing list archive

[Bug 1318624] Re: TextRecognizer using transformed capture still give the same results as original image

 

What I tried was something like this:

ScreenImage origImage = new Screen().capture(someRegion);
BufferedImage myBufferedImage = transform(origImage.getImage());
ScreenImage si = new ScreenImage(new java.awt.Rectangle(someRegion.getX(),someRegion.getY(),someRegion.getW(),someRegion.getH()), myBufferedImage)

and later:
TextRecognizer.listText(si, someRegion);


but the result was exactly the same as calling:

TextRecognizer.listText(origImage, someRegion);

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

Title:
  TextRecognizer using transformed capture still give the same results
  as original image

Status in Sikuli:
  Incomplete

Bug description:
  Hi,
  I tryed using TextRecognizer listText(ScreenImage simg, Region parent) method passing a newly created ScreenImage that I produce bynarizing the original screen capture so I can read easily a complex image, but the resulting List of Match classes give the same results that are obtained using the original ScreenImage. It seems this method uses the Region instead of the ScreenImage as source for the OCR

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


References