xuepengqiang
2020-05-26 48bf06c1cadadcfb93faa8df63db71e59b534f55
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//
// Created by Scheaven on 2020/5/20.
//
 
#ifndef INC_01_COORDINATE_TRANSFORMATION_CON_TARGET_H
#define INC_01_COORDINATE_TRANSFORMATION_CON_TARGET_H
 
#include <vector>
#include <map>
#include <string>
 
using namespace std;
 
#include <stdint.h>
#include <math.h>
#include <stdint.h>
#include <iostream>
#include <vector>
#include <fstream>
#include <algorithm>
#include "stdio.h"
#include "stdlib.h"
 
#include "math_util.h"
 
// 初始化时区域结构
typedef struct _PInfo
{
    SPoint2f* point;
    int count;
}RegInfo;
 
typedef struct _CamVec
{
    RegInfo *regInfo;
    int count;
}CamVec;
 
 
// 传输的人体站立的点位信息
typedef struct _HumanInfo
{
    int human_id;
    SPoint2f point;
//    float * feature;
}HumanInfo;
 
typedef struct _MatchHuman
{
    HumanInfo* humanInfo;
    int count;      //一共多少个人的坐标点
}MatchHuman;
 
typedef struct _mulCam
{
    MatchHuman* matchHuman;
    int cam_count;
}MulCam;
 
 
// 获取最终的结果信息
typedef struct _CamResult
{
    map<string,float> confidence_map;
    string cam_pair;  //是哪两个摄像头相关
}CamResult;
 
 
typedef struct _STarget
{
    CamResult *camResult;
    map<int, int> direction_map; // 相互关联的摄像头
}STarget;
 
//typedef std::vector<Target> FIRST_VEC;
 
 
#endif //INC_01_COORDINATE_TRANSFORMATION_CON_TARGET_H