try to drop cache before OCR

This commit is contained in:
chrox
2013-04-27 17:48:59 +08:00
parent 19f227f7b1
commit 1a8bd4ca8c

View File

@@ -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,