Skip to content

This is a tesseract based OCR to read from seven segment display.

Notifications You must be signed in to change notification settings

DevashishPrasad/LCD-OCR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

LCD-OCR

This is a tesseract based OCR to read from seven segment display.

This is not generalized solution. The satements and parameters of some funtions will changed according to the texture, color, lighting effect and visibility of text of image.

Tesseract is an open-sourced OCR which is capable of reading text from papers, pdfs and other clean formats. Tesseract fails when tried to perform OCR on noisy and dirty images (for eg. Embossed or Engraved text). The code uses opencv image filtering techniques to filter the images as clean as possible and then feeds it to Tesseract.

Dependencies

Python
OpenCV
Tesseract
Numpy
imutils

Example

Detecting white colored pixels

Picture not availble in your browser

Edged image (canny)

Picture not availble in your browser

Dilated image

Picture not availble in your browser

Inverted threshold image

Picture not availble in your browser

Results

Picture not availble in your browser

Sample results -

Picture not availble in your browser

Picture not availble in your browser

Picture not availble in your browser

Picture not availble in your browser

Picture not availble in your browser

Picture not availble in your browser

Picture not availble in your browser

The code may fail sometimes but tuning parameters of canny and appropriate dialation may improve results. For more accuracy you need to train tesseract for LCD font. Training tesseract for your font is not difficult and it will give your ocr very high level accuracy. I have not trained my tesseract for LCD font.

About

This is a tesseract based OCR to read from seven segment display.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages