Skip to content

Tesserwrap exits after calling methods involving get_text() #19

@mturkson23

Description

@mturkson23

Tesserwrap used to work fine for me until that fateful day I updated my Tesseract from 3.02 to 3.03, just because an alpr software recommend .03 and I wanted to also make use of the training materials.
Upon calling:

    tr = Tesseract()
    tr.ocr_image(img)

or get_text() or get_utf8_text(), tesserwrap calls the del function in init.py, self.handle and core is true then tr.Tesserwrap_Destroy(self.handle) simply exits the program, no errors logged (I know this from debugging).

All code below that function call would cease as the main program has been exited.

I commented out tr.Tesserwrap_Destroy(self.handle) and now it works fine again.
I can use tesserwrap on Tesseract 3.03, no worries here
However, I don't believe that hack is best.

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