Giter Site home page Giter Site logo

ocr-2's Introduction

Scene-OCR

CRAFT: text detection + TPS-ResNet-BiLSTM-Attn: text recognition

This repo combines two methods which are most popular and having best performace to meet my demand in Scene-OCR. I have modified two forked repos and rewrite a Flask service for local users to use detection, recognition and OCR conveniently.

How to use

  1. Install all dependency. If there are still some missing packages, you can check original forked repos.
pip install -r requirements.txt
  1. It is better to run app under GPU.
CUDA_VISIBLE_DEVICES=0 python app.py
  1. Try it by yourself. You can send POST requests to http://localhost:8301/ocr with your image absolute path. See more details in test_app.py.

Text Detection

This part is forked by clovaai/CRAFT-pyotrch.

Loaded model is models/craft_mlt_25k.pth. You can download it from here.

Text Recognition

This part is forked by clovaai/deep-text-recognition-benchmark

Loaded model is models/TPS-ResNet-BiLSTM-Attn.pth. You can download it from here

Notice

The link for both models are supported by original repos. If there are any issues, you could post issues in there.

ocr-2's People

Contributors

bournexu avatar

Watchers

James Cloos 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.