mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 22:26:35 +00:00
32 lines
526 B
C++
32 lines
526 B
C++
#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);
|
|
};
|