This is a Python-based application for detecting characters on vehicle license plates using Tkinter, OpenCV, EasyOCR, and ttkbootstrap. The application enables real-time processing of camera feeds or static images and displays recognized characters with confidence levels.
- Real-Time Camera Feed: Display live video feed from the camera.
- Character Recognition: Detect and identify text on license plates using EasyOCR.
- Image Processing: Apply thresholding, noise removal, dilation, and erosion to enhance image quality.
- Confidence Display: Shows OCR accuracy and overlays the recognized text on the image.
- Reset Options: Reset sliders or return to live camera mode for quick adjustments.
- Python 3.8 or later
- Required libraries:
ttkbootstrap
Pillow
OpenCV
(cv2
)numpy
EasyOCR
Install the dependencies via pip:
pip install ttkbootstrap pillow opencv-python-headless numpy easyocr
-
Run the Application:
python license-detection-easy-ocr.py
-
Application Interface:
- Live Camera Feed: The application starts in camera mode, displaying the live feed.
- Capture Image: Click the Capture button to freeze the current camera frame.
- Image Processing: Use sliders to adjust thresholding, noise removal, dilation, and erosion to enhance the image.
- OCR: Click the Identify button to detect characters on the processed image.
- Reset: Reset the image or return to live camera mode as needed.
-
OCR Results:
- The recognized text is displayed on the image along with its confidence level.
- If date patterns are detected, the expiration status is calculated and displayed.
- Camera Issues: Ensure your device camera is functional and accessible.
- Text Detection Errors: Adjust sliders to improve text visibility for OCR.
- EasyOCR for text recognition.
- ttkbootstrap for the stylish user interface.
- OpenCV for image processing.
Cheers