#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
int main(int argc, char *argv[])
{
cv::Mat src = cv::Mat::zeros(cv::Size(1280, 1024), CV_8UC3);
cv::line(src, cv::Point(450, 380), cv::Point(440, 470), cv::Scalar(0, 0, 255), 18);
cv::line(src, cv::Point(650, 400), cv::Point(640, 490), cv::Scalar(0, 0, 255), 18);
cv::line(src, cv::Point(850, 370), cv::Point(870, 460), cv::Scalar(0, 0, 255), 18);
std::vector<rm::group::ptr> groups;
INFO_(
"size of armors = %ld", info.combos.size());
for (auto p_combo : info.combos)
{
const auto &corners = p_combo->corners();
cv::line(src, corners[0], corners[2], cv::Scalar(0, 255, 0), 2);
cv::line(src, corners[1], corners[3], cv::Scalar(0, 255, 0), 2);
}
cv::namedWindow("rmvl_deploy_test: src", cv::WINDOW_NORMAL);
cv::resizeWindow("rmvl_deploy_test: src", cv::Size(640, 512));
cv::imshow("rmvl_deploy_test: src", src);
HIGHLIGHT_(
"RMVL build Successfully!\n\n\t\t-------- "
"press any key to exit this program. --------\n");
cv::waitKey(0);
return 0;
}
static std::unique_ptr< ArmorDetector > make_detector()
构建 ArmorDetector
定义 armor_detector.h:58
std::unique_ptr< detector > ptr
定义 detector.h:51
@ RED
红色通道
定义 pretreat.hpp:35
#define HIGHLIGHT_(...)
定义 util.hpp:29
#define INFO_(...)
定义 util.hpp:57