diff --git a/CMakeLists.txt b/CMakeLists.txt index b371722..a468303 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,15 @@ add_executable(cotton_color cotton_color.cpp) # 链接 OpenCV 和 Qt 库 target_link_libraries(cotton_color Qt6::Widgets ${OpenCV_LIBS}) +# 添加可执行文件 cotton_color +add_executable(cotton_range Matrox/color_range.cpp) +# 链接 OpenCV 和 Qt 库 +target_link_libraries(cotton_range Qt6::Widgets ${OpenCV_LIBS}) + # 添加可执行文件 cotton_color2 add_executable(cotton_color2 cotton_color2.cpp) # 链接 OpenCV 和 Qt 库 target_link_libraries(cotton_color2 Qt6::Widgets ${OpenCV_LIBS}) +add_executable(color_matching Matrox/template_matching.cpp + Matrox/onnx_running.cpp + Matrox/onnx_running.h) diff --git a/Matrox/color_range.cpp b/Matrox/color_range.cpp new file mode 100644 index 0000000..9eee56e --- /dev/null +++ b/Matrox/color_range.cpp @@ -0,0 +1,3 @@ +// +// Created by zjc on 24-11-12. +// diff --git a/Matrox/color_range.h b/Matrox/color_range.h new file mode 100644 index 0000000..8a567e9 --- /dev/null +++ b/Matrox/color_range.h @@ -0,0 +1,8 @@ +// +// Created by zjc on 24-11-12. +// + +#ifndef COLOR_RANGE_H +#define COLOR_RANGE_H + +#endif //COLOR_RANGE_H diff --git a/Matrox/onnx_running.cpp b/Matrox/onnx_running.cpp new file mode 100644 index 0000000..b545f1f --- /dev/null +++ b/Matrox/onnx_running.cpp @@ -0,0 +1,5 @@ +// +// Created by zjc on 24-11-12. +// + +#include "onnx_running.h" diff --git a/Matrox/onnx_running.h b/Matrox/onnx_running.h new file mode 100644 index 0000000..3b81150 --- /dev/null +++ b/Matrox/onnx_running.h @@ -0,0 +1,8 @@ +// +// Created by zjc on 24-11-12. +// + +#ifndef ONNX_RUNNING_H +#define ONNX_RUNNING_H + +#endif //ONNX_RUNNING_H diff --git a/Matrox/template_matching.cpp b/Matrox/template_matching.cpp new file mode 100644 index 0000000..9eee56e --- /dev/null +++ b/Matrox/template_matching.cpp @@ -0,0 +1,3 @@ +// +// Created by zjc on 24-11-12. +// diff --git a/Matrox/template_matching.h b/Matrox/template_matching.h new file mode 100644 index 0000000..bcbca12 --- /dev/null +++ b/Matrox/template_matching.h @@ -0,0 +1,8 @@ +// +// Created by zjc on 24-11-12. +// + +#ifndef TEMPLATE_MATCHING_H +#define TEMPLATE_MATCHING_H + +#endif //TEMPLATE_MATCHING_H