text line overlay

22 views
Skip to first unread message

haratron

unread,
Dec 21, 2016, 11:27:51 PM12/21/16
to tesseract-ocr
I'm using this snippet to crop an input image into textlines:

Boxa* boxes = api->GetComponentImages(tesseract::RIL_TEXTLINE, true, false, 0, NULL, NULL, NULL);
for (int i = 0; i < boxes->n; i++) {
    BOX* box = boxaGetBox(boxes, i, L_CLONE);
    PIX* pixd= pixClipRectangle(image, box, NULL);
//etc

Is there another function I can use to have the detected textlines overlaid on the original image? Or even better make an exact crop (mask) of the image instead of getting the rectangle? 


Reply all
Reply to author
Forward
0 new messages