Blame view

src/village_inc.h 2.31 KB
e8beee4d   Hu Chunming   实现jni接口
1
2
3
4
  #ifndef __VILLAGE_INC_H__
  #define __VILLAGE_INC_H__
  
  #include <string>
427201b2   Hu Chunming   完善结果返回
5
6
  #include <vector>
  #include "vehicle_analysis.h"
e8beee4d   Hu Chunming   实现jni接口
7
8
9
10
11
12
13
  
  struct VillageParam {
      int dev_id;
      std::string db_path;
      std::string model_path;
  };
  
427201b2   Hu Chunming   完善结果返回
14
15
16
17
18
19
  typedef struct pendant_info
  {
  	sy_rect rect;
  	int index;		                     //���� 0-driver 1-face 2-belt 3-sunshield 4-tag 5-decoration 6-napkinbox 7-zhuanjt 8-callPhone 9-sunRoof 10-holder 11-smoke
  	float confidence;	 
      int driver_copilot_info;               
f258e1c8   Hu Chunming   添加非机动车驾乘信息
20
  	int iColor;     // "棕", "橙", "灰", "白", "粉", "紫", "红", "绿", "蓝", "银", "青", "黄", "黑", ,"多色", "其他"
427201b2   Hu Chunming   完善结果返回
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  } pendant_info;
  
  typedef struct VehicleInfo {                   	 
      vd_result vehicle_detect_res;               	 
      vd_result vehicle_win_detect_res;            	
      vd_result vehicle_body_detect_res;           	
      vc_result vehicle_color_res;                 	
      vr_result vehicle_recg_res;                 
      vplate_results vehicle_plate_det_recg_res;   	 
      std::vector<pendant_info> vehicle_pendant_det_res; 
      vid_result vehicle_illegal_det_res;          	
      vf_result vehicle_fea_res;                   	
      
      mta_result mta_res;                           
  
      manned_result manned_res;	 
              
81e8a405   Hu Chunming   初步完成SDK
38
      int type;
5e69f8fc   Hu Chunming   补充字段;
39
  
6f9dffde   Hu Chunming   返回prob
40
      int vpt_type;       // person ;bike 自行车 ; motor 摩托车;tricycle 三轮车;car 汽车; bigbus  大巴;lorry 货车;tractor 拖拉机;midibus  面包/中巴
427201b2   Hu Chunming   完善结果返回
41
      int rainshed;		//是否安装雨棚, 0 有雨棚   1 无雨棚
6f9dffde   Hu Chunming   返回prob
42
      float rainshed_prob;
a1a053f2   Hu Chunming   修正人骑车逻辑错误
43
44
      int truck_manned{0};
      int motor_manned{0};
427201b2   Hu Chunming   完善结果返回
45
46
47
48
  
      int human_upper_color;
      int human_lower_color;
  
81e8a405   Hu Chunming   初步完成SDK
49
      int reverse_driving;    // 0 正常行驶   1 逆行   -1 未知
6f9dffde   Hu Chunming   返回prob
50
51
      int phoning;        // 骑车打电话 1 为是,其他为否
      float phoning_prob;
81e8a405   Hu Chunming   初步完成SDK
52
53
54
55
  
      int cross_line;         // 压实线, 1 黄实线 2 白实线  -1 其他
      int cross_diversion_line;   // 压导流线   1 压了  -1 未压
  
427201b2   Hu Chunming   完善结果返回
56
57
  } VehicleInfo;
  
06e0182f   Hu Chunming   修复src图片alignWidth...
58
59
60
61
62
63
64
65
66
67
  struct LineInfo{
      int line_type;
      std::vector<sy_point> vec_pt;
  };
  
  struct SegInfo {
      int seg_type;
      std::vector<sy_point> vec_pt;
  };
  
427201b2   Hu Chunming   完善结果返回
68
  typedef struct AnalysisResult {		                 
06e0182f   Hu Chunming   修复src图片alignWidth...
69
70
71
      std::vector<VehicleInfo> info;	             				              
      std::vector<LineInfo> vec_line;
      std::vector<SegInfo> vec_road;
427201b2   Hu Chunming   完善结果返回
72
  } AnalysisResult;   
e8beee4d   Hu Chunming   实现jni接口
73
74
  
  #endif          // __VILLAGE_INC_H__