mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 11:36:34 +00:00
- addedd NCNN model support to rtsp_ai_player
- added printing of inference FPS - simple AI test bench which can be used to compare models
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
QT += core network serialport
|
||||
QT -= gui
|
||||
CONFIG += c++11 concurrent console
|
||||
CONFIG += concurrent console c++17
|
||||
MOC_DIR = moc
|
||||
OBJECTS_DIR = obj
|
||||
|
||||
SOURCES = $$PWD/*.cpp
|
||||
HEADERS = $$PWD/*.h
|
||||
|
||||
ai_bench {
|
||||
QMAKE_CXXFLAGS += -DAI_BENCH
|
||||
}
|
||||
|
||||
gimbal {
|
||||
message("Using real gimbal camera.")
|
||||
QMAKE_CXXFLAGS += -DGIMBAL
|
||||
@@ -35,6 +39,17 @@ opi5 {
|
||||
SOURCES += $$PWD/src-opi5/*.c $$PWD/src-opi5/*.cpp $$PWD/src-opi5/*.cc
|
||||
HEADERS += $$PWD/src-opi5/*.h
|
||||
}
|
||||
else:ncnn {
|
||||
message("NCNN build")
|
||||
CONFIG += link_pkgconfig
|
||||
PKGCONFIG += opencv4
|
||||
QMAKE_CXXFLAGS += -DNCNN_BUILD -fopenmp
|
||||
QMAKE_LFLAGS += -fopenmp
|
||||
INCLUDEPATH += /opt/ncnn/include
|
||||
LIBS += /opt/ncnn/lib/libncnn.a -lgomp
|
||||
SOURCES += $$PWD/src-ncnn/*.cpp
|
||||
HEADERS += $$PWD/src-ncnn/*.h
|
||||
}
|
||||
else:opencv {
|
||||
message("OpenCV build")
|
||||
message("You must use YOLOv8 ONNX files. Azaion model does not work!")
|
||||
|
||||
Reference in New Issue
Block a user