← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #689702]: OCR Useage

 

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

    Status: Answered => Solved

Jeff_Vallis confirmed that the question is solved:
Downloaded and 2.0.4

now 
2.0.4-2020-03-14_08:01/Mac10.15.3/Java13(64)13.0.1+9

ran 
setRect(349,252,117,16)
highlight(1)
v = text()
print v

Result - 
Web page Loaded
https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-libraries-for-Tess4J-Tesseract-4-OCR

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(562,529,117,17)
setRect(x1.x,x1.y,x1.w,x1.h)
highlight(1)
v = text()
print "^ " * 40
print v
print "^ " * 40
x1 = Region(171,616,649,22)
setRect(x1.x,x1.y,x1.w,x1.h)
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.

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