如何获取YOLO对象检测中边界框的坐标? [英] How to get the coordinates of the bounding box in YOLO object detection?
本文介绍了如何获取YOLO对象检测中边界框的坐标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用YOLO对象检测来获取在上图中生成的边界框坐标。
I need to get the bounding box coordinates generated in the above image using YOLO object detection.
推荐答案
一种快速的解决方案是修改 image.c 文件以打印出边框信息:
A quick solution is to modify the image.c file to print out the bounding box information:
...
if(bot > im.h-1) bot = im.h-1;
// Print bounding box values
printf("Bounding Box: Left=%d, Top=%d, Right=%d, Bottom=%d\n", left, top, right, bot);
draw_box_width(im, left, top, right, bot, width, red, green, blue);
...
这篇关于如何获取YOLO对象检测中边界框的坐标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文