Open leeyunhome opened 3 years ago
Hello, @linghu8812
Thank you for sharing a great project.
on line 210 in yolov5.cpp float ratio = float(src_img.cols) / float(IMAGE_WIDTH) > float(src_img.rows) / float(IMAGE_HEIGHT) ? float(src_img.cols) / float(IMAGE_WIDTH) : float(src_img.rows) / float(IMAGE_HEIGHT);
Why divide src_img.cols by IMAGE_WIDTH?
Thank you.
@leeyunhome It is necessary to restore the detected boxes calculated by resize image to the original image
Hello, @linghu8812
Thank you for sharing a great project.
on line 210 in yolov5.cpp float ratio = float(src_img.cols) / float(IMAGE_WIDTH) > float(src_img.rows) / float(IMAGE_HEIGHT) ? float(src_img.cols) / float(IMAGE_WIDTH) : float(src_img.rows) / float(IMAGE_HEIGHT);
Why divide src_img.cols by IMAGE_WIDTH?
Thank you.