Fixed opencv dependency library bug
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user