Giter Club home page Giter Club logo

ocr_kor_en's Introduction

OCR_kor_en

This repo is an End to End code that detection language in images and recognition Korean and English.

Demo

ocr_demo ocr_demo2

memoryblock

ocr_demo3 ocr_demo4

Getting Started

Download models

Video2img

Crop the video frame by frame and apply a morphology operation for increase the recognition rate.

memoryblock


Put your video name in video_name. (ex: ocr_test.mp4)

python video2img.py --video_name ocr_test.mp4

Also, you can use images, not video

the structures would like

~/OCR_kor_en/
    -- model
        -- craft_mlt_25k.pth
        -- classifi_97.29.pth
        -- kor_reg_97.42.pth
        -- TPS-ResNet-BiLSTM-Attn.pth
    -- sample_img
        -- your_img.jpg
    -- sample_video
        -- video_name
            -- 00000.jpg
            -- 00001.jpg
            -- 00002.jpg
            ...
        -- video_name_ori
            -- 00000.jpg
            -- 00001.jpg
            -- 00002.jpg
            ...
    -- main.py
    ....

Requirements

  • PyTorch>=0.4.1
  • torchvision>=0.2.1
  • opencv-python>=3.4.2
  • ...
pip install -r requirements.txt

Run

python main.py --test_folder ./sample_img/

or

python main.py --test_folder ./sample_video/video_name

Referenced. Thank you all:+1:

detection code : https://github.com/clovaai/CRAFT-pytorch
recognition code : https://github.com/clovaai/deep-text-recognition-benchmark
korean ocr code : https://github.com/parksunwoo/ocr_kor
aihub dataset : https://aihub.or.kr/aidata/133

ocr_kor_en's People

Contributors

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