Code Monkey home page Code Monkey logo

vietnamese_ocr's Introduction

CRNN Pytorch

Quick Demo

$ pip install -r requirements.txt
$ py predict.py

Everything is okay. Let's predict the demo images.

the result will be saved in output.txt file

demo_data\public_test_img_0.jpg BO
demo_data\public_test_img_1.jpg Nhoàm
demo_data\public_test_img_2.jpg NGỰC
demo_data\public_test_img_3.jpg chương

novel novel novel novel

CRNN + CTC

This is a Pytorch implementation of a Deep Neural Network for scene text recognition. It is based on the paper "An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognition (2016), Baoguang Shi et al.".

Blog article with more info: https://ycc.idv.tw/crnn-ctc.html

crnn_structure

Pretrained Model

This model is trained on the dataset provided by HaNoi University of science and technology.

Train your model

To train your own model, you must prepare your data like this structure

├───data_set
│   │   train_gt.txt
│   │
│   └───New_train
│           train_img_0.jpg
│           train_img_1.jpg
│           train_img_2.jpg

You could adjust hyper-parameters in ./src/config.py.

And train crnn models,

$ python vietnamese_writting\main.ipynb

Acknowledgement

PThis project is built upon the work of crnn-pytorch

vietnamese_ocr's People

Stargazers

 avatar  avatar  avatar

Watchers

 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.