Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tesserocr import PyTessBaseAPI
- images = ['sample1.jpg', 'sample2.jpg', 'sample3.jpg', 'sample4.jpg']
- with PyTessBaseAPI(path='C:/path/to/tessdata/.', lang='eng') as api:
- for img in images:
- api.SetImageFile(img)
- print(api.GetUTF8Text())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement