Monocular Human Position Estimator
|
Go to the documentation of this file.
37 #ifndef INCLUDE_DETECTOR_HPP_
38 #define INCLUDE_DETECTOR_HPP_
42 #include <opencv2/highgui/highgui.hpp>
43 #include <opencv2/objdetect/objdetect.hpp>
44 #include <opencv2/imgproc/imgproc.hpp>
46 #include <opencv2/opencv.hpp>
53 double focal_length, cx, cy;
60 std::vector<cv::Rect> detections;
61 cv::VideoCapture camera;
66 cv::HOGDescriptor hog_detector;
69 #endif // INCLUDE_DETECTOR_HPP_
cv::Point2d get_x_and_y(cv::Rect, double)
Computes x and y co-ordinates of the object in the real world w.r.t camera frame.
Definition: Detector.cpp:135
void resize_bounding_box(cv::Rect *)
Resizes the bounding box.
Definition: Detector.cpp:109
void set_detection_object(cv::InputArray &)
Sets the type of object to be detected.
Definition: Detector.cpp:78
cv::Point2d get_centroid(cv::Rect)
Computes centroid of bounding box.
Definition: Detector.cpp:121
cv::Mat detect_object()
Updates frame by performing hog detection.
Definition: Detector.cpp:87
Detector()
Default constructor for Detector.
Definition: Detector.cpp:44
~Detector()
Destructor for the Detector class.
Definition: Detector.cpp:145
Definition: Detector.hpp:49
void set_camera_properties(std::string)
Sets camera source and frame parameters.
Definition: Detector.cpp:55