Welcome to DOFBOT-Ultra repository
7. Oriented Bounding Boxes Object Detection
Oriented Bounding Boxes Object Detection
Note: The environment is already configured. Simply follow the tutorial to run the corresponding functional commands.
1. Oriented Object Detection: Image
Use yolo11n-obb.pt to predict images that come with the ultralytics project.
Enter the code folder:
xxxxxxxxxxcd /home/sunrise/ultralytics/ultralytics/yahboom_demo
Run the code:
xxxxxxxxxxpython3 05.obb_image.py
Result Preview
YOLO recognition output image location: /home/sunrise/ultralytics/ultralytics/output/

Example code:
xxxxxxxxxxfrom ultralytics import YOLO# Load a modelmodel = YOLO("/home/sunrise/ultralytics/ultralytics/yolo11n-obb.pt")# model = YOLO("/home/sunrise/ultralytics/ultralytics/yolo11n-obb.onnx")# model = YOLO("/home/sunrise/ultralytics/ultralytics/yolo11n-obb_ncnn_model")# Run batched inference on a list of imagesresults = model("/home/sunrise/ultralytics/ultralytics/assets/car.jpg") # return a list of Results objects# Process results listfor result in results: