Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chekoduadarsh/image-to-text-converter-ocr

🖼️ ➡️ 📜
https://github.com/chekoduadarsh/image-to-text-converter-ocr

api google google-vision google-vision-api ocr ocr-recognition opencv python3 tesseract tesseract-ocr

Last synced: 14 days ago
JSON representation

🖼️ ➡️ 📜

Awesome Lists containing this project

README

        

# Image to Text Converter-OCR (python 3.x)
The attached code is a simple code which will convert Image into text using tesseract and google vision api.

# Tesseract OCR
Tesseract is an optical chraracter recognition library used in python but its efficiency is very low compared with Google vision API but we can increase contrast or create binary image using opencv to enhance the output.
to install tesseract:-
https://www.linux.com/blog/using-tesseract-ubuntu

In the given code i have applied binary image convertion to get better output
Required libraries
OPEN CV
TESSERACT OCR
numpy

# GOOGLE VISION API
This is the most advanced API availible for optical character recognition and it offers other services like face recognition, logo, and landmark detection, etc.

HOW TO USE IT:-
1. Create a project in google console and add vision api to it.
2. In this project go to credentials and create Service account keys
3. Download Service account keys in .json format
4. Give its path in code.
5. RUN