Created
October 29, 2024 16:54
-
-
Save RizwanMunawar/22dcc47df2f79ca7ba4b7f5fa4514460 to your computer and use it in GitHub Desktop.
Oriented Bounding Boxes using Ultralytics YOLO11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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