← 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

 

Using this

ScreenImage origImage = new Screen().capture(someRegion);
BufferedImage myBufferedImage = transform(origImage.getImage());
ScreenImage si = new ScreenImage(someRegion.getRect(), myBufferedImage)

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

then in TextRecognizer.listText definitely your myBufferedImage is used.
someRegion is only used to translate the matches in the BufferedImage bcd to Screen coordinates.

So if the results are the same, then your manipulation does not add
anything, that leads to different results.

-- 
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