Skip to content

Python 3 port may have broken ocr.py #5

@VickyFrenzy

Description

@VickyFrenzy

#3's cb0530f and/or #4's 356e77f have changed tesseract to pytesseract but I don't think they are the same thing (or it was a really old version) since I'm getting this error:

Traceback (most recent call last):
  File "ocr.py", line 224, in <module>
    main()
  File "ocr.py", line 219, in main
    blurbs = ocr_on_bounding_boxes(binary, components)
  File "ocr.py", line 134, in ocr_on_bounding_boxes
    api = pytesseract.TessBaseAPI()
AttributeError: module 'pytesseract' has no attribute 'TessBaseAPI'

The ocr.py code may need to be rewritten to work with (latest) pytesseract.
https://github.com/madmaze/pytesseract

I'm on Python 3.8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions