# YoloV10 bounding box format

**URL:** <https://community.ultralytics.com/t/yolov10-bounding-box-format/316>\
**Category:** YOLO\
**Created:** [October 2, 2024, 8:44pm UTC](https://community.ultralytics.com/t/yolov10-bounding-box-format/316 "2024-10-02T20:44:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ABest2](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@ABest2](https://community.ultralytics.com/u/ABest2)\
**Post date:** [October 2, 2024, 8:44pm UTC](https://community.ultralytics.com/t/yolov10-bounding-box-format/316/1 "2024-10-02T20:44:49Z")

</div>

I have a YOLOv10 model running with C++ for inference. The output provides bounding box position information which I believe is in the format XYXY. The values I get for the first box are below:

object\_conf: 0.71359  
x0: -0.243503  
y0: -0.257284  
x1: 0.45154  
y1: 0.376244

How do I convert the decimal positional information to something which I can overlay on my 640x640 images?

Thanks

---

<div class="post-metadata">

**Author:** ![BurhanQ](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/burhanq/32/7_2.png) [@BurhanQ](https://community.ultralytics.com/u/BurhanQ)\
**Post date:** [October 2, 2024, 9:11pm UTC](https://community.ultralytics.com/t/yolov10-bounding-box-format/316/2 "2024-10-02T21:11:12Z")

</div>

@ABest2 Ultralytics only supports the Python package `ultralytics` and so it will be difficult to know for certain what format the coordinates are that you’re getting. Assuming the they are in fact `XYXY`, then the only conversion you’d need to do, is to multiply `x0` and `x1` by the image width and multiply `y0` and `y1` with the image height.

This is based on the _assumption_ that these are image normalized coordinates. Like I mentioned, we don’t support anything that runs on C++ so it’s not certain that would be the correct method. I would suggest consulting the documentation/support for whatever framework or C++ interface your using for inference.

---

<div class="post-metadata">

**Author:** ![ABest2](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@ABest2](https://community.ultralytics.com/u/ABest2)\
**Post date:** [October 11, 2024, 4:22pm UTC](https://community.ultralytics.com/t/yolov10-bounding-box-format/316/3 "2024-10-11T16:22:38Z")

</div>

Thank you
