Anomaly Model#
The AnomalyModel
is a generic OpenVINO model that aims to provide a single interface for all the exported models based on Anomalib.
Currently, the AnomalyModel
supports the following models:
Padim
STFPM
-
class AnomalyModel : public ImageModel#
Public Functions
-
virtual std::unique_ptr<AnomalyResult> infer(const ImageInputData &inputData)#
-
virtual std::vector<std::unique_ptr<AnomalyResult>> inferBatch(const std::vector<ImageInputData> &inputImgs)#
-
virtual std::unique_ptr<ResultBase> postprocess(InferenceResult &infResult) override#
Public Static Functions
-
static std::unique_ptr<AnomalyModel> create_model(const std::string &modelFile, const ov::AnyMap &configuration = {}, bool preload = true, const std::string &device = "AUTO")#
Public Static Attributes
-
static std::string ModelType = "AnomalyDetection"#
Friends
-
friend std::ostream &operator<<(std::ostream &os, std::unique_ptr<AnomalyModel> &model)#
-
virtual std::unique_ptr<AnomalyResult> infer(const ImageInputData &inputData)#