- use case for read slip payment https://aofiee.dev/ocr-scan-text/
pipenv install opencv-python
pipenv install tesseract-ocr
pipenv install tesseract
# for mac
brew install tesseract
brew install tesseract-langpipenv install opencv-python
pipenv install tesseract-ocr
pipenv install tesseract
# for mac
brew install tesseract
brew install tesseract-lang| import cv2 | |
| import pytesseract | |
| def ocr_core(img): | |
| text = pytesseract.image_to_string(img) | |
| return text | |
| img = cv2.imread('captcha.png') | |
| print(ocr_core(img).strip()) |