mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 12:26:33 +00:00
Initial version of combining rtsp_ai_player and camera modules.
Functionality has been written to rtsp_ai_player. TODO!! - move functionality of camera module misc/rtsp_ai_player/aienginegimbalserver.cpp - implement all signals in AiEngineGimbalClient - get drone position from autopilot and send it to AiEngineGimbalServer
This commit is contained in:
@@ -31,7 +31,7 @@ AiEngine::AiEngine(QString modelPath, QObject *parent)
|
||||
connect(this, &AiEngine::inferenceFrame, mInference, &AiEngineInference::performInferenceSlot, Qt::QueuedConnection);
|
||||
inferenceThread->start();
|
||||
|
||||
mGimbalControl = new AiEngineGimbalControl(this);
|
||||
mGimbalClient = new AiEngineGimbalClient(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,11 +50,7 @@ void AiEngine::stop(void)
|
||||
void AiEngine::inferenceResultsReceivedSlot(AiEngineInferenceResult result)
|
||||
{
|
||||
//qDebug() << "AiEngine got inference results in thread: " << QThread::currentThreadId();
|
||||
|
||||
#ifdef OPI5_BUILD
|
||||
mGimbalControl->inferenceResultSlot(result);
|
||||
#endif
|
||||
|
||||
mGimbalClient->inferenceResultSlot(result);
|
||||
cv::imshow("Received Frame", result.frame);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user