OCR Useage
How do I use OCR have found no Examples
So I tried
setRect(
highlight(1)
v = text()
print v
Result
[error] java.lang.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Sikuli Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jeff_Vallis
- Solved:
- 2020-04-06
- Last query:
- 2020-04-06
- Last reply:
- 2020-04-05
Jeff_Vallis (vallis-pj) said : | #1 |
Forgot again :-
2.0.1-2019-
RaiMan (raimund-hocke) said : | #2 |
please try with latest 2.0.4
jerome (jerome2-gill) said : | #3 |
I have 2.0.4 and simply installing the packages tesseract-ocr libtesseract-dev continues to result in a NoClassDef error.
Can we at least get some documentation on this please?
Jeff_Vallis (vallis-pj) said : | #4 |
Downloaded and 2.0.4
now
2.0.4-2020-
ran
setRect(
highlight(1)
v = text()
print v
Result -
Web page Loaded
https:/
Followed Instruction :-
brew install tesseract
tesseract -v
Result :-
tesseract 4.1.1
leptonica-1.79.0
libgif 5.2.1 : libjpeg 9d : libpng 1.6.37 : libtiff 4.1.0 : zlib 1.2.11 : libwebp 1.1.0 : libopenjp2 2.3.1
Found AVX2
Found AVX
Found FMA
Found SSE
Ran again :
with regions on the Web Page Loaded
x1 = Region(
setRect(
highlight(1)
v = text()
print "^ " * 40
print v
print "^ " * 40
x1 = Region(
setRect(
highlight(1)
v = text()
print "^ " * 40
print v
print "^ " * 40
exit(0)
Result :-
[log] highlight R[562,529 117x17]@S(0) for 1.0 secs
[log] highlight R[171,616 649x22]@S(0) for 1.0 secs
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
libtiff 4.0.10
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
This might work as well with other package managers like MacPorts, Finch, ..., but is not tested.
^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^
[info] Exit code: 0
So without testing my actual code it appears to be ok.