Skip to content

Instantly share code, notes, and snippets.

@RizwanMunawar
Created October 29, 2024 16:54
Show Gist options
  • Save RizwanMunawar/22dcc47df2f79ca7ba4b7f5fa4514460 to your computer and use it in GitHub Desktop.
Save RizwanMunawar/22dcc47df2f79ca7ba4b7f5fa4514460 to your computer and use it in GitHub Desktop.
Oriented Bounding Boxes using Ultralytics YOLO11
from ultralytics import YOLO
# Load a model
model = YOLO("yolo11n-obb.pt") # load an official model
model = YOLO("path/to/best.pt") # load a custom model
# Predict with the model
results = model("https://ultralytics.com/images/boats.jpg") # predict on an image
results = model("Path/to/video/file.mp4") # predict on a video
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment