Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2016-12-28 04:17:38 -0600

Nbb gravatar image

DNN module - Can I pass in an arbitrary sized input ?

The deep NN module in opencv requires me to specify the input size http://docs.opencv.org/trunk/d5/de7/tutorial_dnn_googlenet.html

resize(img, img, Size(224, 224));       //GoogLeNet accepts only 224x224 RGB-images
dnn::Blob inputBlob = dnn::Blob(img);   //Convert Mat to dnn::Blob image batch

Is it possible to send in an arbitrary sized input because some of the recent papers accept an arbitrary sized input.