Fixed opencv dependency library bug

This commit is contained in:
tunm
2023-07-20 16:58:27 +08:00
parent 7d0d1f6d37
commit 0ce5566171
10 changed files with 18030 additions and 40 deletions
@@ -130,7 +130,7 @@ InferenceHelper* InferenceHelper::Create(const InferenceHelper::HelperType helpe
#endif
#ifdef INFERENCE_HELPER_ENABLE_MNN
case kMnn:
PRINT("Use MNN\n");
// PRINT("Use MNN\n");
p = new InferenceHelperMnn();
break;
#endif
@@ -109,9 +109,7 @@ void DetArch::Detection(const cv::Mat &bgr, bool is_resize, float scale) {
cv::Mat resized_img;
cv::resize(bgr, resized_img, cv::Size(w, h));
cv::copyMakeBorder(resized_img, pad, 0, hpad, 0, wpad, cv::BORDER_CONSTANT, cv::Scalar(127.5, 127.5, 127.5));
// cv::imwrite("i.jpg", pad);
// cv::imshow("pad_border", pad);
// cv::waitKey(0);
} else {
pad = bgr;
}
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -4,7 +4,7 @@
#pragma once
#ifndef ZEPHYRLPR_TEST_SETTINGS_H
#define ZEPHYRLPR_TEST_SETTINGS_H
#include <catch2/catch.hpp>
#include "catch2/catch.hpp"
#include <iostream>
using namespace Catch::Detail;