From aaad40afbc7291f76d3b5ed75916aa9acbafeea6 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Tue, 5 Nov 2024 10:10:40 +0300 Subject: [PATCH] Do not use forward to layer feature in WeChat to support the new dnn engine. --- modules/wechat_qrcode/src/detector/ssd_detector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/wechat_qrcode/src/detector/ssd_detector.cpp b/modules/wechat_qrcode/src/detector/ssd_detector.cpp index dca1851ae..52e8a635d 100644 --- a/modules/wechat_qrcode/src/detector/ssd_detector.cpp +++ b/modules/wechat_qrcode/src/detector/ssd_detector.cpp @@ -24,7 +24,7 @@ vector 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 point_list; // the shape is (1,1,100,7)=>(batch,channel,count,dim) for (int row = 0; row < prob.size[2]; row++) { @@ -54,4 +54,4 @@ vector SSDDetector::forward(Mat img, const int target_width, const int targ return point_list; } } // namespace wechat_qrcode -} // namespace cv \ No newline at end of file +} // namespace cv