Hello,

I'm making a simple device used to recognize numbers on pictures taken by a 
webcam. All is running on raspberry pi 3.
Everything is like following simple loop (in python for simplicity, but 
using C++ api it is the same), images are preprocessed to black and white

api = PyTessBaseAPI(psm=tesserocr.PSM.SINGLE_WORD)

for im in images:
    api.SetImage(im)
    api.SetSourceResolution(70)
    ot = api.GetUTF8Text()

api.End()


My problem is that api.GetUTF8Text() call is quite slow and more over it is 
getting slower and slower over time. Is there any options how to make 
recognition faster? I have tried to resize the image to around 50x10px. The 
times starts on around 300ms but then goes up to above 1s which is too slow 
for me. I tried both legacy and LSTM algorithms, but they are similar.

best regards
Jan

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/a53b4b25-97e3-47dc-823a-cbb219225eed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to