mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 22:06:34 +00:00
21 lines
516 B
C++
21 lines
516 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include "aiengineinference.h"
|
|
#include "yolov8Predictor.h"
|
|
|
|
class AiEngineInferencevOnnxRuntime : public AiEngineInference
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit AiEngineInferencevOnnxRuntime(QString modelPath, QObject *parent = nullptr);
|
|
|
|
public slots:
|
|
void performInferenceSlot(cv::Mat frame) override;
|
|
|
|
private:
|
|
cv::Mat drawLabels(const cv::Mat &image, const std::vector<Yolov8Result> &detections);
|
|
YOLOPredictor mPredictor;
|
|
std::vector<std::string> mClassNames;
|
|
};
|