GithubHelp home page GithubHelp logo

zuik / ocr-tesseract-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ricktorzynski/ocr-tesseract-docker

0.0 0.0 0.0 20 KB

OCR using Python, Tesseract and OpenCV in a Docker container

Dockerfile 6.56% Python 27.84% CSS 8.17% HTML 57.43%

ocr-tesseract-docker's Introduction

OCR Tesseract Docker

Allows upload of an image for OCR using Tesseract and deployed using Docker. This uses Flask, a light weight web server framework - but for development purposes only. OpenCV is used to reduce noise in the image for better processing by pytesseract. Uploads on AWS are limited to 2MB - below are 3 images of a job posting taken on a Pixel 2XL phone, and reduced in size using Gimp by adjusting quality.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You will need Docker installed on your system and a command line editor.

Docker
Git Bash (on Windows)
Terminal (Linux or Mac)

Installing and Running

You can clone this repository or download a zip file, build and run the Docker image.

$ docker build -t ocr-tesseract-docker .
$ docker run -d -p 5000:5000 ocr-tesseract-docker

OR you can pull and/or run the Docker image from my repository on Docker Hub

docker pull ricktorzynski/ocr-tesseract-docker
docker run -d -p 5000:5000 ricktorzynski/ocr-tesseract-docker

Then open up browser to http://localhost:5000

You can use these images to test it - these are photos of a job posting:

Deployed to AWS Elastic Beanstalk

This app was deployed to AWS Elastic Beanstalk, but is no longer available.

Built With

Python
Flask
Pytesseract
OpenCV
Bootstrap
Docker

Resources

Here are some helpful resources on the web that I used for this project.

Acknowledgments

I would like to thank Matt Berseth and Robert Marsh of NLP Logix for inspiring me to build this application.

ocr-tesseract-docker's People

Contributors

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