Fix model optimisation

This commit is contained in:
2026-04-09 08:09:02 +10:00
parent 34854d87f4
commit eeb205779a
10 changed files with 688 additions and 160 deletions

View File

@@ -25,6 +25,10 @@ namespace ANSCENTER {
std::mutex _mtx;
std::string _modelFilePath;
std::unique_ptr<SCRFD> _face_detector = nullptr;
// DML device-lost recovery (see ANSONNXYOLO.h for rationale)
bool _dmlDeviceLost{ false };
std::string _scrfdModelPath; // cached for CPU fallback recreation
std::vector<Object> _movementObjects;
int _retainDetectedFaces{ 0 };
std::vector<Object> Inference(const cv::Mat& input, const std::string& camera_id, bool useDynamicImage = true, bool validateFace=false);