How To Grab Image

green726
4 years ago | edited 4 years ago

0

I have Tesseract.js and am using a browser extension to inject code that will get the image and run OCR and input the reversed text into box. However, when i run OCR it returns text that i can see is completely different from the image. I decided to test this on a different image(some random shakespeare quote) and it worked perfectly. Im assuming that i am getting the captcha image incorrectly. Currently, I am trying to get all img tags on the page and grab the 2nd one(the captcha img) using document.getElementByTagName('img'). I know you cant just refrence the PHP file generating the image because that will give you a completely different one than the img needed. Any hints on how to grab the image?  
0replies
1voice
336views
You must be logged in to reply to this discussion. Login
1 of 1

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss