-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image resize fix #1385
Image resize fix #1385
Conversation
…zed with aspect ratio distortions) when using API function.
We shouldn't use letterbox_image() and resize_image() functions from the Darknet.
|
Thanks for a reply.
Ok, i accept that (however this approach isn't so great in my case). Have you considered using other interpolation methods for OpenCV |
Does it resize the image with black paddings or just increase or decrease the height and width? |
Fix for incorrect image resize. Image was not "letterboxed"(just resized with aspect ratio distortions) when using API function Detector::detect from yolo_v2_class.cpp.
Since resize is already performed inside Detector::detect, functions detect_resize and mat_to_image_resize were removed.