Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to discover the input and output format of a cv::dnn::Net?

I often find some neuural network models on the internet which are not very clear about what is the shape/format of their required input and output. Then I try to run them on opencv::dnn but I have no idea what shape/data type I should feed into them with the blob, and I also do not know what datatype/format I should save the output in (in c++ I need to declare a variable to get the network output, what data type/shape should this variable have? ).

Thank you in advance for the advise.