Question #690210 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/690210

    Status: Open => Answered

RaiMan proposed the following answer:
First of all: please use 2.0.4, so I can help you better.

Second: please send me a sample of such a number image to my mail
sikulix---at---outlook---dot--com (original as shown on screen)

When using the OCR features of SikuliX the image is optimised according
to the recommendations, before giving it down to Tesseract.

I have to admit, that you are talking about an edge case, where the
conversion to grayscale as part of the optimisation, is not sufficient
and black/white is needed.

I will add such an option to version 2.0.5.

With the Mat-conversion I cannot help you in the moment, since the respective 
API, that is used inside of SikuliX, is not accessible from the outside world 
(non-public).
To support such experiments I will make the features image-to-Mat and 
Mat-to-image available in 2.0.5.

You might look at the code and rewrite it in a Jython script, since you
can use Java in this environment.

--- Image-to-Mat
org.sikuli.script.Finder.Finder2.makeMat(BufferedImage bImg, boolean asBGR)

--- Mat-to-image (as .png)
org.sikuli.script.Finder.Finder2.getBufferedImage(Mat mat)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to