Craft-text-detector

Latest version: v0.4.3

Safety actively analyzes 681881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.3.3

- Relax requirements for OpenCV (25)

0.3.2

path for the weight file can be specified by:
python
load_craftnet_model(weight_path="path/to/weight")

python
load_refinenet_model(weight_path="path/to/weight")

0.3.1

* [fix empty_cuda_cache](https://github.com/fcakyon/craft-text-detector/pull/13)

0.3.0

* updated basic usage for better device handling, now Craft instance should be created before calling detect_text:
python
import Craft class
from craft_text_detector import Craft

set image path and export folder directory
image_path = 'figures/idcard.png'
output_dir = 'outputs/'

create a craft instance
craft = Craft(output_dir=output_dir, crop_type="poly", cuda=False)

apply craft text detection and export detected regions to output directory
prediction_result = craft.detect_text(image_path)

unload models from ram/gpu
craft.unload_craftnet_model()
craft.unload_refinenet_model()

* some internal naming and styling changes

0.2.1

- fix [cuda device bug](https://github.com/fcakyon/craft-text-detector/issues/8)
- fix visualization export bug

0.2.0

- time profiling
- better input size handling (with new long_size parameter)
- bug fixes

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.