mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 15:16:34 +00:00
Added new qmake config option which enables real gimbal camera
Gimbal camera can be enabled and used for example with command: qmake6 CONFIG+=gimbal && make && ./rtsp_ai_player ~/azaion/models/onnx/yolov8m.onnx
This commit is contained in:
@@ -50,7 +50,11 @@ AiEngine::AiEngine(QString modelPath, QObject *parent)
|
||||
inferenceThread3->start();
|
||||
#endif
|
||||
|
||||
#ifdef GIMBAL
|
||||
mGimbalClient = new AiEngineGimbalClient(this);
|
||||
#else
|
||||
mGimbalClient = nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +77,10 @@ void AiEngine::inferenceResultsReceivedSlot(AiEngineInferenceResult result)
|
||||
qDebug() << "FPS = " << (mFrameCounter / (mElapsedTimer.elapsed()/1000.0f));
|
||||
|
||||
//qDebug() << "AiEngine got inference results in thread: " << QThread::currentThreadId();
|
||||
mGimbalClient->inferenceResultSlot(result);
|
||||
if (mGimbalClient != nullptr) {
|
||||
mGimbalClient->inferenceResultSlot(result);
|
||||
}
|
||||
|
||||
cv::imshow("Received Frame", result.frame);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user