diff --git a/examples/file-input/demo.html b/examples/file-input/demo.html index 0b65a86..39a696e 100644 --- a/examples/file-input/demo.html +++ b/examples/file-input/demo.html @@ -36,7 +36,11 @@ function progressUpdate(packet){ } function recognizeFile(file){ - Tesseract.recognize(file) + document.querySelector("#log").innerHTML = '' + + Tesseract.recognize(file, { + lang: document.querySelector('#langsel').value + }) .progress(function(packet){ console.info(packet) progressUpdate(packet) @@ -48,7 +52,75 @@ function recognizeFile(file){ }) } - + +