How to use ocr in sikuli using python

Asked by Ju1+i-我. on 2017-11-30

This task is to do a monitoring script, in general , input different TCodes in sap system, you kknow a TCode may have many items , so I need to add loop to traverse each item under the TCodes to determine if their status is in red light ,if yes,then take a screenshot. another function is to determine the title of Time of each item under the TCode is more than 10000,if yes ,then calculate the total number.
very anxious , thank you very much in advance .
( I don't know ocr at all ,so I would appreciate if you could help me on this .
thank you so much
looking forward your answer

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

Sounds complex and challenging ;-)

I do not want to discourage you, but if you do not have a good experience in Python scripting, then the you might achieve more frustration than satisfying results.

- you need to understand, how SikuliX works.
- you need to know about the features of SikuliX

for both:
- use latest version:
- read the docs:
- look in the net for examples: searchitem: sikuli examples

- about ocr
The current implementation has many oddities and might not work as expected.
You cannot detect the color of some text with ocr and colored text might not be readable.

In any case:
Before investing into more complex workflows/solutions, you should make some basic tests with the SikuliX IDE on your target SAP GUI.

Can you help with this problem?

Provide an answer of your own, or ask Ju1+i-我. for more information if necessary.

To post a message you must log in.