You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The the wiki page APIExample, for the python example, the handle api is is run through the TessBaseAPIDelete function if the api failed to be initialized whereas for the C example, this is not the case.
python:
rc=tesseract.TessBaseAPIInit3(api, TESSDATA_PREFIX, lang)
if (rc):
tesseract.TessBaseAPIDelete(api)
print("Could not initialize tesseract.\n")
exit(3)
Either the python example doesn't destroy the api handle or the api handle is destroyed in the c example.
Suggested Fix:
Change either of the examples so they both do the same thing. I do not know tesseract enough to be able to tell which is the correct one. However, I feel like the correct one would be to add TessBaseAPIDelete to the C example as it seems to be an omission.
The text was updated successfully, but these errors were encountered:
Moved from tesseract-ocr/tesseract#2832.
Current Behavior:
The the wiki page APIExample, for the python example, the handle api is is run through the
TessBaseAPIDelete
function if the api failed to be initialized whereas for the C example, this is not the case.python:
c:
Expected Behavior:
Either the python example doesn't destroy the api handle or the api handle is destroyed in the c example.
Suggested Fix:
Change either of the examples so they both do the same thing. I do not know tesseract enough to be able to tell which is the correct one. However, I feel like the correct one would be to add
TessBaseAPIDelete
to the C example as it seems to be an omission.The text was updated successfully, but these errors were encountered: