First time here? Check out the FAQ!
Hi there! Please sign in
help
faq
tags
users
badges
This forum is disabled, please visit
https://forum.opencv.org
ALL
UNANSWERED
Ask Your Question
Revision history [
back
]
1
initial version
answered
2018-05-05 02:54:43 -0600
berak
32993
●
7
●
81
●
312
please NEVER use cvLoadImage(), or anything from opencv's deprecated C-api , it might be gone tomorrow.
you don't even have to use anything from opencv there, darknet has it's own image loading routines (stb_image)
yes, you have to split your interleaved pixels into seperate color planes, or channels. that's not at all specific to darknet, but common to all dnn's
darknet also already has builtin functions to deal with this, please look at src/image.c, there's ipl_into_image() and such
opencv has a split() function to seperate the interleaved image into channels.
Copyright
OpenCV foundation
, 2012-2018. Content on this site is licensed under a
Creative Commons Attribution Share Alike 3.0
license.
Powered by Askbot version 0.10.2
Please note: OpenCV answers requires javascript to work properly, please enable javascript in your browser,
here is how