Giter Club home page Giter Club logo

ocr_python_fast_track's Introduction

FastTrack de OCR em Python com Tesseract

Retirando facilmente texto de imagem com Python.

Diga "Oi"

🏃 Fast Track

$ git clone https://github.com/hideraldus13/ocr_python_fast_track.git
$ cd ocr_python_fast_track
$ pip install -r requirements.txt

//Comandos para Windows. Linux ou Mac não sei como funciona, mas é por aí.

🍬 Testando a aplicação

$ python ocr.py

Veja que a saída no console é o texto da imagem teste.png disponível neste repositório.

💥 Deu erro?

pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path
  • Procure no arquivo ocr.py o comando:
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe'
  • Altere o valor para o local onde o Tesseract foi instalado
pytesseract.pytesseract.tesseract_cmd = r'SEU CAMINHO AQUI\tesseract.exe'

😈 Mais, eu quero mais

Neste repositório há também o arquivo preprocessing.py que traz algumas rotinas de preparação da imagem com o OpenCV, para melhorar a performance do OCR. Utilize do código comentado em ocr.py e brinque à vontade. 🎁

💾 Fonte original de pesquisa:

https://nanonets.com/blog/ocr-with-tesseract/

ocr_python_fast_track's People

Contributors

hideraldus13 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.