Image Model#
-
class ImageModel : public ModelBase#
Subclassed by AnomalyModel, ClassificationModel, DetectionModel, KeypointDetectionModel, MaskRCNNModel, SegmentationModel
Public Functions
-
ImageModel(const std::string &modelFile, const std::string &resize_type, bool useAutoResize, const std::string &layout = "")#
Constructor
- Parameters:
modelFile – name of model to load
useAutoResize – - if true, image is resized by openvino
layout – - model input layout
-
virtual std::shared_ptr<InternalModelData> preprocess(const InputData &inputData, InferenceInput &input) override#
-
virtual void inferAsync(const ImageInputData &inputData, const ov::AnyMap &callback_args = {})#
-
std::unique_ptr<ResultBase> inferImage(const ImageInputData &inputData)#
-
std::vector<std::unique_ptr<ResultBase>> inferBatchImage(const std::vector<ImageInputData> &inputData)#
-
ModelBase(const std::string &modelFile, const std::string &layout = "")#
Public Static Functions
-
static std::vector<std::string> loadLabels(const std::string &labelFilename)#
-
ImageModel(const std::string &modelFile, const std::string &resize_type, bool useAutoResize, const std::string &layout = "")#