mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-23 10:56:19 +08:00
Merge pull request #3571 from MerlijnWajer/hocr-write-scan-res
hocrrenderer: write scan_res property to the ocr_page
This commit is contained in:
commit
6998c0ed71
@ -173,8 +173,11 @@ char *TessBaseAPI::GetHOCRText(ETEXT_DESC *monitor, int page_number) {
|
||||
} else {
|
||||
hocr_str << "unknown";
|
||||
}
|
||||
|
||||
hocr_str << "\"; bbox " << rect_left_ << " " << rect_top_ << " " << rect_width_ << " "
|
||||
<< rect_height_ << "; ppageno " << page_number << "'>\n";
|
||||
<< rect_height_ << "; ppageno " << page_number
|
||||
<< "; scan_res " << GetSourceYResolution() << " "
|
||||
<< GetSourceYResolution() << "'>\n";
|
||||
|
||||
std::unique_ptr<ResultIterator> res_it(GetIterator());
|
||||
while (!res_it->Empty(RIL_BLOCK)) {
|
||||
|
Loading…
Reference in New Issue
Block a user