#ifndef SUPPORT_INCLUDE_TASK_VISION_OBJECT_DETECTION_TASK_H_ #define SUPPORT_INCLUDE_TASK_VISION_OBJECT_DETECTION_TASK_H_ #include // for: shared_ptr #include #include //for: vector #include "opencv2/opencv.hpp" #include "task/vision/object_detection_types.h" class objectDetectionTask { public: objectDetectionTask(const std::string &filePath, const std::string &labelFilepath); explicit objectDetectionTask(const std::string &filePath); ~objectDetectionTask() = default; ObjectDetectionResult Detect(const cv::Mat &raw_img); ObjectDetectionResult Detect( const std::vector> &input_tensors, const int img_height, const int img_width); std::vector> Process(const cv::Mat &img_raw); int getInitFlag(); private: class impl; std::shared_ptr pimpl_; int init_flag_; }; #endif // SUPPORT_INCLUDE_TASK_VISION_OBJECT_DETECTION_TASK_H_