Image-to-Text
MLX
Safetensors
PaddleOCR
English
Chinese
pp_ocrv6_small_det
OCR
PaddlePaddle
textline_detection
pp_ocrv6_tiny_det
Instructions to use mikoy92/PP-OCRv6-tiny-det-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mikoy92/PP-OCRv6-tiny-det-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir PP-OCRv6-tiny-det-mlx mikoy92/PP-OCRv6-tiny-det-mlx
- PaddleOCR
How to use mikoy92/PP-OCRv6-tiny-det-mlx 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-OCRv6-tiny-det-mlx") 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
- Local Apps Settings
- LM Studio
| { | |
| "_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_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_processor_type": "PPOCRV5ServerDetImageProcessor", | |
| "model_input_names": [ | |
| "pixel_values", | |
| "original_image_size" | |
| ], | |
| "image_mode": "BGR", | |
| "channel_first": false, | |
| "limit_side_len": 736, | |
| "limit_type": "min", | |
| "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, | |
| "normalize_order": "hwc", | |
| "do_to_chw": true, | |
| "keep_keys": [ | |
| "image", | |
| "shape", | |
| "polys", | |
| "ignore_tags" | |
| ] | |
| } |