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
@@ -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;
}