mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-23 00:36:35 +00:00
Add compile option to use YOLOv8 ONNX models for testing.
- added qmake option yolo_onnx to use normal YOLOv8 ONNX models. This makes possible to test gimbals camera inside without real model. - reduced confidence threshold requirement in AiEngineInferencevOnnxRuntime from 0.5 to 0.2 - make printing prettier with ONNX Runtime - removed unnecessary cv::Mat::clone() Type: Improvement Issue: https://denyspopov.atlassian.net/browse/AZ-39
This commit is contained in:
@@ -15,15 +15,21 @@ else {
|
||||
message("Not using real gimbal camera.")
|
||||
}
|
||||
|
||||
yolo_onnx {
|
||||
QMAKE_CXXFLAGS += -DYOLO_ONNX
|
||||
}
|
||||
|
||||
opi5 {
|
||||
message("OPI5 build")
|
||||
CONFIG += link_pkgconfig
|
||||
PKGCONFIG += opencv4 librga stb libturbojpeg
|
||||
INCLUDEPATH += /usr/include/rga
|
||||
QMAKE_CXXFLAGS += -DOPI5_BUILD
|
||||
LIBS += /usr/local/lib/librknnrt.so
|
||||
SOURCES += $$PWD/src-opi5/*.c $$PWD/src-opi5/*.cpp $$PWD/src-opi5/*.cc
|
||||
HEADERS += $$PWD/src-opi5/*.h
|
||||
} else:opencv {
|
||||
}
|
||||
else:opencv {
|
||||
message("OpenCV build")
|
||||
message("You must use YOLOv8 ONNX files. Azaion model does not work!")
|
||||
message("OpenCV must be version 4.10.0 installed to /usr/local/")
|
||||
|
||||
Reference in New Issue
Block a user