mirror of
https://github.com/Karllzy/cotton_color.git
synced 2025-11-08 18:53:53 +00:00
修复bug
This commit is contained in:
parent
0cf110cb6a
commit
0666bf2f41
@ -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)
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
BIN
doc/MatroxQ&A.assets/image-20241113112631605.png
Normal file
BIN
doc/MatroxQ&A.assets/image-20241113112631605.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 210 KiB |
Loading…
Reference in New Issue
Block a user