I want to convert an image DataURL
into a number on javascript
for my chrome extension
The images look like this
In Python
, it is possible with pytesser
or pytesseract
but i don't know how do that with javascript
(and JQuery
) only. There are some libraries that can help me solve this problem or should I do through ajax
and call Python
script on a server? I think it is not possible to call the Python
code directly from a chrome extension
.
Thanks!
I believe OCR is needed, and obvioulsy pytesseract
is just an OCR tool. You could use some JavaScript version OCR library instead, by simply google search, I found this one (I have never used it before).
Or as you said, you could also put your OCR logic at your server side with python implementation, just make an ajax call to query the result.