1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-22 16:08:41 +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:
Alexander Smorkalov
2024-11-06 17:32:30 +03:00
committed by GitHub

View File

@@ -24,7 +24,7 @@ vector<Mat> SSDDetector::forward(Mat img, const int target_width, const int targ
false, false);
net_.setInput(input, "data");
auto prob = net_.forward("detection_output");
auto prob = net_.forward();
vector<Mat> point_list;
// the shape is (1,1,100,7)=>(batch,channel,count,dim)
for (int row = 0; row < prob.size[2]; row++) {