4 ms·
If you want to use a real Promise, you can wrap the call to recognize in Promise.resolve: Promise.resolve(Tesseract.recognize(myImage)).then(result => consol
by bijection 10y ago
If you want to use a real Promise, you can wrap the call to recognize in Promise.resolve:
Promise.resolve(Tesseract.recognize(myImage)).then(result => console.log(result))