OpenCV Tesseract Wrapper causes memory leak (Bug #4420)


Added by Tomasz Trzcinski over 9 years ago. Updated over 9 years ago.


Status:Done Start date:2015-06-17
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:contrib/text
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Any
Difficulty: HW Platform:x64
Pull request:

Description

Hi,

Using opencv_text (opencv_contrib) library with Tesseract results in memory leaks, as according to the Tesseract API the char array returned by method GetUTF8Text() have to be deleted by the user. In the module:

file: opencv_contrib-master/modules/text/src/ocr_tesseract.cpp
line 143: output = string( tess.GetUTF8Text());


History

Updated by Vadim Pisarevsky over 9 years ago

  • Category set to contrib/text

Updated by Lluis Gomez over 9 years ago

  • Status changed from New to Done

Also available in: Atom PDF