opencv / opencv_contrib

Repository for OpenCV's extra modules
Apache License 2.0
9.31k stars 5.74k forks source link

example_text_end_to_end_recognition malloc: *** error : pointer being freed was not allocated #870

Closed LABCAO closed 7 years ago

LABCAO commented 7 years ago
System information (version)
Detailed description

While running end_to_end_recognition.cpp, encountered error: "Default classifier file not found!" in ERClassifierNM1.

Steps to reproduce
sovrasov commented 7 years ago

@LABCAO please attach additional information. The sample end_to_end_recognition works only if startup folder contains trained_classifierNM1.xml and trained_classifierNM2.xml.

LABCAO commented 7 years ago

When the startup folder contains trained_classifierNM1.xml and trained_classifierNM2.xml, I would encounter this error:

A demo program of End-to-end Scene Text Detection and Recognition: Shows the use of the Tesseract OCR API with the Extremal Region Filter algorithm described in: Neumann L., Matas J.: Real-Time Scene Text Localization and Recognition, CVPR 2012

IMG_W=600 IMG_H=629 example_text_end_to_end_recognition(19607,0x7fff74c04000) malloc: error for object 0x82f589602d20: pointer being freed was not allocated set a breakpoint in malloc_error_break to debug Abort trap: 6

LABCAO commented 7 years ago

Problem no longer exists after applying fixes for issue #872. Thanks a lot!!

sovrasov commented 7 years ago

Resolved in #876