修复bug

This commit is contained in:
zjc-zjc-123 2024-11-14 10:43:37 +08:00
parent 0cf110cb6a
commit 0666bf2f41
3 changed files with 3 additions and 3 deletions

View File

@ -53,11 +53,11 @@ add_executable(cotton_color2 cotton_color2.cpp)
# OpenCV Qt
target_link_libraries(cotton_color2 Qt6::Widgets ${OpenCV_LIBS} ${MIL_LIBS})
add_executable(color_matching Matrox/template_matching.cpp
Matrox/onnx_running.cpp)
add_executable(color_matching Matrox/template_matching.cpp)
target_link_libraries(color_matching Qt6::Widgets ${OpenCV_LIBS} ${MIL_LIBS})
add_executable(ui Matrox/ui.cpp)
target_link_libraries(ui Qt6::Widgets)

View File

@ -53,7 +53,7 @@ int MosMain(void)
MclassAllocResult(MilSystem, M_PREDICT_ONNX_RESULT, M_DEFAULT, &DetectRes);
// Perform object detection on the image using MclassPredict.
MclassPredict(DetectCtx, MilImage, DetectRes, M_DEFAULT);
MclassPredict(DetectCtx, MilImage, DetectRes, M_DEFAULT);////执行到这一步报错
MosPrintf(MIL_TEXT("Object detection completed.\n"));
// Allocate a buffer for displaying the detection results.

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB