Git Product home page Git Product logo

embossed-text-reader's Introduction

Embossed-Text-Reader

This is a tesseract based OCR to read Embossed text on metals. It can also be use as a general OCR.

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

There are three files -

  1. picture_from_webcam.py clicks a single picture from webcam and performs OCR on it
  2. read_from_disk.py loads a picture from an image file
  3. video_from_webcam.py feeds the realtime video from the webcam (doesn't perform as expected)

Example

Edged image (canny) with dialation

Picture not availble in your browser

Finding and deleting unessesary contours

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

The code may fail sometimes but tuning parameters of canny and appropriate dialation will improve results

Data.zip contains all data I have used during implementation of this project

embossed-text-reader's People

Contributors

devashishprasad avatar idkyamhere 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.