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-linknet-resnet50

作者 Felix92

↓ 61 ♥ 0

创建时间: 2024-08-16 06:35:05+00:00

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

在 Hugging Face 上查看

文件 (4)

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