I can not read the text in the image

Asked by Aydın

Windows 10
Sikuli 2.0.4
Java 11 (x64)

tesseract v4.0.0.20190314
 leptonica-1.78.0
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.3) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.2.0
 Found AVX2
 Found AVX
 Found SSE

I read a lot of articles on this forum but I can't this. Sorry.

#CODE
OCR.globalOptions().dataPath("C:\\Program Files\\Tesseract-OCR\\tessdata")
OCR.globalOptions().language("eng")
Region.text(0,0,100,100)

# ------- image
        https://ibb.co/xKZfq49

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
masuo
Solved:
Last query:
Last reply:
Revision history for this message
Best masuo (masuo-ohara) said :
#1

Try this code.

extractstr = Region(0,0,100,100).text()
print extractstr

Revision history for this message
Aydın (adn72) said :
#2

that's great.
This works for me

Revision history for this message
Aydın (adn72) said :
#3

Thanks masuo, that solved my question.