Small fixes to AI Controller

- removed QtSerialPort from the Qt CONFIG parameters
- remove compiler warnings
- reduced logging
- fixed FPS to show what AI really analyzed
- RTSP reader tries to connect to the stream once per second until it succeeds
This commit is contained in:
Tuomas Järvinen
2024-10-24 18:36:12 +02:00
parent 45c19baa45
commit e3643ea622
5 changed files with 26 additions and 32 deletions
+4 -3
View File
@@ -1,7 +1,7 @@
#pragma once
#include <QObject>
#include <QElapsedTimer>
#include <QObject>
#include <opencv2/core.hpp>
#include <opencv2/videoio.hpp>
#include "aienginertsplistener.h"
@@ -26,8 +26,9 @@ signals:
void inferenceFrame3(cv::Mat frame);
private:
QElapsedTimer mElapsedTimer;
uint32_t mFrameCounter = 0;
uint32_t mRtspFrameCounter;
uint32_t mInferenceFrameCounter;
QElapsedTimer mRtspElapsedTimer;
AiEngineRtspListener *mRtspListener;
AiEngineInference *mInference;
AiEngineInference *mInference2;