Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  • 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.