xuepengqiang
2019-12-26 025429cbd5dd3dc6f130b8de07664665b0c4b55a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef HUMAN_RUNING_H
#define HUMAN_RUNING_H
#include <iostream>
#include "camera_config.h"
#include "human_velocity.h"
#include <map>
using namespace std;
class Human_Run{
    public:
        char cam_id; //相机编号
        vector<vector<int>> cam_vec_ray; //区域信息
        int base_distance; //相机基线距离
        int base_length; //相机基线长度
        int angle; //相机角度
        int frame_presrate;
        int bottom_distance;
 
        vector<int> human_vec;
        map<int, HumanVelocity> human_velocity_map;
 
    public:
        Human_Run(char cam_id);
        double get_human_velocity(int rps,int human_id, int x1, int y1, int x2, int y2);
 
};
#endif