This Python script demonstrates how to perform text detection and recognition on images using EasyOCR and OpenCV. It draws bounding boxes around detected text regions and displays the images with the recognized text.
- Python 3.x
- easyocr library (
pip install easyocr
) - opencv-python library (
pip install opencv-python
) - matplotlib library (
pip install matplotlib
)
-
Install the required Python libraries using the provided commands:
pip install easyocr opencv-python matplotlib
-
Clone or download this repository to your local machine.
-
Navigate to the directory containing the script
text_detection_recognition.py
. -
Replace the
image
variable with the list of image paths you want to process. -
Set the
threshold
variable to adjust the confidence threshold for accurate text recognition. -
Run the script: