diff --git a/base b/base index 57d4cca62..5af9c0e97 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 57d4cca62d6e1f14c32bf883a4d3b3ff63b2a9cd +Subproject commit 5af9c0e97716d94df47ad07a3639263a6ed49e3d diff --git a/frontend/document/koptinterface.lua b/frontend/document/koptinterface.lua index 64897f899..c6f1ba0b7 100644 --- a/frontend/document/koptinterface.lua +++ b/frontend/document/koptinterface.lua @@ -620,7 +620,9 @@ function KoptInterface:getNativeOCRWord(doc, pageno, rect) kc:setZoom(30/rect.h) local page = doc._document:openPage(pageno) page:getPagePix(kc) + --kc:exportSrcPNGFile({rect}, nil, "ocr-word.png") local word_w, word_h = kc:getPageDim() + --DEBUG(word_w, word_h) local ok, word = pcall( kc.getTOCRWord, kc, "src", 0, 0, word_w, word_h,