This repository contains OCR implementations in Java.
-
This example illustrates OCR implementation using Tesseract Library. [Source Code]
- Download eng.traineddata from https://github.com/tesseract-ocr/tessdata, in a folder named tessdata.
- Get a sample image (Grayscale converted) with something written on it.
- Add tess4j dependency in pom.xml
- Follow the source code which will read the text/numeric written on image.
-
This example illustrates OCR implementation using Microsoft Azure Cognitive Services. [Source Code]
- Login into Microsoft Azure
- Create a Computer Vision Resource
- Fill the necessary fields, post that we get the Endpoint and Keys
- Make use of them in the source code to enjoy the OCR service from Microsoft.