Commit 71b8e7b5 authored by 姜春辉's avatar 姜春辉

远程人脸认证地址配置化

parent 6214e09a
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<Dict Caption="基础配置" Name="defaultconfig"> <Dict Caption="基础配置" Name="defaultconfig">
<Key Caption="人脸识别阀值" Name="FaceMinValue" Value="0.85"/> <Key Caption="人脸识别阀值" Name="FaceMinValue" Value="0.85"/>
<Key Caption="心跳端口" Name="HeartPort" Value="16789"/> <Key Caption="心跳端口" Name="HeartPort" Value="16789"/>
<Key Caption="远程认证地址" Name="FaceWebSocket" Value="ws://192.168.1.7:5432/face/sdk2?persontype=访客"/>
</Dict> </Dict>
</Dictionaries> </Dictionaries>
<Structures> <Structures>
......
...@@ -54,7 +54,7 @@ namespace GS.Terminal.VisitorSelfService.Logic.Core ...@@ -54,7 +54,7 @@ namespace GS.Terminal.VisitorSelfService.Logic.Core
_secondCardReader = Task.Factory.StartNew(_SecondCardRead); _secondCardReader = Task.Factory.StartNew(_SecondCardRead);
_CTS = new CancellationTokenSource(); _CTS = new CancellationTokenSource();
_waiter = new EventWaitHandle(false, EventResetMode.ManualReset); _waiter = new EventWaitHandle(false, EventResetMode.ManualReset);
_faceWebSocket = new WebSocket("ws://192.168.1.68:5432/face/sdk2"); _faceWebSocket = new WebSocket(LocalSetting.AddonDefaultConfig.FaceWebSocket);
_faceWebSocket.Opened += _faceWebSocket_Opened; _faceWebSocket.Opened += _faceWebSocket_Opened;
_faceWebSocket.Closed += _faceWebSocket_Closed; _faceWebSocket.Closed += _faceWebSocket_Closed;
_faceWebSocket.Error += _faceWebSocket_Error; _faceWebSocket.Error += _faceWebSocket_Error;
......
...@@ -25,6 +25,7 @@ namespace GS.Terminal.VisitorSelfService.Logic ...@@ -25,6 +25,7 @@ namespace GS.Terminal.VisitorSelfService.Logic
public float FaceMinValue { get; set; } public float FaceMinValue { get; set; }
public int HeartPort { get; set; } public int HeartPort { get; set; }
public bool DisableVideoDetect { get; set; } public bool DisableVideoDetect { get; set; }
public string FaceWebSocket { get; set; }
public string DictName => "defaultconfig"; public string DictName => "defaultconfig";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment