From b09aff521348ad6bb3bb7aa28bffefce942238d8 Mon Sep 17 00:00:00 2001 From: dupengyue <dupengyue@454eff88-639b-444f-9e54-f578c98de674> Date: 星期一, 27 二月 2017 11:08:49 +0800 Subject: [PATCH] 人脸识别接口 1.0版 --- VisitFace/document/faceRecognition api.json | 300 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 300 insertions(+), 0 deletions(-) diff --git a/VisitFace/document/faceRecognition api.json b/VisitFace/document/faceRecognition api.json new file mode 100644 index 0000000..2fb48e5 --- /dev/null +++ b/VisitFace/document/faceRecognition api.json @@ -0,0 +1,300 @@ +#人脸识别API + +#业务层的区别:服务器不保存图片数据,接收到后直接转发;而手机在断网时才访问自身数据库,需要保存图片信息,以原本的二进制形式存储。 +暂时问题: +实时监控页面要不要显示头像。 +注册的选择人物快照怎么实现,假如没有单独的照片怎么办 +注册时怎么具体实现多人注册 +是否需要批量来访 +注册页面有一个添加新设备(有什么用) +0.设备管理 + 0.1点击 设备基本信息时 中保存按键时 + 0.1.1向数据库中插入学校名称、设备地点,生成唯一设备序列号并返回,要求学校名称+设备地点唯一 + request: + { + String:schoolName; + String:facility + } + response: + 正常: + { + String:facilityID; + String:message + } + 异常 + { + String:message + } + +1.实时监控 + 1.1打开该页面时 + request: + { + String:facilityID; + int:lookingNum4visitor; + int:lookingNum4checking + } + response: + { + visitor[]:{ + int:status4regist; + String:userID; + String:userName; + int: visitStatus; + int: warning; + } + checking[]: { + String: userID; + String: userName; + int: checkingStatus + } + } +2.人员注册 + request: + { + String:facilityID; + String: userID; + int: sex; + String: state; + String: birthday; + int: visitorType; + String: phone; + int: credentials; + String: credentialsNum; + String: factoryName //当该公司不存在时怎么处理 + MultipartFile[] file; + } + response: + { + String:message; + String:userID + } +3.来访登记 + 3.1加载该页面时 + request: + { + String:facilityID; + int:personType; + String:personName; //准确包含该名称的人 + int:queryType + } + response: + { + String: userID; + String: photo4Icon; + String: userName; + String: departmentName; + int:personType + } + 3.2点击来访/被来访人员时 + request: + { + String:userID; + int:personType + } + response: + { + String:userID; + String:photo4Icon; + String: phone; + String: factoryName; + String: credentialsNum; + String: departmentName; + String: duty; + String: telephone; + String[]: visitationReason + } + 3.3保存登记时 + request: + { + String: userID; + String: visitedUserID; + String: visitationReason; + String: remarks + } + response: + { + String: message + } +4.电话呼叫: +5.访客管理: + 5.1加载该页面时 + request: + { + String:facilityID; + String:startTime; + String:endTime; + String:personName //准确包含该名称的人 + } + response: + { + String[]:{ + String:eventID; + String:userName; + String: visitStatus + } + } + + 5.2点击某个访客时 + request: + { + String:eventID + } + response: + { + String:photo4Icon; + String: photo4Credentials; + String: userName; + String: phone; + String: sex; + String: credentials; + String: state; + String: credentialsNum; + String:birthday; + String: factoryName; + int: visitorType; + String: visited; + String: visitingReason; + String: visitedDepartment; + String: visitStatus; + String: startTime; + String: endTime; + String: remarks; + } +6.考勤记录 + 6.1加载该页面时 + request: + { + String:facilityID; + String:startTime; + String:endTime; + String:personName //准确包含该名称的人 + } + response: + { + String[]:{ + String:eventID; + String:userName; + String: visitStatus + } + } + + 6.2点击某个人时 + request: + { + String:userID + } + response: + { + String:photo4Icon; + int: cardID //录入位置 + String: userName; + String: sex; + String:duty; + String:departmentName; + String[]: { + String: checkingTime; + String: facility; + int: checkingType + } + } +***** +自动完成的: +1.访客离开、考勤记录、有人员靠近 + request: + { + String:facilityID; + byte[]: photoInfo; + int: checkingType + String:checkingTime + } + response: + { + String: message + } +2.其他选项加载: +2.1国籍: + request: + { + } + response: + { + String[]:{ + String:state; + String: stateName + } + } +2.2访客分类 + request: + { + String: facilityID + } + response: + { + String[]: visitorType + } +2.3证件类型 + request: + { + } + response: + { + String[]:{ + int: credentials; + String: credentialsName + } + } +2.4访问状态 + request: + { + String: facilityID + } + response: + { + String[]: visitStatus + } +2.5拜访部门 + request: + { + String: facilityID + } + response: + { + String[]:{ + int: departmentID; + String: departmentName + } + } +2.6拜访人 + request: + { + String: facilityID + } + response: + { + String[]:{ + String: userID; + String: userName + } + } +2.7拜访事由 + request: + { + String: userID + } + response: + { + String[]: visitingReason + } +2.8摄像机品牌 + request: + { + } + response: + { + String[]:{ + int: cameraID; + String: cameraName + } + } +3.备用外接接口 \ No newline at end of file -- Gitblit v1.8.0