Re: [Sikuli-driver] [Question #688372]: how to use sikulix's ocr in eclipse

2020-02-06 Thread wu
Question #688372 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688372

Status: Answered => Solved

wu confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #688372]: how to use sikulix's ocr in eclipse

2020-02-04 Thread RaiMan
Question #688372 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688372

Status: Open => Answered

RaiMan proposed the following answer:
use
OCR.globalOptions().dataPath() 
OCR.globalOptions().language()

or the respective Settings attributes.

see the docs:
https://sikulix-2014.readthedocs.io/en/latest/textandocr.html#have-your-own-tesseract-datapath
https://sikulix-2014.readthedocs.io/en/latest/textandocr.html#switch-to-another-language

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #688372]: how to use sikulix's ocr in eclipse

2020-02-03 Thread wu
Question #688372 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688372

Status: Solved => Open

wu is still having a problem:
i use your solution but have not change the languae。 
any  do i mistake?

my code:

OCR.Options o = new OCR.Options();
o.dataPath("C:\\Program Files (x86)\\Tesseract-OCR\\tessdata");
o.language("chi_tra");

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #688372]: how to use sikulix's ocr in eclipse

2020-02-03 Thread RaiMan
Question #688372 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688372

RaiMan posted a new comment:
Read about languages in:
https://sikulix-2014.readthedocs.io/en/latest/textandocr.html

find the methods in the JavaDocs:
https://raiman.github.io/SikuliX1/javadocs/org/sikuli/script/OCR.html

subClass OCR.Options

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #688372]: how to use sikulix's ocr in eclipse

2020-02-02 Thread wu
Question #688372 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688372

wu posted a new comment:
 i have a new question how to set the oce language  by java ?

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #688372]: how to use sikulix's ocr in eclipse

2020-02-02 Thread wu
Question #688372 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688372

Status: Answered => Solved

wu confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #688372]: how to use sikulix's ocr in eclipse

2020-01-31 Thread RaiMan
Question #688372 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/688372

Status: Open => Answered

RaiMan proposed the following answer:
Just use the latest 2.0.2, where Text/OCR is completely revised
(simplified on one hand and open for any Tesseract-tweaking on the
other).

Read an overview:
https://sikulix-2014.readthedocs.io/en/latest/textandocr.html

javadocs about the new OCR features:
https://raiman.github.io/SikuliX1/javadocs/org/sikuli/script/OCR.html

The class OCR allows to read text from various SikuliX sources and to
identify lines and words as matches/regions.

Come back, if you need to find text in a Region (since I am currently
busy to revise/complete the docs).

But with some luck you might find what you need already in the current Region 
javadoc:
https://raiman.github.io/SikuliX1/javadocs/org/sikuli/script/Region.html

-- 
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 : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp