Coder Social home page Coder Social logo

open_cv's Introduction

open_cv

Setup

  • Clone (or download) the repository:
git clone [email protected]:Paulinakhew/open_cv.git
  • Download all the necessary packages:
  • MacOS Users
$ pip3 install -r requirements.txt
$ brew install tesseract
  • Ubuntu Users
$ pip install -r requirements.txt
$ sudo apt-get install tesseract-ocr

Testing Pytesseract on Clean Example Files

The Pytesseract that we are testing below is the one downloaded using homebrew/sudo apt-get install and not the one from pip. The results will be printed to the terminal.

Example 1

Clean Example 1

$ tesseract tesseract_inputs/example_01.png stdout

This should output Testing Tesseract OCR

Example 2

Clean Example 2

$ tesseract tesseract_inputs/example_02.png stdout

This should output PyImageSearch

Example 3

Clean Example 3

$ tesseract tesseract_inputs/example_03.png stdout

This should output 650 3428

Testing Pytesseract on Noisy Example Files

The results will be printed to the terminal.

Noisy Example 1

Tesseract ocr.py file
Run $ tesseract images/example_01.png stdout $ python3 ocr.py --image images/example_01.png
Result Noisyimage
to test
Tesseract OCR
Noisy image
to test
Tesseract OCR

Noisy Example 2

Tesseract ocr.py file
Run $ tesseract images/example_02.png stdout $ python3 ocr.py --image images/example_02.png --preprocess blur
Result _ Tesseract Will
Fail With Noisy
_ Backgrounds โ€”
Tesseract Will
Fail With Noisy
Backgrounds

Noisy Example 3

Tesseract ocr.py file
Run $ tesseract images/example_03.png stdout $ python3 ocr.py --image images/example_03.png
Result In order to make the most of this, you will need to have
alittle bit of programming experience. All examples in this
book are in the Python programming language. Familiarity
with Python or other scripting languages is suggested, but
not required.

You'll also need to know some basic mathematics. This
book is hands-on and example driven: lots of examples and
lots of code, so even if your math skills are not up to par,
do not worry! The examples are very detailed and heavily
documented to help you follow along.
In order to make the most of this, you will need to have
alittle bit of programming experience. All examples in this
book are in the Python programming language. Familiarity
with Python or other scripting languages is suggested, but
not required.

You'll also need to know some basic mathematics. This
book is hands-on and example driven: lots of examples and
lots of code, so even if your math skills are not up to par,
do not worry! The examples are very detailed and heavily
documented to help you follow along.

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.