3 #include "camera_bounding_box_factory.h"
5 #include <opencv2/core.hpp>
6 #include <opencv2/highgui.hpp>
7 #include <opencv2/video/background_segm.hpp>
8 #include <opencv2/imgproc/imgproc.hpp>
9 #include <opencv2/features2d.hpp>
10 #include <opencv2/videoio.hpp>
21 const int kParamMinArea = 100;
24 const double kparamBackgroundLearnRate = -1;
47 bool DetectBoundingBox(BYTE* input_frame_buffer,
int length,
int image_width,
int image_height,
int image_type, vector<BoundingBoxPoint> &bounding_rect)
override;
55 void SetBackgroundFrame(BYTE* background_frame_buffer,
int length,
int image_width,
int image_height,
int image_type)
override;
58 BackgroundFilterType background_type = BackgroundFilterType::kMixed;
61 int param_min_area = kParamMinArea;
64 double param_background_learn_rate = kparamBackgroundLearnRate;
68 void SetBackground(Mat background_frame);
71 bool DetectBoundingBoxPosition(Mat input_frame, cv::Rect &bounding_rect);
73 Mat saved_background_frame_;
84 Ptr<BackgroundSubtractor> bg_proc_;