What steps will reproduce the problem?
1.when looping tesseract function to recognize multiple images
2.
3.
What is the expected output? What do you see instead?
the expected to release the memory for ever instant object of tesseract however
the memory is increased every time we create instant tesseract object
Please use labels and text to provide additional information.
example code in objective see, this function is looped for multiple images
however the app is crash because of memory problem
-(void)recognizeImageWithTesseract:(UIImage *)img
{
UIImage *testb = [img blackAndWhite];
Tesseract* tesseract = [[Tesseract alloc] initWithLanguage:@"eng+ita"];
tesseract.delegate = self;
[tesseract setVariableValue:@"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz+-/*._=':!)(" forKey:@"tessedit_char_whitelist"]; //limit search
[tesseract setImage:testb];
[tesseract recognize];
recognizedText = [tesseract recognizedText];
tesseract = nil; //deallocate and free all memory
}
Original issue reported on code.google.com by hossam.h...@gmail.com on 2 Nov 2014 at 10:43
Original issue reported on code.google.com by
hossam.h...@gmail.com
on 2 Nov 2014 at 10:43