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
|
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;
|
81e8a405
Hu Chunming
初步完成SDK
|
38
|
int type;
|
5e69f8fc
Hu Chunming
补充字段;
|
39
|
|
427201b2
Hu Chunming
完善结果返回
|
40
41
|
int vpt_type;
int rainshed; //是否安装雨棚, 0 有雨棚 1 无雨棚
|
5e69f8fc
Hu Chunming
补充字段;
|
42
43
|
int truck_manned;
int motor_manned;
|
427201b2
Hu Chunming
完善结果返回
|
44
45
46
47
|
int human_upper_color;
int human_lower_color;
|
81e8a405
Hu Chunming
初步完成SDK
|
48
49
50
51
52
53
|
int reverse_driving; // 0 正常行驶 1 逆行 -1 未知
int phoning; // 骑车打电话
int cross_line; // 压实线, 1 黄实线 2 白实线 -1 其他
int cross_diversion_line; // 压导流线 1 压了 -1 未压
|
427201b2
Hu Chunming
完善结果返回
|
54
55
|
} VehicleInfo;
|
06e0182f
Hu Chunming
修复src图片alignWidth...
|
56
57
58
59
60
61
62
63
64
65
|
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
完善结果返回
|
66
|
typedef struct AnalysisResult {
|
06e0182f
Hu Chunming
修复src图片alignWidth...
|
67
68
69
|
std::vector<VehicleInfo> info;
std::vector<LineInfo> vec_line;
std::vector<SegInfo> vec_road;
|
427201b2
Hu Chunming
完善结果返回
|
70
|
} AnalysisResult;
|
e8beee4d
Hu Chunming
实现jni接口
|
71
72
|
#endif // __VILLAGE_INC_H__
|