Skip to content

Extracting Text from US Driving Licence Using CRAFT and Deep Text Recognition

License

Notifications You must be signed in to change notification settings

skvishy27/deep_learning_OCR

Repository files navigation

Text-Extraction-using-CRAFT-and-Deep-Text-Recognition

Extracting Text from US Driving Licence Using CRAFT and Deep Text Recognition

The Code is in initial stage.

Getting started

Install dependencies

Requirements

  • lmdb==0.98
  • natsort==7.0.1
  • nltk==3.5
  • numpy==1.18.3
  • opencv-contrib-python==4.2.0.34
  • Pillow==7.1.2
  • pip==20.1
  • scikit-image==0.16.2
  • scipy==1.4.1
  • setuptools==39.0.1
  • six==1.14.0
  • torch==1.5.0+cpu
  • torchvision==0.6.0+cpu
  • wheel==0.34.2
pip install -r requirements.txt

Model

Download Pre-trained Model/Weight

Test

Run the below code:

python extract.py -i data/AL.jpeg -o result

where "extract.py" -> filename
"data/AL.jpeg" -> data is input directory and AL.jpeg is image file
"result" -> output directory where extracted text will be saved

Acknowledgements

This implementation has been based on these repository clovaai/CRAFT-pytorch, clovaai/deep-text-recognition-benchmark.

Links

  • WebDemo : https://demo.ocr.clova.ai/
    Combination of Clova AI detection and recognition, additional/advanced features used for KOR/JPN.

About

Extracting Text from US Driving Licence Using CRAFT and Deep Text Recognition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages