sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35669
Re: [Question #235487]: Recognize text (OCR) and paste it to a document?
Question #235487 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/235487
Pramendra requested more information:
Hi RaiMan
I am facing one issue. I have written below code.
if i have not saved it, i am getting expected result in "mylog.txt", even i am running multiple times.
But as soon as i saved it, for the first time i am getting correct output in "mylog.txt", and 2nd time onwards, unexpected things getting copied to "mylog.txt", Why so? What is the issue or What i am doing wrong here.
Below logic has been written in Sikuli GUI:
Settings.OcrTextRead = True
reg = Region(16,57,528,24) ## 16,57,528,24 co-ordinatest you will get from "Create Region" Option
score = reg.text()
print score
f=open("C:\mylog.txt" , "w+")
f.write(score)
f.close()
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.