Is it possible to change the order of detection from top to bottom? #18228
-
I have a vertical image and after the save_crop inference, the images are in order from bottom to top. Is it possible to change it like this? I use CLI commands with custom trained YOLOv11 model |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
👋 Hello @Flavien123, thank you for your interest in Ultralytics 🚀! We recommend a visit to the Docs for new users where you can find many Python and CLI usage examples, and where many of the most common questions may already be answered. If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us better understand and debug your issue. If this is a ❓ Question regarding custom usage, such as how to modify detection order for your specific vertical image, please provide additional details about your setup. This might include your CLI command, model training configuration, and any adjustments you've already made. If possible, include relevant script snippets or settings to help clarify your usage. Join the Ultralytics community where it suits you best. For real-time chat, head to Discord 🎧. Prefer in-depth discussions? Check out Discourse. Or dive into threads on our Subreddit to share knowledge with the community. UpgradeEnsure you're running the latest pip install -U ultralytics EnvironmentsYOLO may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all Ultralytics CI tests are currently passing. CI tests verify correct operation of all YOLO Modes and Tasks on macOS, Windows, and Ubuntu every 24 hours and on every commit. This is an automated response to help guide you. Don't worry though, an Ultralytics engineer will follow up to assist you further as soon as possible 😊. |
Beta Was this translation helpful? Give feedback.
-
@Flavien123 currently, the order of detections in |
Beta Was this translation helpful? Give feedback.
@Flavien123 certainly! Here's a Python example to reorder the crops from right to left and top to bottom based on their bounding box coordinates: