Blame view

src/village_inc.h 1.82 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
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
  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;               
  	int iColor;     //13类:"棕", "橙", "灰", "白", "粉", "紫", "红", "绿", "蓝", "银", "青", "黄", "黑"
  } 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;	 
              
      int type;                                    
      int vpt_type;
      int rainshed;		//是否安装雨棚, 0 有雨棚   1 无雨棚
      int manned;
  
      int human_upper_color;
      int human_lower_color;
  
  } VehicleInfo;
  
06e0182f   Hu Chunming   修复src图片alignWidth...
48
49
50
51
52
53
54
55
56
57
  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   完善结果返回
58
  typedef struct AnalysisResult {		                 
06e0182f   Hu Chunming   修复src图片alignWidth...
59
60
61
      std::vector<VehicleInfo> info;	             				              
      std::vector<LineInfo> vec_line;
      std::vector<SegInfo> vec_road;
427201b2   Hu Chunming   完善结果返回
62
  } AnalysisResult;   
e8beee4d   Hu Chunming   实现jni接口
63
64
  
  #endif          // __VILLAGE_INC_H__