LivenessDetection.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version="1.0" encoding="gb2312" ?>
  2. <entity name="LivenessDetection">
  3. <!-- 活体检测服务 -->
  4. <class name="LivenessDetectionService" overlap="true" exclusive="false">
  5. <!-- 启动检测接口 -->
  6. <twoway name="StartLivenessDetection" overlap="true">
  7. <req>
  8. <!-- 活体检测ActionID 16位 -->
  9. <param name="ActionID" type="wstring"/>
  10. <!-- 是否为主动检测(默认false,被动) -->
  11. <param name="IsActive" type="bool"/>
  12. <!-- 保留参数 -->
  13. <param name="Reserved" type="wstring"/>
  14. </req>
  15. <res>
  16. </res>
  17. </twoway>
  18. <!-- 停止检测接口(被动检测用到返回结果) -->
  19. <twoway name="StopLivenessDetection" overlap="true">
  20. <req>
  21. <!-- 活体检测ActionID 16位 -->
  22. <param name="ActionID" type="wstring"/>
  23. </req>
  24. <res>
  25. <!-- 活体检测ActionID 16位 -->
  26. <param name="ActionID" type="wstring"/>
  27. <!-- 活体判别结果 Y(活体) N(非活体) X(不确定) -->
  28. <param name="VerifyResult" type="wstring"/>
  29. <!-- 活体照片数据(可能多张) -->
  30. <param name="LivePhotosData" type="blob"/>
  31. <!-- 活体照片长度列表,以'|'分隔 -->
  32. <param name="LivePhotosLength" type="wstring"/>
  33. </res>
  34. </twoway>
  35. </class>
  36. <!-- 主动检测完成消息 -->
  37. <message name="ActiveDetectionDone">
  38. <!-- 活体检测ActionID 16位 -->
  39. <param name="ActionID" type="wstring"/>
  40. <!-- 主动活体判别结果 Y(活体) N(非活体) X(不确定) -->
  41. <param name="VerifyResult" type="wstring"/>
  42. <!-- 自动抓拍照片数据 -->
  43. <param name="SnapShotPhotoData" type="blob"/>
  44. <!-- 自动抓拍照片长度 -->
  45. <param name="SnapShotPhotoLength" type="int"/>
  46. </message>
  47. <!-- 自动抓拍提示消息 -->
  48. <message name="AutoSnapshotRemind">
  49. <!-- 活体检测ActionID 16位 -->
  50. <param name="ActionID" type="wstring"/>
  51. <!-- 提示信息 -->
  52. <param name="RemindInfo" type="wstring"/>
  53. </message>
  54. <!-- 检测非正常结束消息 -->
  55. <message name="DetectionStopUnExpected">
  56. <!-- 活体检测ActionID 16位 -->
  57. <param name="ActionID" type="wstring"/>
  58. <!-- 是否为主动检测(默认false,被动) -->
  59. <param name="IsActive" type="bool"/>
  60. <!-- 错误码 -->
  61. <param name="ErrorCode" type="wstring"/>
  62. <!-- 错误消息:超时、启动检测失败... -->
  63. <param name="ErrorMsg" type="wstring"/>
  64. </message>
  65. <!-- 活体检测心跳消息(可选) -->
  66. <message name="LivenessDetectionHeartBeat">
  67. <!-- 状态:0:正常 1:故障... -->
  68. <param name="Status" type="int"/>
  69. </message>
  70. <!-- 主动活体启动消息 -->
  71. <message name="ActiveDetectionStarted">
  72. <!-- 启动参数(回显窗口用) -->
  73. <param name="Param" type="string"/>
  74. </message>
  75. <!-- 主动活体停止消息 -->
  76. <message name="ActiveDetectionStopped">
  77. <!-- 停止参数(回显窗口用) -->
  78. <param name="Param" type="string"/>
  79. </message>
  80. </entity>