Skip to main content

Open Image Models

Actions status Actions status GitHub version image Ruff Documentation Status Pylint Checked with mypy ONNX Model Hugging Face Spaces License


Introduction

Ready-to-use models for a range of computer vision tasks like detection, classification, and more. With ONNX support, you get fast and accurate results right out of the box.

Easily integrate these models into your apps for real-time processing—ideal for edge devices, cloud setups, or production environments. In one line of code, you can have powerful model inference running!

from open_image_models import create_detector

detector = create_detector("yolo-v9-t-256-license-plate-end2end")
detector.predict("path/to/license_plate_image.jpg")

✨ That's it! Powerful license plate detection with just a few lines of code.

Features

  • 🚀 Pre-trained: Models are ready for immediate use, no additional training required.
  • 🌟 ONNX: Cross-platform support for fast inference on both CPU and GPU environments.
  • ⚡ Performance: Optimized for both speed and accuracy, ensuring efficient real-time applications.
  • 💻 Simple API: Power up your applications with robust model inference in just one line of code.

Installation

To install open-image-models via pip, use the following command:

pip install open-image-models[onnx]

Available Models

Object Detection

COCO Detection

Model Image Size Classes Dynamic Batch
rf-detr-nano-384-coco 384 80 Yes
rf-detr-small-512-coco 512 80 Yes
rf-detr-medium-576-coco 576 80 Yes
rf-detr-large-704-coco 704 80 Yes

CoreML is excluded from automatic RF-DETR provider selection.

Plate Detection

Model Image Size Precision (P) Recall (R) mAP50 mAP50-95
yolo-v9-s-608-license-plate-end2end 608 0.957 0.917 0.966 0.772
yolo-v9-t-640-license-plate-end2end 640 0.966 0.896 0.958 0.758
yolo-v9-t-512-license-plate-end2end 512 0.955 0.901 0.948 0.724
yolo-v9-t-416-license-plate-end2end 416 0.94 0.894 0.94 0.702
yolo-v9-t-384-license-plate-end2end 384 0.942 0.863 0.92 0.687
yolo-v9-t-256-license-plate-end2end 256 0.937 0.797 0.858 0.606
Usage
import cv2
from rich import print

from open_image_models import create_detector

# Create a detector from a pretrained model
detector = create_detector("yolo-v9-t-384-license-plate-end2end")

# Load an image
image_path = "path/to/license_plate_image.jpg"
image = cv2.imread(image_path)

# Perform license plate detection
detections = detector.predict(image)
print(detections)

# Display predictions on the image
annotated_image = detector.display_predictions(image)

# Show the annotated image
cv2.imshow("Annotated Image", annotated_image)
cv2.waitKey(0)
cv2.destroyAllWindows()

Contributing

Contributions to the repo are greatly appreciated. Whether it's bug fixes, feature enhancements, or new models, your contributions are warmly welcomed.

To start contributing or to begin development, you can follow these steps:

  1. Clone repo
    git clone https://github.com/ankandrew/open-image-models.git
    
  2. Install all dependencies using Poetry:
    make install
    
  3. To ensure your changes pass linting and tests before submitting a PR:
    make checks
    

Citation

@article{wang2024yolov9,
  title={{YOLOv9}: Learning What You Want to Learn Using Programmable Gradient Information},
  author={Wang, Chien-Yao  and Liao, Hong-Yuan Mark},
  booktitle={arXiv preprint arXiv:2402.13616},
  year={2024}
}

Metadata

Release files for open-image-models 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for open-image-models 0.6.0
File Size Uploaded Provenance Actions
open_image_models-0.6.0.tar.gz 162.3 kB With provenance Details for open_image_models-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for open-image-models 0.6.0
File Interpreter ABI Platform Actions
open_image_models-0.6.0-py3-none-any.whl Python 3 none any Details for open_image_models-0.6.0-py3-none-any.whl

Total release size: 189.7 kB

Release files / open_image_models-0.6.0.tar.gz

Download URL open_image_models-0.6.0.tar.gz
Size 162.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3fc5b34fd400867b209a022bc0e6cca903aa9de0624fa233ff5c8b5d8c716ff1
BLAKE2b-256 checksum
How to use checksums
9551e38e38b2e3e0fe23f9d3901b17fb7de9a1c378423920e39f179e092cedaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.

Transparency log

Release files / open_image_models-0.6.0-py3-none-any.whl

Download URL open_image_models-0.6.0-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0ada0bff1290298fe7b9f3ad0c517058036cead7d4ebfcc45e797b981d6b0a1
BLAKE2b-256 checksum
How to use checksums
c7daa9aa5d0e44d1e8fdf8a8d52dfe954a71d34c0ecbbce09258dc36d3fe1df8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.

Transparency log

Security for open-image-models 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for open_image_models-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page