mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
try to drop cache before OCR
This commit is contained in:
@@ -117,6 +117,7 @@ function KoptInterface:getOCRWord(doc, pageno, rect)
|
||||
if cached then
|
||||
local kc = self:waitForContext(cached.kctx)
|
||||
local fullwidth, fullheight = kc:getPageDim()
|
||||
--os.execute("echo 3 > /proc/sys/vm/drop_caches")
|
||||
local ok, word = pcall(
|
||||
kc.getOCRWord, kc,
|
||||
self.tessocr_data,
|
||||
|
||||
Reference in New Issue
Block a user