Skip to content

lenashamseldin/Arabic-OCR-Using-Pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arabic OCR - PyTorch

Description

An API that takes a string of base64 encoded image as input and returns the predication and the probability using PyTorch and FastAPI.

Installation

git clone https://github.com/lenashamseldin/Arabic-OCR-Using-Pytorch.git
cd Arabic-OCR-Using-Pytorch
docker build -t arocr .
docker run -p 80:80 arocr

Open the localhost url from any browser

Dataset

Arabic Letters Numbers OCR Dataset [Download](https://www.kaggle.com/datasets/mahmoudreda55/arabic-letters-numbers-ocr/download?datasetVersionNumber=4)

Dataset consists of 29 letters.

-- Dataset
| --  أ    
|     | -- 0.png
|     | -- 1.png
|     | -- ...
| --  ب
|     | -- 0.png
|     | -- 1.png
|     | -- ...
| --  ت
|     | -- 0.png
|     | -- 1.png
|     | -- ...
...

Training

  • Install requirements
pip install -U --user -r requirements.txt

License

This project is available under the terms of MIT License

About

Arabic OCR Using Pytorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors