naptha / tesseract.js

Pure Javascript OCR for more than 100 Languages 📖🎉🖥
http://tesseract.projectnaptha.com/
Apache License 2.0
34.98k stars 2.21k forks source link

Tesseract process not ending #161

Closed wlwl2 closed 5 years ago

wlwl2 commented 6 years ago

Hi,

I was wondering if this is normal and the reason behind this. I have to press ctrl-c twice to end the process on Windows 10. I ran node this-file.js. The english training data and myImage.png is in the same folder as this-file.js. I would think that once the entire job is done, the process can end?

Contents of this-file.js:

var Tesseract = require('tesseract.js')
var image = 'myImage.png'
Tesseract.recognize(image)
  .progress(function (p) { console.log('progress', p) })
  .then(function (result) { console.log(result) })
aalvrz commented 6 years ago

See #88

updesktop commented 4 years ago

it's really frustrating. how to stop it? I'm going back to ocrad!