Add examples showing how to use result for all tasks (#19282)
Signed-off-by: Mohammed Yasin <32206511+Y-T-G@users.noreply.github.com>
This commit is contained in:
parent
384ace4617
commit
aa1c6c9a24
4 changed files with 28 additions and 0 deletions
|
|
@ -143,6 +143,12 @@ Use a trained YOLO11n-pose model to run predictions on images.
|
|||
|
||||
# Predict with the model
|
||||
results = model("https://ultralytics.com/images/bus.jpg") # predict on an image
|
||||
|
||||
# Access the results
|
||||
for result in results:
|
||||
xy = result.keypoints.xy # x and y coordinates
|
||||
xyn = result.keypoints.xyn # normalized
|
||||
kpts = result.keypoints.data # x, y, visibility (if available)
|
||||
```
|
||||
|
||||
=== "CLI"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue