6 #ifndef MLMODEL_IMAGE_FEATURE_EXTRACTOR_HPP 7 #define MLMODEL_IMAGE_FEATURE_EXTRACTOR_HPP 9 #include <toolkits/image_deep_feature_extractor/image_feature_extractor.hpp> 15 namespace image_deep_feature_extractor {
19 class mlmodel_image_feature_extractor:
public image_feature_extractor {
25 mlmodel_image_feature_extractor(
const std::string& model_name,
26 const std::string& download_path);
29 const CoreML::Specification::Model& coreml_spec()
const override;
30 gl_sarray extract_features(gl_sarray images,
bool verbose,
size_t batch_size)
const override;
36 std::unique_ptr<impl> m_impl;
42 #endif // MLMODEL_IMAGE_FEATURE_EXTRACTOR_HPP