#pragma once

// InspireFace FeatureHub 的持久化人脸库。SDK 模型包须在 Init 前加载。
#include <cstdint>
#include <string>
#include <vector>

namespace handwash {

class FaceGallery {
public:
    ~FaceGallery();
    FaceGallery(const FaceGallery&) = delete;
    FaceGallery& operator=(const FaceGallery&) = delete;
    FaceGallery() = default;

    bool Init(const std::string& db_path, float threshold);
    bool EnrollImage(const std::string& image_path, int64_t person_id);
    bool Search(const std::vector<float>& feature, int64_t* person_id, float* similarity) const;
    int count() const { return count_; }

private:
    bool enabled_ = false;
    int count_ = 0;
};

}  // namespace handwash
