In Tesseract you can input the frame in an image which you need to scan. So If you set frame of a paragraph it will scan that that particular area only and will return text in that area. Thus you can separate scan each paragraph.
Go to Tesseract.mm file and add this code there.
- (void)setRect:(CGRect)rect {
_tesseract->SetRectangle(rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
}
Go to Tesseract.h file and define method :
- (void)setRect:(CGRect)rect;
Then you can set frame before calling recognizedText
[tesseract setRect:CGRectMake(0, 0, 100, 100)];
[tesseract recognizedText];