Giter VIP home page Giter VIP logo

text-recognition's Introduction

Text-Recognition Using OpenCV and Tesseract OCR

Computer don't have the ability to process the videos and images on their own like humans. We can interpret any kind of images to a large extent but the machines lack this ability.

Computer Vision gives them this ability to interpret digital images and videos. Computer Vision is about teaching the computer to see and interpret and process these images for better understanding. Computer Vision is about how computer can gain high level of understanding from digital images.

Field of Use:

  • Self Driving Cars
  • Facial Recognition
  • Malicious object detection for security purpose

OpenCV is an open source computer vision library for image processing, Machine Learning. It is a cross platform library.Some of its use cases are:

  • It includes interfaces for C, C++, Java, and Python
  • It is used to process static images
  • It is also used to process offline videos and/or streaming videos

Tesseract OCR is an optical character recognition engine, which has the ability to recognize words and text files.

In this project I have used OpenCV and Tesseract OCR to process a text image to detect the words in the image.
The project work includes

  • Importing an Image from the local computer, or
  • Downloading an Image over the Internet using urllib.request module
  • When the image is loaded it is read using imread() function from the cv2 module. The image read by the imread function is by default in BGR format and needs to be converted to Gray scale image before processing for better text recognition. After the image is converted into the desired scale of colors it is resized and then using the Gaussian Blur technique it is formatted. After formatting of the image, the image is then passed through the Tesseract OCR to return a string which is then processed to return the final text contained in the image.

    Visual Represenation


    I NEVER DREAMED ABOUT SUCCESS. I WORKED FOR IT


    My love said she would marry only me
    And Jove himself could not make her care. For what women say to lovers, you'll agree lone writes on running water or on air.

    Sin of self-love possesseth all mine eye And all my soul and all my every part;
    land for this sin there is no remedy,
    It is so grounded inward in my heart.

    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.