mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 21:46:33 +00:00
30 lines
604 B
C++
30 lines
604 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <opencv2/core.hpp>
|
|
#include <opencv2/videoio.hpp>
|
|
#include "aienginertsplistener.h"
|
|
#include "aiengineinference.h"
|
|
|
|
class AiEngine : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit AiEngine(QString modelPath, QObject *parent = nullptr);
|
|
void start(void);
|
|
void stop(void);
|
|
|
|
public slots:
|
|
void frameReceivedSlot(cv::Mat frame);
|
|
void inferenceResultsReceivedSlot(AiEngineInferenceResult results);
|
|
|
|
signals:
|
|
void inferenceFrame(cv::Mat frame);
|
|
|
|
private:
|
|
AiEngineRtspListener *mRtspListener;
|
|
AiEngineInference *mInference;
|
|
|
|
signals:
|
|
};
|