56

GitHub - s3nh/pytorch-text-recognition: Text recognition combo - CRAFT + CRNN

 4 years ago
source link: https://github.com/s3nh/pytorch-text-recognition
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

travis build

Text recognition tool

Text recognition with Pytorch Using CRNN and CRAFT pretrained models.

Main sources:

Install it, install requirements.txt by

python -m pip install requirements.txt

and check argparsers. at the moment it is only input image so

> source venv/Scripts/activate
> python app.py --input_file test_image.jpeg

Example results

image

return .json file with

{"0": "dollar", "1": "glen", "2": "and", "3": "campbeli", "4": "castle"}�0

Usage

You can clone this repository, set up your own virtual environment by


python -m venv venv

Activate it by

source venv/Scripts/activate

Install requirements using pip

python -m pip install -r requirements.txt

and run app.py


python app.py 

then go to

localhost:8000

and test it.

I decided to put it on simplest flask module only to show it's basic functionality.

To dos

add frontend and some fancy vis.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK