Giter VIP home page Giter VIP logo

hust_ml_handwritingrecognition's Introduction

HandwritingRecognition - Nhận dạng chữ viết tay bằng CRNN

👼 Giới thiệu

  • Bài toán đặt ra là chuyển những hình ảnh chữ viết tay tiếng Việt thành dữ liệu lưu trong tệp văn bản (text). Đại khái, input là một hình ảnh chứa một câu văn và output là những đoạn text xuất hiện trong hình ảnh đó.
  • Cách tiếp cận ở đây là sử dụng thuật toán deep learning để giải quyết. Cụ thể, chúng ta sẽ cần một CNNs để trích xuất các đặc trưng của ảnh, và bởi vì đầu ra là chuỗi, nên ta nghĩ ngay đến cần RNN để xử lý. Ngoài ra còn cần sử dụng CTC network để tính loss trong quá trình huấn luyện và thu được output theo thời gian.

image

⚙️ Cài đặt

(Đảm bảo rằng bạn đã thiết lập môi trường để chạy python và git)

  • Clone từ GitHub: (bản cuối cùng ở branch2)
    git clone https://github.com/tandat17z/HUST_ML_HandwritingRecognition.git
  • Tới thư mục làm việc của project. Ví dụ:
    cd D:\HUST_ML_HandwritingRecognition
  • Install các thư viện cần trong project:
    pip install -r requirements.txt

⚓ Dataset:

  • Dữ liệu để train (test) là một foldler chứa 2 folder con là imglabel.
  • Trong đó:
    • img là tập các file hình ảnh về chữ viết tay (trên 1 dòng)
    • label là tập các file txt chứa nội dung về hình ảnh tương ứng. (các file trong img và label tương ứng cần có tên giống nhau)
  • Tham khảo: train_data

⚓ Train and predict

  • Training:

    python main.py --dstrain {train_folder} --dsval {val_folder} --savedir {save_folder} --nepochs {num} 
    • Để biết chi tiết các cấu hình khi train, ta có thể sử dụng lệnh sau:
      python main.py -h
      
    • Quá trình training: link_train
  • Predict:

    image

hust_ml_handwritingrecognition's People

Contributors

tandat17z avatar

Stargazers

 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.