|
|
@ -1780,7 +1780,7 @@ namespace AksWebBrowser |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
private static string smresults = string.Empty; |
|
|
|
private static string smresults = string.Empty; |
|
|
|
private static AutoResetEvent @event9 = new AutoResetEvent(false); |
|
|
|
private static AutoResetEvent @event9 = new AutoResetEvent(false); |
|
|
|
private static void StartFace() |
|
|
|
public static void StartFace() |
|
|
|
{ |
|
|
|
{ |
|
|
|
try |
|
|
|
try |
|
|
|
{ |
|
|
|
{ |
|
|
@ -1796,8 +1796,6 @@ namespace AksWebBrowser |
|
|
|
}; |
|
|
|
}; |
|
|
|
//打开摄像头 |
|
|
|
//打开摄像头 |
|
|
|
webSocket.Send(JsonConvert.SerializeObject(mode), "CF_OpenCamera"); |
|
|
|
webSocket.Send(JsonConvert.SerializeObject(mode), "CF_OpenCamera"); |
|
|
|
//开始活检 |
|
|
|
|
|
|
|
webSocket.Send("{\"function\":\"CF_StartLiveDetect\"}", "CF_StartLiveDetect"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|
catch (Exception ex) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -2245,7 +2243,7 @@ namespace AksWebBrowser |
|
|
|
string zxjg = Bash(commod); |
|
|
|
string zxjg = Bash(commod); |
|
|
|
if (string.IsNullOrEmpty(zxjg)) |
|
|
|
if (string.IsNullOrEmpty(zxjg)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
commod = "chmod -R 777 /opt/lhtserver/files/bin && cd /opt/lhtserver/files/bin && nohup ./LhtCamServer.sh &"; |
|
|
|
commod = "cd /opt/lhtserver/files/bin && nohup ./LhtCamServer.sh &"; |
|
|
|
Bash(commod); |
|
|
|
Bash(commod); |
|
|
|
Task.Delay(3000).Wait(); |
|
|
|
Task.Delay(3000).Wait(); |
|
|
|
} |
|
|
|
} |
|
|
|