This project uses Tesseract OCR to extract deposit amount from a scanned Maybank ATM receipt image.
Extract the deposit amount from a sample ATM receipt image using computer vision techniques.
- Load the receipt image using OpenCV
- Convert it to grayscale and apply binary thresholding
- Use Tesseract OCR to extract the text
- Use regular expression to find the
RMxx.xx
amount string
- Python 3.12
- OpenCV (
cv2
) - Tesseract OCR
pytesseract
re
(regular expressions)
pip install opencv-python pytesseract
# In main.py
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
python main.py
Expected output:
Detected Deposit Amount: RM25.00