From 989fd314f2d23ec24864ede45b14ab4702148d5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuomas=20J=C3=A4rvinen?= Date: Thu, 4 Jul 2024 15:51:04 +0300 Subject: [PATCH] Fixed opi_rtsp to use network module --- misc/camera/a8_remote/remoteControl.cpp | 1 - tmp/opi_rtsp/aiengine.cpp | 2 +- tmp/opi_rtsp/opi_rtsp.pro | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/misc/camera/a8_remote/remoteControl.cpp b/misc/camera/a8_remote/remoteControl.cpp index ebc9a84..74b9cd8 100644 --- a/misc/camera/a8_remote/remoteControl.cpp +++ b/misc/camera/a8_remote/remoteControl.cpp @@ -27,6 +27,5 @@ uint8_t RemoteControl::sendData(uint16_t top, uint16_t left, uint16_t bottom, ui qDebug("Datagram sent successfully"); } - QThread::msleep(100); return 0; } diff --git a/tmp/opi_rtsp/aiengine.cpp b/tmp/opi_rtsp/aiengine.cpp index 9436c6f..fd4df6f 100644 --- a/tmp/opi_rtsp/aiengine.cpp +++ b/tmp/opi_rtsp/aiengine.cpp @@ -48,7 +48,7 @@ void AiEngine::inferenceResultsReceivedSlot(AiEngineInferenceResult result) //qDebug() << "AiEngine got inference results in thread: " << QThread::currentThreadId(); mGimbalControl->inferenceResultSlot(result); - //cv::imshow("Received Frame", result.frame); + cv::imshow("Received Frame", result.frame); //#ifndef OPI5_BUILD //cv::imshow("Received Frame", result.frame); diff --git a/tmp/opi_rtsp/opi_rtsp.pro b/tmp/opi_rtsp/opi_rtsp.pro index 2e2a043..1e797ff 100644 --- a/tmp/opi_rtsp/opi_rtsp.pro +++ b/tmp/opi_rtsp/opi_rtsp.pro @@ -1,4 +1,4 @@ -QT += core +QT += core network QT -= gui CONFIG += c++11 link_pkgconfig concurrent console PKGCONFIG += opencv4