← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #680605]: Tesseract reads most numbers correctly but not all. how to improve ?

 

Question #680605 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680605

    Status: Answered => Open

MP is still having a problem:
1.1.4

 r = Region(1059,318,18,17)
 regiononchangecheck = Region(1056,316,342,23)

    tr = TextOCR.start()
    tr.setPSM(6)
    
    def eventstop(event):
        event.stopObserver()
      
    regiononchangecheck.onChange(eventstop)
    regiononchangecheck.observe(1000000)
    

    print ("NumberCheck: ") + r.text()


    if int(r.text()) == 5:
         print ("0")
         action1 (click, etc)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.