High-level Python SDK for computer vision inference with ONNX Runtime.
Project description
ort-vision-sdk
High-level Python SDK for computer vision inference on top of ONNX Runtime.
Wraps the low-level InferenceSession API with task-oriented classes (Classifier, Detector, ...) that handle preprocessing, execution provider selection, and postprocessing — so you go from an image to a typed result in one call.
Installation
pip install ort-vision-sdk # CPU only
pip install ort-vision-sdk[gpu] # CUDA
pip install ort-vision-sdk[opencv] # adds cv2 image backend
Quick start
from ort_vision_sdk import Classifier
clf = Classifier("resnet50.onnx", labels="imagenet")
result = clf.predict("dog.jpg")
print(result.class_name, result.confidence)
print(result.probabilities[:5]) # top-5 ClassProbability tuples
from ort_vision_sdk import Detector
det = Detector("yolov8n.onnx", labels="coco")
detections = det.predict("street.jpg")
for d in detections:
print(d.class_name, d.confidence, d.bbox.as_xyxy())
# d.cropped_image is a np.ndarray (HWC, RGB, uint8)
Status
Alpha — API may change. See pyproject.toml for supported Python and dependency versions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ort_vision_sdk-0.2.0.tar.gz.
File metadata
- Download URL: ort_vision_sdk-0.2.0.tar.gz
- Upload date:
- Size: 36.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adc0bc3d6aaf5f291cccfece8af6267dc82441c8ea6dbfbf94617861551ac96f
|
|
| MD5 |
573c5a125158385b6c0b9600954b80f2
|
|
| BLAKE2b-256 |
12f96b1d5a1b1a540aebf1bdbc639cb6d3f1cd5e33e54d572a912ecc53e1a54f
|
Provenance
The following attestation bundles were made for ort_vision_sdk-0.2.0.tar.gz:
Publisher:
release-pypi.yml on mauriciobenjamin700/ort-vision-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ort_vision_sdk-0.2.0.tar.gz -
Subject digest:
adc0bc3d6aaf5f291cccfece8af6267dc82441c8ea6dbfbf94617861551ac96f - Sigstore transparency entry: 1435940134
- Sigstore integration time:
-
Permalink:
mauriciobenjamin700/ort-vision-sdk@f3b4ad93cb39a4f4bb9026ee06f7dc15c8e9207f -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/mauriciobenjamin700
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@f3b4ad93cb39a4f4bb9026ee06f7dc15c8e9207f -
Trigger Event:
push
-
Statement type:
File details
Details for the file ort_vision_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ort_vision_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 40.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b06b46f35fad0363d792f07e48a19d4c855cf689ea48ba051494c3841ee1d8b5
|
|
| MD5 |
7489861c7541bb6ef109e7de4a32a197
|
|
| BLAKE2b-256 |
f1271d8b70087a97a3fc262239541a47b38a98b340bf65b0d217ae0127363de0
|
Provenance
The following attestation bundles were made for ort_vision_sdk-0.2.0-py3-none-any.whl:
Publisher:
release-pypi.yml on mauriciobenjamin700/ort-vision-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ort_vision_sdk-0.2.0-py3-none-any.whl -
Subject digest:
b06b46f35fad0363d792f07e48a19d4c855cf689ea48ba051494c3841ee1d8b5 - Sigstore transparency entry: 1435940137
- Sigstore integration time:
-
Permalink:
mauriciobenjamin700/ort-vision-sdk@f3b4ad93cb39a4f4bb9026ee06f7dc15c8e9207f -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/mauriciobenjamin700
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@f3b4ad93cb39a4f4bb9026ee06f7dc15c8e9207f -
Trigger Event:
push
-
Statement type: