Tesseract-OCR-iOS
Tesseract-OCR-iOS copied to clipboard
Memory Issue in GSTesseract.mm in - (BOOL)recognize function
Hello All, Can anybody help me with this error. I am commiting Error in below function
-
(BOOL)recognize { if (self.maximumRecognitionTime > FLT_EPSILON) { _monitor->set_deadline_msecs((inT32)(self.maximumRecognitionTime * 1000)); }
self.recognized = NO; int returnCode = 0; @try { returnCode = _tesseract->Recognize(_monitor); self.recognized = YES; } @catch (NSException *exception) { NSLog(@"Exception was raised while recognizing: %@", exception); } return returnCode == 0 && self.recognized; }
Error Is,
*** error: can't allocate region *** set a breakpoint in malloc_error_break to debug libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
Thanks in advance.