use pixels from reflowed page when doing OCR in reflowing mode

I hope it will get back OCR accuracy as in build 545.
This commit is contained in:
chrox
2013-10-14 23:05:58 +08:00
parent 2cd5a083ae
commit 9f42289226
5 changed files with 74 additions and 32 deletions

View File

@@ -69,8 +69,12 @@ function DjvuDocument:getPageBoxesFromPositions(pageno, ppos0, ppos1)
return self.koptinterface:getPageBoxesFromPositions(self, pageno, ppos0, ppos1)
end
function DjvuDocument:getOCRWord(pageno, rect)
return self.koptinterface:getOCRWord(self, pageno, rect)
function DjvuDocument:getOCRWord(pageno, wbox)
return self.koptinterface:getOCRWord(self, pageno, wbox)
end
function DjvuDocument:getOCRText(pageno, tboxes)
return self.koptinterface:getOCRText(self, pageno, tboxes)
end
function DjvuDocument:getUsedBBox(pageno)