zhangzengfei
2024-10-20 c8a641dd784c071f83a0d90c35f617607fd0811b
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package vo
 
type SubImageInfoObject struct {
    ImageID     string `json:"ImageID"`     // 图像ID
    EventSort   int    `json:"EventSort"`   // 事件排序
    DeviceID    string `json:"DeviceID"`    // 设备ID
    StoragePath string `json:"StoragePath"` // 存储路径 采用Data传图片时为空
    Type        string `json:"Type"`        // 类型 14 场景图, 11 人脸图
    FileFormat  string `json:"FileFormat"`  // 文件格式
    ShotTime    string `json:"ShotTime"`    // 拍摄时间
    Width       int    `json:"Width"`       // 宽度
    Height      int    `json:"Height"`      // 高度
    Data        string `json:"Data"`        // 图像base65数据
}
 
// FaceObject represents the face object
type FaceObject struct {
    FaceID                            string `json:"FaceID"`                            // 人脸ID
    InfoKind                          int    `json:"InfoKind"`                          // 信息类型:人工采集还是自动采集
    SourceID                          string `json:"SourceID"`                          // 来源图像信息标识
    DeviceID                          string `json:"DeviceID"`                          // 设备编码,自动采集必选
    LeftTopX                          int    `json:"LeftTopX"`                          // 人脸左上角X坐标
    LeftTopY                          int    `json:"LeftTopY"`                          // 人脸左上角Y坐标
    RightBtmX                         int    `json:"RightBtmX"`                         // 人脸右下角X坐标
    RightBtmY                         int    `json:"RightBtmY"`                         // 人脸右下角Y坐标
    LocationMarkTime                  string `json:"LocationMarkTime"`                  // 人脸定位时间
    FaceAppearTime                    string `json:"FaceAppearTime"`                    // 人脸出现时间
    FaceDisAppearTime                 string `json:"FaceDisAppearTime"`                 // 人脸消失时间
    ShotTime                          string `json:"ShotTime"`                          // 人脸拍摄时间
    EntryTime                         string `json:"EntryTime"`                         // 入库时间
    IDType                            string `json:"IDType"`                            // 证件类型
    IDNumber                          string `json:"IDNumber"`                          // 证件号码
    Name                              string `json:"Name"`                              // 姓名
    UsedName                          string `json:"UsedName"`                          // 曾用名
    Alias                             string `json:"Alias"`                             // 别名
    GenderCode                        string `json:"GenderCode"`                        // 性别代码
    AgeUpLimit                        int    `json:"AgeUpLimit"`                        // 年龄上限
    AgeLowerLimit                     int    `json:"AgeLowerLimit"`                     // 年龄下限
    EthicCode                         string `json:"EthicCode"`                         // 民族代码
    NationalityCode                   string `json:"NationalityCode"`                   // 国籍代码
    NativeCityCode                    string `json:"NativeCityCode"`                    // 籍贯城市代码
    ResidenceAdminDivision            string `json:"ResidenceAdminDivision"`            // 居住地行政区划
    ChineseAccentCode                 string `json:"ChineseAccentCode"`                 // 汉语口音代码
    JobCategory                       string `json:"JobCategory"`                       // 职业类别
    AccompanyNumber                   int    `json:"AccompanyNumber"`                   // 陪同人数
    SkinColor                         string `json:"SkinColor"`                         // 皮肤颜色代码
    HairStyle                         string `json:"HairStyle"`                         // 发型代码
    HairColor                         string `json:"HairColor"`                         // 发色代码
    FaceStyle                         string `json:"FaceStyle"`                         // 脸型代码
    FacialFeature                     string `json:"FacialFeature"`                     // 面部特征代码
    PhysicalFeature                   string `json:"PhysicalFeature"`                   // 体貌特征代码
    RespiratorColor                   string `json:"RespiratorColor"`                   // 口罩颜色代码
    CapStyle                          string `json:"CapStyle"`                          // 帽子款式代码
    CapColor                          string `json:"CapColor"`                          // 帽子颜色代码
    GlassStyle                        string `json:"GlassStyle"`                        // 眼镜款式代码
    GlassColor                        string `json:"GlassColor"`                        // 眼镜颜色代码
    IsDriver                          int    `json:"IsDriver"`                          // 是否驾驶员:0-否, 1-是
    IsForeigner                       int    `json:"IsForeigner"`                       // 是否外国人:0-否, 1-是
    PassportType                      string `json:"PassportType"`                      // 护照类型
    ImmigrantTypeCode                 string `json:"ImmigrantTypeCode"`                 // 移民类型代码
    IsSuspectedTerrorist              int    `json:"IsSuspectedTerrorist"`              // 是否涉恐人员:0-否, 1-是
    SuspectedTerroristNumber          string `json:"SuspectedTerroristNumber"`          // 涉恐人员编号
    IsCriminalInvolved                int    `json:"IsCriminalInvolved"`                // 是否涉案人员:0-否, 1-是
    CriminalInvolvedSpecilisationCode string `json:"CriminalInvolvedSpecilisationCode"` // 涉案人员专长代码
    BodySpeciallMark                  string `json:"BodySpeciallMark"`                  // 体表特殊标记
    CrimeMethod                       string `json:"CrimeMethod"`                       // 犯罪手段代码
    CrimeCharacterCode                string `json:"CrimeCharacterCode"`                // 犯罪特征代码
    EscapedCriminalNumber             string `json:"EscapedCriminalNumber"`             // 在逃人员编号
    IsDetainees                       int    `json:"IsDetainees"`                       // 是否在押人员:0-否, 1-是
    DetentionHouseCode                string `json:"DetentionHouseCode"`                // 拘留所代码
    DetaineesIdentity                 string `json:"DetaineesIdentity"`                 // 在押人员身份
    DetaineesSpecialIdentity          string `json:"DetaineesSpecialIdentity"`          // 在押人员特殊身份
    MemberTypeCode                    string `json:"MemberTypeCode"`                    // 人员分类代码
    IsVictim                          int    `json:"IsVictim"`                          // 是否受害人:0-否, 1-是
    VictimType                        string `json:"VictimType"`                        // 受害人类型
    InjuredDegree                     string `json:"InjuredDegree"`                     // 受伤程度代码
    CorpseConditionCode               string `json:"CorpseConditionCode"`               // 尸体状态代码
    IsSuspiciousPerson                int    `json:"IsSuspiciousPerson"`                // 是否可疑人员:0-否, 1-是
    Attitude                          int    `json:"Attitude"`                          // 态度代码
    Similaritydegree                  int    `json:"Similaritydegree"`                  // 相似度
    EyebrowStyle                      string `json:"EyebrowStyle"`                      // 眉毛样式
    NoseStyle                         string `json:"NoseStyle"`                         // 鼻子样式
    MustacheStyle                     string `json:"MustacheStyle"`                     // 胡须样式
    LipStyle                          string `json:"LipStyle"`                          // 唇部样式
    WrinklePouch                      string `json:"WrinklePouch"`                      // 皱纹/眼袋
    AcneStain                         string `json:"AcneStain"`                         // 痤疮/斑痕
    FreckleBirthmark                  string `json:"FreckleBirthmark"`                  // 雀斑/胎记
    ScarDimple                        string `json:"ScarDimple"`                        // 疤痕/酒窝
    OtherFeature                      string `json:"OtherFeature"`                      // 其他特征
    SubImageList                      struct {
        SubImageInfoObject []SubImageInfoObject `json:"SubImageInfoObject"` // 子图像信息列表
    } `json:"SubImageList"` // 子图像列表
}
 
type RequestFaceList struct {
    FaceListObject struct {
        FaceObject []FaceObject `json:"FaceObject"`
    } `json:"FaceListObject"`
}
 
type NotificationFaceList struct {
    FaceObject []FaceObject `json:"FaceObject"`
}