OCR class features sikuli IDE
Hi I currently have something like:
while 1:
try:
myValue = int(region.text())
if myValue>60:
#do something
except:
#do something else
The values tesseract return are mostly accurate but there is always a special character or letter attached that messes everything up. I would like tesseract to ignore all special characters aside from integers 0-9, I've seen dozens of similar threads but usually they amount to use bigger font etc etc or read the docs, I've read the tesseract documentation and working with text and ocr features.
I know in python it might look something like:
custom_config = r'--oem 3 --psm 6 outputbase digits'
print(pytessera
or
custom_config = r'-c tessedit_
print(pytessera
but how do I implement in sikuli ide 2.0.3?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: