简体   繁体   English

转换边界框格式

[英]Convert bounding box format

I want to use P-DESTRE dataset with retinaNet model我想将 P-DESTRE 数据集与retinaNet model 一起使用

But i have a problem in bonding box format since the dataset bounding box format is:但是我在绑定框格式方面遇到了问题,因为数据集边界框格式是:

x, y, h, w (Top left column, top left row, height, width) x、y、h、w(左上列、左上行、高度、宽度)

Where is written on that model bounding box format is (x1,y1,x2,y2) model 边界框格式是 (x1,y1,x2,y2)

Can you let me know how to convert the dataset format into the model format你能告诉我如何将数据集格式转换为 model 格式吗

The conversion you are asking about is completely straightforward:您询问的转换非常简单:

(x1,y1,x2,y2) = (x, y, x+w, y+h) (x1,y1,x2,y2) = (x, y, x+w, y+h)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将边界框坐标转换为 COCO 格式? - How to convert Bounding Box coordinates to COCO format? 如何将 Yolo 格式的边界框坐标转换为 OpenCV 格式 - How to convert Yolo format bounding box coordinates into OpenCV format 将 CSV 转换为 COCO JSON 格式用于边界框注释 - Convert CSV to COCO JSON format for bounding box annotation 更改边界框标签格式 - Changing Bounding Box Label Format 如何将cv2.rectangle边界框转换为YoloV4标注格式(相对x,y,w,h)? - How to convert cv2.rectangle bounding box to YoloV4 annotation format (relative x,y,w,h)? 如何将 2D 边界框像素坐标 (x, y, w, h) 转换为相对坐标(Yolo 格式)? - How to convert 2D bounding box pixel coordinates (x, y, w, h) into relative coordinates (Yolo format)? 将边界框坐标转换为 x,y 对 - convert bounding box coordinates to x,y pairs 如何在对象检测任务中将水平边界框转换为定向边界框 - How to convert horizontal bounding box to oriented bounding box in object detection task 如何将opencv的人脸检测到的边界框坐标转换为dlib的人脸检测到的边界框坐标? - How to convert opencv's face detected bounding box coordinates to dlib's face detected bounding box coordinates? 以 x,y,w,h 格式调整图像大小及其边界框 - Resize image and it's bounding box in x,y,w,h format
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM