{
private:
std::unique_ptr<MetaParser> _parser;
- LandmarkDetectionTaskType _task_type { LandmarkDetectionTaskType::LANDMARK_DETECTION_TASK_NONE };
std::string _defaultModelName;
std::string _modelFilePath;
std::string _modelMetaFilePath;
void setUserModel(const std::string &model_file, const std::string &meta_file, const std::string &label_file);
void parseConfigFile(const std::string &configFilePath);
void parseMetaFile();
- void setTaskType(LandmarkDetectionTaskType task_type);
void setBackendType(int backend_type);
void setTargetDeviceType(int device_type);
- LandmarkDetectionTaskType getTaskType() const;
const std::string &getDefaultModelName() const;
const std::string &getModelFilePath() const;
const std::string &getLabelFilePath() const;
double getConfidenceThreshold() const;
int getBackendType() const;
int getTargetDeviceType() const;
+ void loadMetaFile(LandmarkDetectionTaskType task_type);
};
} // machine_learning