GAT1400人脸相关接口

人脸相关接口

批量人脸新增

1.接口概览

URI /VIID/Faces
方法 查询字符串 消息体 返回结果
POST <FaceList> <ResponseStatusList>
备注  

2.消息体特征参数

消息体结构参考C.9,字段定义参考A.9

3.返回消息

         结构参考C.25,字段定义参考A.26

4.示例

URI /VIID/ Faces
请求方法 POST
请求头 参见请求参数
请求体 {     “FaceListObject”: {         “FaceObject”: [             {                 “FaceID”: “650100000011900000010220171219100515999830656599”,                 “InfoKind”: 1,                 “SourceID”: “66000000001190123456022017120110101000007”,                 “DeviceID”: “55000111221190000007”,                 “LeftTopX”: 1,                 “LeftTopY”: 1,                 “RightBtmX”: 1,                 “RightBtmY”: 1,                 “LocationMarkTime”: “19981230010000”,                 “FaceAppearTime”: “19981230010000”,                 “FaceDisAppearTime”: “19981230010000”,                 “IDType”: “111”,                 “IDNumber”: “1”,                 “Name”: “大华”,                 “UsedName”: “dahua”,                 “Alias”: “dahua”,                 “GenderCode”: “1”,                 “AgeUpLimit”: 10,                 “AgeLowerLimit”: 20,                 “EthicCode”: “01”,                 “NationalityCode”: “CHN”,                 “NativeCityCode”: “330108”,                 “ResidenceAdminDivision”: “330100”,                 “ChineseAccentCode”: “1”,                 “JobCategory”: “1”,                 “AccompanyNumber”: 1,                 “SkinColor”: “1”,                 “HairStyle”: “1”,                 “HairColor”: “1”,                 “FaceStyle”: “1”,                 “FacialFeature”: “1”,                 “PhysicalFeature”: “1”,                 “RespiratorColor”: “1”,                 “CapStyle”: “1”,                 “CapColor”: “1”,                 “GlassStyle”: “1”,                 “GlassColor”: “1”,                 “IsDriver”: 1,                 “IsForeigner”: 1,                 “PassportType”: “1”,                 “ImmigrantTypeCode”: “1”,                 “IsSuspectedTerrorist”: 1,                 “SuspectedTerroristNumber”: “1”,                 “IsCriminalInvolved”: 1,                 “CriminalInvolvedSpecilisationCode”: “1”,                 “BodySpeciallMark”: “1”,                 “CrimeMethod”: “1”,                 “CrimeCharacterCode”: “111”,                 “EscapedCriminalNumber”: “11111111111111111111111”,                 “IsDetainees”: 1,                 “DetentionHouseCode”: “111111111”,                 “DetaineesIdentity”: “1”,                 “DetaineesSpecialIdentity”: “1”,                 “MemberTypeCode”: “1”,                 “IsVictim”: 1,                 “VictimType”: “1”,                 “InjuredDegree”: “1”,                 “CorpseConditionCode”: “1”,                 “IsSuspiciousPerson”: 1,                 “Attitude”: 1,                 “Similaritydegree”: 1,                 “EyebrowStyle”: “1”,                 “NoseStyle”: “1”,                 “MustacheStyle”: “1”,                 “LipStyle”: “1”,                 “WrinklePouch”: “1”,                 “AcneStain”: “1”,                 “FreckleBirthmark”: “1”,                 “ScarDimple”: “1”,                 “OtherFeature”: “1”,                 “SubImageList”: {                     “SubImageInfoObject”: [                         {                             “ImageID”: “33020300001190000001022017122111111100001”,                             “EventSort”: 11,                             “DeviceID”: “33070299011190000253”,                             “StoragePath”: “http://10.33.6.108:9080/testx_108_20170908/a2421c4fde6d4a74ac923e8470d6e7fa.jpg”,                             “Type”: “01”,                             “FileFormat”: “Jpeg”,                             “ShotTime”: “20170825032455”,                             “Width”: 437,                             “Height”: 350                         }                     ]                 }             }         ]     } }
响应体 {     “ResponseStatusListObject”: {         “ResponseStatusObject”: [             {                 “RequestURL”: “http://localhost:8080/VIID/Faces”,                 “StatusCode”: 0,                 “StatusString”: “正常”,                 “Id”: “650100000011900000010220171219100515999830656599”,                 “LocalTime”: “20171222162927”             }         ]     } }

批量人脸查询

1.接口概览

URI /VIID/Faces
方法 查询字符串 消息体 返回结果
GET Face属性键-值对 < FaceList>
备注  

2.查询字符串

查询指令为Face属性键-值对,特征属性定义参考A.9

3.返回结果

结构参考C.9,字段定义参考A.9

4.示例

URI /VIID/ Faces
请求方法 GET
请求头 参见请求参数
查询参数 ?FaceID =650100000011900000010220171219100515999830656599 &InfoKind=1 &IDType=111 &LocationMarkTime=19981230010000…
响应体 {     “FaceListObject”: {         “FaceObject”: [             {                 “FaceID”: “650100000011900000010220171219100515999830656489”,                 “InfoKind”: 1,                 “SourceID”: “66000000001190123456022017120110101000007”,                 “DeviceID”: “55000111221190000007”,                 “LeftTopX”: 1,                 “LeftTopY”: 1,                 “RightBtmX”: 1,                 “RightBtmY”: 1,                 “LocationMarkTime”: “19981230010000”,                 “FaceAppearTime”: “19981230010000”,                 “FaceDisAppearTime”: “19981230010000”,                 “IDType”: “111”,                 “IDNumber”: “1”,                 “Name”: “大华”,                 “UsedName”: “dahua”,                 “Alias”: “dahua”,                 “GenderCode”: “1”,                 “AgeUpLimit”: 10,                 “AgeLowerLimit”: 20,                 “EthicCode”: “1”,                 “NationalityCode”: “CHN”,                 “NativeCityCode”: “330108”,                 “ResidenceAdminDivision”: “330100”,                 “ChineseAccentCode”: “1”,                 “JobCategory”: “1”,                 “AccompanyNumber”: 1,                 “SkinColor”: “1”,                 “HairStyle”: “1”,                 “HairColor”: “1”,                 “FaceStyle”: “1”,                 “FacialFeature”: “1”,                 “PhysicalFeature”: “1”,                 “RespiratorColor”: “1”,                 “CapStyle”: “1”,                 “CapColor”: “1”,                 “GlassStyle”: “1”,                 “GlassColor”: “1”,                 “IsDriver”: 1,                 “IsForeigner”: 1,                 “PassportType”: “1”,                 “ImmigrantTypeCode”: “1”,                 “IsSuspectedTerrorist”: 1,                 “SuspectedTerroristNumber”: “1”,                 “IsCriminalInvolved”: 1,                 “CriminalInvolvedSpecilisationCode”: “1”,                 “BodySpeciallMark”: “1”,                 “CrimeMethod”: “1”,                 “CrimeCharacterCode”: “111”,                 “EscapedCriminalNumber”: “11111111111111111111111”,                 “IsDetainees”: 1,                 “DetentionHouseCode”: “111111111”,                 “DetaineesIdentity”: “1”,                 “DetaineesSpecialIdentity”: “1”,                 “MemberTypeCode”: “1”,                 “IsVictim”: 1,                 “VictimType”: “1”,                 “InjuredDegree”: “1”,                 “CorpseConditionCode”: “1”,                 “IsSuspiciousPerson”: 1,                 “Attitude”: 1,                 “Similaritydegree”: 1,                 “EyebrowStyle”: “1”,                 “NoseStyle”: “1”,                 “MustacheStyle”: “1”,                 “LipStyle”: “1”,                 “WrinklePouch”: “1”,                 “AcneStain”: “1”,                 “FreckleBirthmark”: “1”,                 “ScarDimple”: “1”,                 “OtherFeature”: “1”,                 “SubImageList”: {                     “SubImageInfoObject”: [                         {                             “ImageID”: “33020300001190000001022017122111111100001”,                             “EventSort”: 1,                             “DeviceID”: “33070299011190000253”,                             “StoragePath”: “http://172.26.8.236:11180/pictures//07314a17009347ab86d1d4a9b52abd1d.jpg”,                             “Type”: “11”,                             “FileFormat”: “Jpeg”,                             “ShotTime”: “20171221104550”,                             “Width”: 358,                             “Height”: 441                         }                     ]                 }             }         ]     } }

批量人脸修改

1.   接口概览

URI /VIID/Faces
方法 查询字符串 消息体 返回结果
PUT <FaceList> <ResponseStatusList>
备注 消息体中FaceID必填,否则操作无效

2.消息体特征参数

消息体结构参考C.9,字段定义参考A.9

3.返回结果

         结构参考C.25,字段定义参考A.26

4.示例

URI /VIID/Faces
请求方法 PUT
请求头 参见请求参数
请求体 {     “FaceListObject”: {         “FaceObject”: [             {                 “FaceID”: “650100000011900000010220171219100515999830656489”,                 “InfoKind”: 2,                 “LeftTopX”: 10,                 “LeftTopY”: 10,                 “RightBtmX”: 10,                 “RightBtmY”: 10,                 “NativeCityCode”: “330109”,                 “ResidenceAdminDivision”: “330101”,                 “ChineseAccentCode”: “2”,                 “JobCategory”: “2”,                 “AccompanyNumber”: 2,                 “SkinColor”: “2”,                 “HairStyle”: “2”,                 “HairColor”: “2”,                 “FaceStyle”: “2”,                 “FacialFeature”: “2”,                 “PhysicalFeature”: “2” …             }         ]     } }            
响应体 {     “ResponseStatusListObject”: {         “ResponseStatusObject”: [             {                 “RequestURL”: “http://localhost:8080/VIID/Faces”,                 “StatusCode”: 0,                 “StatusString”: “正常”,                 “Id”: “650100000011900000010220171219100515999830656489”,                 “LocalTime”: “20171223094319”             }         ]     } }

批量人脸删除

1.接口概览

URI /VIID/Faces
方法 请求参数 消息体 返回结果
DELETE 键为IDList,值为用英文半角分号”,”分隔的字符串 <ResponseStatusList>
备注  

2.请求参数

IDList=<FaceID >,< FaceID >。

3.返回结果

         结构参考C.25,字段定义参考A.26

4.示例

URI /VIID/ Faces
请求方法 DELETE
请求头 参见请求参数
请求参数 ?IDList=650100000011900000010220171219100515999830656489,650100000011900000010220171219100515999830656490  
响应体 {     “ResponseStatusListObject”: {         “ResponseStatusObject”: [             {                 “RequestURL”: “http://localhost:8080/VIID/Faces”,                 “StatusCode”: 0,                 “StatusString”: “正常”,                 “Id”: “650100000011900000010220171219100515999830656489”,                 “LocalTime”: “20171223094319”             },             {                 “RequestURL”: “http://localhost:8080/VIID/Faces”,                 “StatusCode”: 0,                 “StatusString”: “正常”,                 “Id”: “650100000011900000010220171219100515999830656490”,                 “LocalTime”: “20171223094319”             }         ]     } }

单个人脸查询

1.接口概览

URI /VIID/Faces/<FaceID>
方法 请求参数 消息体 返回结果
GET <Face>
备注  

2.   请求参数

3.返回结果

         结构参考C.9,字段定义参考A.9

4.示例

URI /VIID/Faces/650100000011900000010220171219100515999830656489
请求方法 GET
请求头 参见请求参数
请求体
响应体 {     “FaceObject”: {         “FaceID”: “650100000011900000010220171219100515999830656489”,         “InfoKind”: 2,         “SourceID”: “66000000001190123456022017120110101000007”,         “DeviceID”: “55000111221190000007”,         “LeftTopX”: 10,         “LeftTopY”: 10,         “RightBtmX”: 10,         “RightBtmY”: 10,         “LocationMarkTime”: “19981230010000”,         “FaceAppearTime”: “19981230010000”,         “FaceDisAppearTime”: “19981230010000”,         “IDType”: “111”,         “IDNumber”: “1”,         “Name”: “大华”,         “UsedName”: “dahua”,         “Alias”: “dahua”,         “GenderCode”: “1”,         “AgeUpLimit”: 10,         “AgeLowerLimit”: 20,         “EthicCode”: “1”,         “NationalityCode”: “CHN”,         “NativeCityCode”: “330109”,         “ResidenceAdminDivision”: “330101”,         “ChineseAccentCode”: “2”,         “JobCategory”: “2”,         “AccompanyNumber”: 2,         “SkinColor”: “2”,         “HairStyle”: “2”,         “HairColor”: “2”,         “FaceStyle”: “2”,         “FacialFeature”: “2”,         “PhysicalFeature”: “2”,         “RespiratorColor”: “1”,         “CapStyle”: “1”,         “CapColor”: “1”,         “GlassStyle”: “1”,         “GlassColor”: “1”,         “IsDriver”: 1,         “IsForeigner”: 1,         “PassportType”: “1”,         “ImmigrantTypeCode”: “1”,         “IsSuspectedTerrorist”: 1,         “SuspectedTerroristNumber”: “1”,         “IsCriminalInvolved”: 1,         “CriminalInvolvedSpecilisationCode”: “1”,         “BodySpeciallMark”: “1”,         “CrimeMethod”: “1”,         “CrimeCharacterCode”: “111”,         “EscapedCriminalNumber”: “11111111111111111111111”,         “IsDetainees”: 1,         “DetentionHouseCode”: “111111111”,         “DetaineesIdentity”: “1”,         “DetaineesSpecialIdentity”: “1”,         “MemberTypeCode”: “1”,         “IsVictim”: 1,         “VictimType”: “1”,         “InjuredDegree”: “1”,         “CorpseConditionCode”: “1”,         “IsSuspiciousPerson”: 1,         “Attitude”: 1,         “Similaritydegree”: 1,         “EyebrowStyle”: “1”,         “NoseStyle”: “1”,         “MustacheStyle”: “1”,         “LipStyle”: “1”,         “WrinklePouch”: “1”,         “AcneStain”: “1”,         “FreckleBirthmark”: “1”,         “ScarDimple”: “1”,         “OtherFeature”: “1”,         “SubImageList”: {             “SubImageInfoObject”: [                 {                     “ImageID”: “33020300001190000001022017122111111100001”,                     “EventSort”: 4,                     “DeviceID”: “55220299011190000253”,                     “StoragePath”: “http://localhost:9080/testx_108_20170908/a2421c4fde6d4a74ac923e8470d6e7fa.jpg”,                     “Type”: “01”,                     “FileFormat”: “Jpeg”,                     “ShotTime”: “20170925032455”,                     “Width”: 437,                     “Height”: 350                 }             ]         }     } }

单个人脸修改

1.接口概览

URI /VIID/Faces/<FaceID>
方法 请求参数 消息体 返回结果
PUT  无 <Face> <ResponseStatus>
备注  

2.消息体特征参数

         结构参考C.9,字段定义参考A.9

3.返回结果

         结构参考C.25,字段定义参考A.26

4.示例

URI /VIID/Faces/650100000011900000010220171219100515999830656489
请求方法 PUT
请求头 参见请求参数
请求体 {     “FaceObject”: {         “FaceID”: “650100000011900000010220171219100515999830656489”,         “LeftTopX”: 10,         “LeftTopY”: 10,         “RightBtmX”: 10,         “RightBtmY”: 10 …     } }
响应体 {     “ResponseStatusObject”: {         “RequestURL”: “http://localhost:8080 /VIID/Faces/650100000011900000010220171219100515999830656589”,         “StatusCode”: 0,         “StatusString”: “正常”,         “Id”: “650100000011900000010220171219100515999830656589”,         “LocalTime”: “20171223135905”     } }

单个人脸删除

1.接口概览

URI /VIID/Faces/<FaceID>
方法 请求参数 消息体 返回结果
DELETE  无 <ResponseStatus>
备注  

2.请求参数

3.返回结果

         结构参考C.25,字段定义参考A.26

4.示例

URI /VIID/Faces/650100000011900000010220171219100515999830656489
请求方法 DELETE
请求头 参见请求参数
请求体  
响应体 {     “ResponseStatusObject”: {         “RequestURL”: “http://localhost:8080 /VIID/Faces/650100000011900000010220171219100515999830656489”,         “StatusCode”: 0,         “StatusString”: “正常”,         “Id”: “650100000011900000010220171219100515999830656489”,         “LocalTime”: “20171223135905”     } }

关注公众号“大模型全栈程序员”回复“小程序”获取1000个小程序打包源码。更多免费资源在http://www.gitweixin.com/?p=2627

发表评论

邮箱地址不会被公开。 必填项已用*标注