Closed arikga closed 7 years ago
What is the latest commit in the branch you are using ? Is it not fixed in the issue per - https://github.com/prabindh/darknet/issues/35
I'm using the last master commit, My question is not about those lines: //Convert to rgb cv::Mat inputRgb; cvtColor(inputMat, inputRgb, CV_BGR2RGB);
those are the lines thats interesting me :
//Get the image to suit darknet
std::vector
why the memory alignment of the image is changed?
Both versions have planar RGB input. Please confirm where you observed interleaved RGB being input ?
In the file https://github.com/prabindh/darknet/blob/master/arapaho/arapaho.cpp#L238 the class ArapahoV2 Detect method gets cv::Mat, the input mat is
My question is why do we need stages 4 + 5?
Because Darknet takes planar RGB data, not interleaved. Please confirm where you observed interleaved RGB being input.
OK, so let me get it straight: 'planar RGB' data memory alignment is : RRRR....GGGG...BBBB... and 'interleaved' memory alignment is : RGBRGB....RGB ?
Yes..
@arikga do you have any inputs ? Is this issue closed ? Thx
Thank You!
Hello, my goal is to capture images from my camera and send them to direct to the network_predict() function.
In the original C code the format was XY3 normalize floats rgb (when X & Y are the sizes of the network), but on the CPP version the input image memory alignment have change to R pixel following the G pixels and the B pixels. Am I right?, if true then why to do this?