Python 我可以在网页上使用OCR阅读器吗?

Python 我可以在网页上使用OCR阅读器吗?,python,ocr,Python,Ocr,如果可能的话,谢谢 我的代码: 将pytesseract作为tess导入 从PIL导入图像 tess.pytesseract.tesseract\u cmd='C:\\Program Files(x86)\\tesseract OCR\\tesseract.exe' img=Image.open('https://gefefjwefwefjyweftwf.com') text=tess.image\u到\u字符串(img) 打印(文本) 有办法吗???你可以使用WebScraping从网站获取

如果可能的话,谢谢

我的代码:

将pytesseract作为tess导入
从PIL导入图像
tess.pytesseract.tesseract\u cmd='C:\\Program Files(x86)\\tesseract OCR\\tesseract.exe'
img=Image.open('https://gefefjwefwefjyweftwf.com')
text=tess.image\u到\u字符串(img)
打印(文本)

有办法吗???

你可以使用WebScraping从网站获取数据如果你想在网页图像上运行ocr,你可以使用urllib从网站下载图像,然后在上面运行ocr好的,我会检查。。