get the exact position of text from image in tesseract

前端 未结 2 1411
没有蜡笔的小新
没有蜡笔的小新 2021-02-01 09:36

Using GetHOCRText(0) method in tesseract I\'m able to retrieve the text in html and on presenting the html in webview i\'m able get the text but the postion of text in image is

2条回答
  •  一向
    一向 (楼主)
    2021-02-01 10:18

    GetBoxText() method will return exact position of each characters in an array.

    char *boxtext = _tesseract->GetBoxText(0);
    NSString* aBoxText = [NSString stringWithUTF8String:boxtext];
    

提交回复
热议问题