Enables use of multiple TPUs in OPI5

This commit is contained in:
Tuomas Järvinen
2024-07-27 11:28:47 +03:00
parent 147213cec6
commit 7052a05d55
17 changed files with 336 additions and 65 deletions
+3 -1
View File
@@ -17,6 +17,7 @@ public:
AiEngineRectangle rectangle;
float propability;
int classId;
QString classStr;
};
@@ -38,10 +39,11 @@ protected:
cv::Mat resizeAndPad(const cv::Mat& src);
QString mModelPath;
bool mActive;
int mNumber;
public slots:
virtual void performInferenceSlot(cv::Mat frame) = 0;
virtual void initialize(int number) = 0;
signals:
void resultsReady(AiEngineInferenceResult results);
};