8 #ifndef TURI_ONE_SHOT_OBJECT_DETECTOR_H_ 9 #define TURI_ONE_SHOT_OBJECT_DETECTOR_H_ 11 #include <core/data/sframe/gl_sframe.hpp> 13 #include <model_server/lib/extensions/ml_model.hpp> 14 #include <toolkits/coreml_export/mlmodel_wrapper.hpp> 15 #include <toolkits/object_detection/object_detector.hpp> 18 namespace one_shot_object_detection {
20 class EXPORT one_shot_object_detector :
public ml_model_base {
23 one_shot_object_detector();
28 gl_sframe augment(
const gl_sframe &data,
const std::string &image_column_name,
29 const std::string &target_column_name,
30 const gl_sarray &backgrounds,
31 std::map<std::string, flexible_type> &options);
38 "image_column_name", "target_column_name",
39 "backgrounds", "options");
46 std::unique_ptr<
turi::object_detection::object_detector> model_;
#define BEGIN_CLASS_MEMBER_REGISTRATION(python_facing_classname)
#define REGISTER_CLASS_MEMBER_FUNCTION(function,...)
#define IMPORT_BASE_CLASS_REGISTRATION(base_class)
#define END_CLASS_MEMBER_REGISTRATION