GithubHelp home page GithubHelp logo

ctpn-crnn-backend's Introduction

CTPN_CRNN_BackEnd

  • Use CTPN (tf) to detect text regions of image
  • Use CRNN (torch) to recognize text
  • Use Flask to make restful api response

Environment

  • Colaboratory
  • CTPN
  • CRNN
    • pytorch 1.1.0
    • lmdb 0.96
    • others see code
  • Server
    • Flask 1.0.2
    • flask_cors 3.0.8
    • werkzeug 0.14.1

API

Build

cd CTPN/
git clone https://github.com/eragonruan/text-detection-ctpn.git
mv text-detection-ctpn/ ctpn_repo/

cd ctpn_repo/
# download checkpoints_mlt.zip
unzip checkpoints_mlt.zip

cd utils/bbox
chmod +x make.sh
./make.sh
  • CRNN

  • Structure
     .
     ├─assets/
     ├─CRNN/
     │  ├─data/
     │  └─models/
     ├─CTPN/
     │  └─ctpn_repo/
     │     ├─checkpoints_mlt/
     │     ├─data/
     │     │  ├─demo/
     │     │  ├─readme/
     │     │  ├─res/
     │     │  └─res_oriented/
     │     ├─main/
     │     ├─nets/
     │     └─utils/
     │         ├─bbox/
     │         ├─dataset/
     │         ├─prepare/
     │         ├─rpn_msr/
     │         └─text_connector/
     ├─Server/
     │  ├─Controllers/
     │  ├─Middleware/
     │  ├─Models/
     │  ├─Routes/
     │  └─Utils/
     │      └─Exception/
     └─tmp/
     

Run Server

# After build and get model data
cd CTPN_CRNN_BackEnd/
python3 listen.py # Listen 0.0.0.0:1627

Screenshot

Ret Front

References

ctpn-crnn-backend's People

Contributors

aoi-hosizora avatar

Watchers

James Cloos avatar

ctpn-crnn-backend's Issues

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.