dimdenGD / chrome-lens-ocr

Library to use Google Lens OCR for free, via API used in Chromium.
165 stars 6 forks source link

Local jpg File not working but url works #19

Open Automatorbd opened 1 month ago

Automatorbd commented 1 month ago

error processing 5.jpg: Error: File type not supported at Lens.scanByData (file:///home/chrome-lens-ocr-main/node_modules/chrome-lens-ocr/src/core.js:210:19) at processImages (file:///home/sayed/ocr/af/chrome-lens-ocr-main/local.js:23:33)

dimdenGD commented 1 month ago

You didn't include the file so it's impossible to fix

Automatorbd commented 1 month ago

hi thank you for your prompt reply. seems like using sudo node detect.js fixes the problem . I have question . what is the limit of using this . is there any probability that google is going to block this ?

dimdenGD commented 1 month ago

I don't know specific limit but if you use it too much Google can start asking to complete captcha

Automatorbd commented 1 month ago

okay so is there any plan to make a bypass system if google do this ?

dimdenGD commented 1 month ago

no

Automatorbd commented 1 month ago

anyway kudos . its a great work <3