RepositoryPython
42gas42

42gas42/CRNN-OCR-lite

Lightweight CRNN for OCR (including handwritten text) with depthwise separable convolutions and spatial transformer module [keras+tf]

152sao
29fork
1issue
0lượt xem

🧠 CRNN-OCR-lite: OCR nhẹ nhàng nhưng hiệu quả

Một mạng CRNN nhẹ, không phải giải pháp sẵn production, tập trung vào nhận dạng chữ viết tay cấp từ.

Đây là dự án CRNN-OCR-lite, một mạng nơron nhẹ được thiết kế để giải quyết bài toán nhận dạng chữ viết tay cấp từ trên ảnh. Dự án sử dụng kiến trúc CRNN kết hợp CTC-loss, được tối ưu bằng depthwise separable convolutions và spatial transformer module (STN) để điều chỉnh độ nghiêng của văn bản.

✨ Điểm nổi bật

  • Spatial Transformer Module (STN): tự động điều chỉnh góc nghiêng của chữ viết, cải thiện độ chính xác.
  • Depthwise Separable Convolutions: thay thế convolution truyền thống, giảm kích thước mô hình và tăng tốc độ tính toán.
  • Transfer Learning: huấn luyện trước trên mjsynth (dữ liệu sinh học), sau đó tinh chỉnh trên IAM (dữ liệu thực).
  • CTC-loss: áp dụng trong huấn luyện để xử lý bài toán nhận dạng chuỗi ký tự.
  • Hai mô hình kết quả: một cho chữ in ("đọc chữ trong tự nhiên"), một cho chữ viết tay.
  • Tốc độ dự đoán nhanh: chỉ mất ~100–150 ms cho một ảnh, dù có hoặc không có GPU.
  • Beam search tốn thời gian: chiếm >95% thời gian dự đoán, chạy trên CPU.
  • Hỗ trợ Docker: dễ dàng triển khai và chạy môi trường.

💡 Vì sao đáng chú ý

Thay vì dùng mạng lớn và nặng, CRNN-OCR-lite tập trung vào sự nhẹ nhàng và hiệu quả. Kết hợp STN giúp mô hình tự động xử lý chữ viết nghiêng, trong khi depthwise separable convolutions giảm đáng kể số tham số. Phương pháp transfer learning từ mjsynth sang IAM giúp mô hình học tốt cả chữ in và chữ viết tay thực tế.

Phù hợp cho các ứng dụng nhận dạng chữ viết tay nhanh, không đòi hỏi phần cứng mạnh, nhưng chưa phù hợp trực tiếp cho môi trường production.


#OCR #CRNN #MachineLearning #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
JaidedAI/EasyOCR

Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.

30.1k
Dec 5, 2025
RepositoryPython
sbillburg/CRNN-with-STN

implement CRNN in Keras with Spatial Transformer Network

100
May 31, 2019
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
190.2M
Jun 1, 2026
RepositoryC++
tesseract-ocr/tesseract

Tesseract Open Source OCR Engine (main repository)

77.2k
Oct 24, 2026
RepositoryPython
RapidAI/RapidOCR

📄 Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

8.3k
Oct 24, 2026
RepositoryPython
zhiqwang/sightseq

Computer vision tools for fairseq, containing PyTorch implementation of text recognition and object detection

123
Nov 14, 2019
RepositoryTypeScript
firecrawl/firecrawl

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

195.6k
Oct 26, 2026
Repository
getify/You-Dont-Know-JS

A book series (2 published editions) on the JS language.

184.8k
Feb 15, 2026
RepositoryPython
huggingface/transformers

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

168.0k
Oct 23, 2026