OpenCV Error: Requested object was not found (Requested blob “data” not found........

用opencv dnn模块调用caffemodel时

OpenCV Error: Requested object was not found (Requested blob

原因:deploy.prototxt有问题,第一层本来是这样:

layer {

name: "data"

type: "Input"

top: "data"

input_param { shape: { dim: 1 dim: 3 dim: 82 dim: 126 } }

},现在改成这样:

input:"data"

input_dim:1

input_dim:3

input_dim:32

input_dim:32

你可能感兴趣的:(深度学习,caffe,opencvDNN)