Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Dnn tiny yolo selecting between graylevel and color image c++

  • OpenCV => 3.4.5
    • Operating System / Platform => Windows 7/10 64 Bit
    • Compiler => Visual Studio 2015
    • Languege C++ I have 2 trained tiny yolo models. One trained on 3 channel (RGB) data and one trained on one channel (GRAY LEVEL) data. The difference is in the channels parameter in the cfg file. When I prepare the blob I need to know how many channels to give (blobFromImage). I want to get that info from the loaded network. I thought I can get it gy getLayershapes() am I right? If yet then the first input parameter (cv::dnn::MatShape netInputShape) How do I get it? thanks.