Skip to content

Este projeto é uma implementação de Reconhecimento Óptico de Caracteres (OCR) utilizando as bibliotecas PyTesseract e OpenCV em Python. A combinação dessas poderosas ferramentas permite a extração eficiente de texto a partir de imagens, abrindo portas para aplicações diversas, como processamento de documentos, automação de tarefas e reconhecimento.

Notifications You must be signed in to change notification settings

igorxcardoso/ocr-fast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCR with Python, Tesseract, and OpenCV

This project demonstrates Optical Character Recognition (OCR) on images using Python, Tesseract, and OpenCV.

Requirements

  • Python
  • OpenCV
  • Tesseract

Setup

  1. Install the required packages:
    • Download and install Tesseract from here.
  2. Update the tesseract_cmd variable in run.py with the path to the Tesseract executable on your system.

Usage

  1. Place the image you want to perform OCR on in the img directory.
  2. Update the cv2.imread function in run.py with the path to your image.
  3. Run the script:
python run.py

The script will load the image, convert it to grayscale (optional, depending on the image), and then apply OCR using Tesseract. The resulting text will be printed to the console.

Note

  • The current script is set to recognize the Portuguese language. If you want to use another language, change the lang parameter in the pytesseract.image_to_string function to the appropriate language code. You can find the list of supported languages here.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.

About

Este projeto é uma implementação de Reconhecimento Óptico de Caracteres (OCR) utilizando as bibliotecas PyTesseract e OpenCV em Python. A combinação dessas poderosas ferramentas permite a extração eficiente de texto a partir de imagens, abrindo portas para aplicações diversas, como processamento de documentos, automação de tarefas e reconhecimento.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published