New threaded RTSP and AI image recognition.

This commit is contained in:
Your Name
2024-07-01 08:32:38 +03:00
parent 0c37aa6116
commit c03d477c45
27 changed files with 8140 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#pragma once
#include <QObject>
#include <QString>
#include <opencv2/core.hpp>
class AiEngineInferenceResult {
public:
cv::Mat frame;
int objects;
};
class AiEngineInference : public QObject
{
Q_OBJECT
public:
explicit AiEngineInference(QString modelPath, QObject *parent = nullptr);
bool isActive(void);
protected:
QString mModelPath;
bool mActive;
public slots:
virtual void performInferenceSlot(cv::Mat frame) = 0;
signals:
void resultsReady(AiEngineInferenceResult results);
};