ONNX 模型库
返回模型

说明文档

<p align="center"> <img src="https://github.com/felixdittrich92/OnnxTR/raw/main/docs/images/logo.jpg" width="40%"> </p>

基于 Onnxruntime 的光学字符识别,让每个人都能无缝使用

任务:检测

https://github.com/felixdittrich92/OnnxTR

使用示例:

>>> from onnxtr.io import DocumentFile
>>> from onnxtr.models import ocr_predictor, from_hub

>>> img = DocumentFile.from_images(['<image_path>'])
>>> # Load your model from the hub
>>> model = from_hub('onnxtr/my-model')

>>> # Pass it to the predictor
>>> # If your model is a recognition model:
>>> predictor = ocr_predictor(det_arch='db_mobilenet_v3_large',
>>>                           reco_arch=model)

>>> # If your model is a detection model:
>>> predictor = ocr_predictor(det_arch=model,
>>>                           reco_arch='crnn_mobilenet_v3_small')

>>> # Get your predictions
>>> res = predictor(img)

Felix92/onnxtr-db-resnet34

作者 Felix92

↓ 59 ♥ 0

创建时间: 2024-08-16 06:32:39+00:00

更新时间: 2024-08-16 08:39:01+00:00

在 Hugging Face 上查看

文件 (4)

.gitattributes
README.md
config.json
model.onnx ONNX