Skip to content

Instantly share code, notes, and snippets.

@RizwanMunawar
Last active April 19, 2026 07:25
Show Gist options
  • Select an option

  • Save RizwanMunawar/22dcc47df2f79ca7ba4b7f5fa4514460 to your computer and use it in GitHub Desktop.

Select an option

Save RizwanMunawar/22dcc47df2f79ca7ba4b7f5fa4514460 to your computer and use it in GitHub Desktop.
Oriented Bounding Boxes using Ultralytics YOLO26
from ultralytics import YOLO
# Load a model
model = YOLO("yolo26n-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