Metadata-Version: 2.1
Name: ultocr
Version: 0.1.0
Summary: text detection + text recognition
Home-page: https://github.com/cuongngm/text-in-image
Author: cuongngm
Author-email: cuonghip0908@gmail.com
License: UNKNOWN
Description: # text-in-image
        Refactor code text detection + text recognition
        # Install
        ```bash
        pip install torch==1.7.0+cu101 torchvision==0.8.1+cu101 -f https://download.pytorch.org/whl/torch_stable.html
        pip install -r requirements.txt
        pip install ultocr
        ```
        # Train
        Custom params in each config file of config folder then:
        ```bash
        # For detection:
        python tools/det_train.py --config ./config/db_resnet50.yaml
        
        # For recognition:
        python tools/reg_train.py --config ./config/master.yaml
        ```
        
        # Inference
        ```bash
        # For detection:
        python tools/det_infer.py
        
        # For recognition:
        python tools/reg_infer.py
        ```
        
        # Quickstart
        ```bash
        from ultocr.inference import End2end
        model = End2end(img_path='./', det_model='DB', reg_model='MASTER')
        result = model.get_result()
        ```
        
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
