You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I'm following the code correctly, it looks like there is an erroneous reordering of color channels in get_darknet_image():
image get_darknet_image(const Mat &input){
// Darknet requires BGR order
Mat flipped;
cvtColor(input, flipped, CV_RGB2BGR);
The comment "Darknet requires BGR order" is not correct -- In fact, darknet expects RGB-ordered images. This can be seen in the BGR->RGB conversion darknet performs when loading openCV images. Refer to image_opencv.load_image_cv(), which calls mat_to_image() and rgbgr_image(im).
The text was updated successfully, but these errors were encountered:
If I'm following the code correctly, it looks like there is an erroneous reordering of color channels in
get_darknet_image()
:The comment "Darknet requires BGR order" is not correct -- In fact, darknet expects RGB-ordered images. This can be seen in the BGR->RGB conversion darknet performs when loading openCV images. Refer to image_opencv.load_image_cv(), which calls
mat_to_image()
andrgbgr_image(im)
.The text was updated successfully, but these errors were encountered: