Image-to-Text
PaddleOCR
Safetensors
English
Chinese
pp_ocrv5_mobile_det
OCR
PaddlePaddle
textline_detection
Instructions to use tomsanbear/pp-ocrv5-mobile-det with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PaddleOCR
How to use tomsanbear/pp-ocrv5-mobile-det with PaddleOCR:
# 1. See https://www.paddlepaddle.org.cn/en/install to install paddlepaddle # 2. pip install paddleocr from paddleocr import TextDetection model = TextDetection(model_name="pp-ocrv5-mobile-det") output = model.predict(input="path/to/image.png", batch_size=1) for res in output: res.print() res.save_to_img(save_path="./output/") res.save_to_json(save_path="./output/res.json") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_valid_processor_keys": [ | |
| "images", | |
| "do_resize", | |
| "size", | |
| "resample", | |
| "do_rescale", | |
| "rescale_factor", | |
| "do_normalize", | |
| "image_mean", | |
| "image_std", | |
| "return_tensors", | |
| "data_format", | |
| "input_data_format" | |
| ], | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "model_type": "pp_ocrv5_mobile_det", | |
| "model_input_names": ["pixel_values", "original_image_size"], | |
| "image_mode": "BGR", | |
| "channel_first": false, | |
| "limit_side_len": 960, | |
| "max_side_limit": 4000, | |
| "image_mean": [0.406, 0.456, 0.485], | |
| "image_std": [0.225, 0.224, 0.229], | |
| "rescale_factor": 0.00392156862745098, | |
| "resample": 2, | |
| "keep_keys": ["image", "shape", "polys", "ignore_tags"] | |
| } |