Recognite text from image with CRNN network.
pip install -r requirements.txt
Full dataset used is Synthetic Word Dataset
Dataset used for project here.
Model's weights for prediction and evaluation model.weights.hdf5
cd text-recognition/
python lib/preprocess/download_data.py
tar -xzvf data.tar.gz
rm -rf data.tar.gz
mkdir Data/checkpoints/
python main.py
Application run on http://localhost:8096
-
Training model
- URL: /train
- Method: GET
- Usage: Training model and save weights
-
Evaluation
- URL: /evaluation
- Method: POST
- Body:
- filename: Path to file contain image's paths and labels
- paths: List of image's paths
- labels: List of image's labels
- Usage: Evaluate accuracy and letter accuracy of model with data described in filename or (paths, labels).
- Return: Accuracy, letter accuracy
-
Prediction
- URL: /prediction
- Method: POST
- Body:
- img: Path to image for prediction
- Usage: Predict text in new image
- Return: Text predicted