Pytesseract is too slow. How can I make it process images faster?

前端 未结 1 1002
庸人自扰
庸人自扰 2021-01-14 18:50

I am using pytesseract in the below code:

    def fnd():
    for fname in list:
        x = None
        x = np.array([np.array(PIL.Image.open(fname))])
             


        
1条回答
  •  隐瞒了意图╮
    2021-01-14 19:20

    Pytesseract writes and reads every image you pass it. This is unnecessary when running 35 images. Instead, you should use a python tesseract API interface. This will be significantly faster.

    0 讨论(0)
提交回复
热议问题