GithubHelp home page GithubHelp logo

tilt-scene-text-ocr's Introduction

Tilt-Scene-Text-OCR

Reads Scene Text in Tilted orientation.

Tested on following IDEs

  • Visual Studio 2013
  • Visual Studio 2015

Dependencies

You can acquire the following using NuGet Package Manager

  • EMGU.CV.3.3
  • Tesseract.3.0.2.0

Overview

This is done by the following steps

  1. Initialize necessary parameters.
  2. Start the image acquisition from the camera.
  3. Apply Canny Algorithm and Thresholding.

Fig. 1 - Canny Algorithm + Thresholding

Fig. 1 - Canny Algorithm + Thresholding

  1. Apply Closed Morphology and Erosion

Fig. 2 - Closed Morphology + Erosion

Fig. 2 - Closed Morphology + Erosion

  1. Apply Dilation

Fig. 3 - Dilation

Fig. 3 - Dilation

  1. Find the Contours of the Dilated image. Then acquire each Region of Interests (ROI) in terms of Rotated Rectangle.

  2. Determine the Tilt Orientation and Angles of each acquired Contour Rotated Rectangles.

Fig. 4 - Tilt Orientation and Angle (in Degrees)

Fig. 4 - Tilt Orientation and Angle (in Degrees)

  1. For each Contour Rotated Rectangles -- crop it from the Grayscaled original input image and apply image rotation based on its Tilt Orientation and its Tilt Angle.

  2. Apply Tesseract APIs OCR, and this will be the actual result.

  • This example is tilted and oriented upside down.

Fig. 5 - Tilted and oriented upside down

Fig. 5 - Tilted and oriented upside down

  • This example is tilted to the left.

Fig. 6 - Tilted to the left

Fig. 6 - Tilted to the left

  • This example is tilted to the right.

Fig. 7 - Tilted to the right

Fig. 7 - Tilted to the right

Miscellaneous

  • Make sure that Tesseract's tessdata folder exists inside the directory of the executable.

tilt-scene-text-ocr's People

Contributors

jumzzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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