Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ort_vision_sdk-0.2.0.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ort_vision_sdk-0.2.0-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

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

Hashes for ort_vision_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 adc0bc3d6aaf5f291cccfece8af6267dc82441c8ea6dbfbf94617861551ac96f
MD5 573c5a125158385b6c0b9600954b80f2
BLAKE2b-256 12f96b1d5a1b1a540aebf1bdbc639cb6d3f1cd5e33e54d572a912ecc53e1a54f

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ort_vision_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b06b46f35fad0363d792f07e48a19d4c855cf689ea48ba051494c3841ee1d8b5
MD5 7489861c7541bb6ef109e7de4a32a197
BLAKE2b-256 f1271d8b70087a97a3fc262239541a47b38a98b340bf65b0d217ae0127363de0

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page