mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-23 04:26:33 +00:00
Enables use of multiple TPUs in OPI5
This commit is contained in:
@@ -11,6 +11,7 @@ class AiEngineInferenceOpi5 : public AiEngineInference
|
||||
public:
|
||||
explicit AiEngineInferenceOpi5(QString modelPath, QObject *parent = nullptr);
|
||||
~AiEngineInferenceOpi5();
|
||||
void initialize(int number) override;
|
||||
|
||||
public slots:
|
||||
void performInferenceSlot(cv::Mat frame) override;
|
||||
@@ -21,5 +22,5 @@ private:
|
||||
cv::Mat resizeToHalfAndAssigntoTopLeft640x640(const cv::Mat& inputFrame);
|
||||
void drawObjects(cv::Mat& image, const object_detect_result_list& result_list);
|
||||
|
||||
rknn_app_context_t mRrknnAppCtx;
|
||||
rknn_app_context_t mRrknnAppCtx0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user