mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-23 00:49:38 +08:00
Merge pull request #3821 from asmorkalov:as/new_dnn_caffe
Do not use forward to layer feature in WeChat to support the new dnn engine
This commit is contained in:
@@ -24,7 +24,7 @@ vector<Mat> SSDDetector::forward(Mat img, const int target_width, const int targ
|
|||||||
false, false);
|
false, false);
|
||||||
net_.setInput(input, "data");
|
net_.setInput(input, "data");
|
||||||
|
|
||||||
auto prob = net_.forward("detection_output");
|
auto prob = net_.forward();
|
||||||
vector<Mat> point_list;
|
vector<Mat> point_list;
|
||||||
// the shape is (1,1,100,7)=>(batch,channel,count,dim)
|
// the shape is (1,1,100,7)=>(batch,channel,count,dim)
|
||||||
for (int row = 0; row < prob.size[2]; row++) {
|
for (int row = 0; row < prob.size[2]; row++) {
|
||||||
|
Reference in New Issue
Block a user