I'll be somewhat surprised if there's anything in JS that does text character recognition from images. You'd probably have to upload the image to the server and have something running there that can do that. A quick search in github suggests they have lots of OCR (optical character recognition) repositories.