| 
| 
double  | fps | 
|   | 
| 
double  | focal_length | 
|   | 
| 
double  | cx | 
|   | 
| 
double  | cy | 
|   | 
| 
std::vector< cv::Rect >  | detections | 
|   | 
| 
cv::VideoCapture  | camera | 
|   | 
◆ Detector()
◆ detect_object()
      
        
          | cv::Mat Detector::detect_object  | 
          ( | 
           | ) | 
           | 
        
      
 
Updates frame by performing hog detection. 
- Returns
 - cv::Mat Returns updated frame from camera 
 
 
 
◆ get_centroid()
      
        
          | cv::Point2d Detector::get_centroid  | 
          ( | 
          cv::Rect  | 
          detection | ) | 
           | 
        
      
 
Computes centroid of bounding box. 
- Returns
 - std::vector<cv::Point2d> 
 
 
 
◆ get_x_and_y()
      
        
          | cv::Point2d Detector::get_x_and_y  | 
          ( | 
          cv::Rect  | 
          detection,  | 
        
        
           | 
           | 
          double  | 
          z_distance  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Computes x and y co-ordinates of the object in the real world w.r.t camera frame. 
- Parameters
 - 
  
    | detection | Resized detections  | 
    | z_distance | Distance between the object and the camera. | 
  
   
- Returns
 - std::vector<cv::Point2d> 
  
 
 
◆ resize_bounding_box()
      
        
          | void Detector::resize_bounding_box  | 
          ( | 
          cv::Rect *  | 
          boxPtr | ) | 
           | 
        
      
 
Resizes the bounding box. 
- Parameters
 - 
  
    | boxPtr | Pointer to cv::Rect object created after detections  | 
  
   
 
 
◆ set_camera_properties()
      
        
          | void Detector::set_camera_properties  | 
          ( | 
          std::string  | 
          source | ) | 
           | 
        
      
 
Sets camera source and frame parameters. 
- Parameters
 - 
  
  
 
 
 
◆ set_detection_object()
      
        
          | void Detector::set_detection_object  | 
          ( | 
          cv::InputArray &  | 
          svm_detector | ) | 
           | 
        
      
 
Sets the type of object to be detected. 
- Parameters
 - 
  
    | svm_detector | descriptor of type cv::HOGDescriptor  | 
  
   
 
 
The documentation for this class was generated from the following files: