我正在尝试为 YOLO/Darknet 中的一些图像手动创建标签文件,我需要为边界框填写一些值。
来自 YOLO 网站(https://pjreddie.com/darknet/yolo/):
Now we need to generate the label files that Darknet uses. Darknet wants a .txt file for each image with a line for each ground truth object in the image that looks like:
[object-class] [x] [y] [width] [height]
Where x, y, width, and height are relative to the image's width and height.
类、宽度和高度是直截了当的,但我想知道如何表示框的中心坐标 [x] 和 [y] ,因为我不知道 (0,0) 引用在哪里已分配。
谢谢
最佳答案
对于可能想知道的其他人,我在图片的左上角找到了答案。
关于darknet - 暗网 YOLO 中的零引用点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47270242/