My OCR function seems to be faulty

Asked by helloworld

I want to recognize characters in pictures,

str=find("1655300729149.png").text()
print(str)

Returns the result:
[error] java.lang.Error ( java.lang.Error: Invalid memory access )

Question information

Language:
English Edit question
Status:
Expired
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

what version of SikuliX? what system?

Revision history for this message
helloworld (sdxhrww666) said (last edit ):
#2

sikulixide-2.0.5-win.jar ,Windows 10 21H2 x64,JAVA18.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

please reproduce with Java 17 (I only support Java LTS versions 11+)

Revision history for this message
helloworld (sdxhrww666) said :
#4

I retryed with Java 17, prompting java.lang.Error: Invalid memory access

Revision history for this message
RaiMan (raimund-hocke) said :
#5

ok, I will check.

try it this way:
match=find("1655300729149.png")
str = Region(match).text()

Revision history for this message
helloworld (sdxhrww666) said (last edit ):
#6

Nothing has changed:

[error] script [ sikulix ] stopped with error in line 2
[error] java.lang.Error ( java.lang.Error: Invalid memory access )
[error] --- Traceback --- error source first
line: module ( function ) statement
2: main ( <module> ) str = Region(match).text()
[error] --- Traceback --- end --------------

Please help me

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.