diff --git a/Src/Dlhis.InfoCheck/Controllers/FaceController.cs b/Src/Dlhis.InfoCheck/Controllers/FaceController.cs index 93b25d21..0223f4d7 100644 --- a/Src/Dlhis.InfoCheck/Controllers/FaceController.cs +++ b/Src/Dlhis.InfoCheck/Controllers/FaceController.cs @@ -79,11 +79,9 @@ public class FaceController : ControllerBase using var secondStream = new MemoryStream(secondBase64Bytes); using var secondBitmap = SKBitmap.Decode(secondStream); - using var recognizer = new FaceRecognizer(new FaceRecognizeConfig - { - //对应阈值 FaceType.Normal:0.62、FaceType.Mask:0.4、FaceType.Light:0.55 - FaceType = FaceType.Normal - }); + //对应阈值 FaceType.Normal:0.62、FaceType.Mask:0.4、FaceType.Light:0.55 + //FaceType = FaceType.Normal, + using var recognizer = new FaceRecognizer(); using var faceDetector = new FaceDetector(); using var faceMark = new FaceLandmarker(); diff --git a/Src/Dlhis.InfoCheck/Dlhis.InfoCheck.csproj b/Src/Dlhis.InfoCheck/Dlhis.InfoCheck.csproj index 50761189..8c8ffec5 100644 --- a/Src/Dlhis.InfoCheck/Dlhis.InfoCheck.csproj +++ b/Src/Dlhis.InfoCheck/Dlhis.InfoCheck.csproj @@ -12,12 +12,12 @@ - - + + - + diff --git a/Src/Dlhis.InfoCheck/Properties/launchSettings.json b/Src/Dlhis.InfoCheck/Properties/launchSettings.json index 49b1f9a2..11b15235 100644 --- a/Src/Dlhis.InfoCheck/Properties/launchSettings.json +++ b/Src/Dlhis.InfoCheck/Properties/launchSettings.json @@ -24,6 +24,15 @@ "ASPNETCORE_URLS": "http://+:80" }, "publishAllPorts": true + }, + "WSL": { + "commandName": "WSL2", + "launchUrl": "http://localhost:5048/weatherforecast", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development", + "ASPNETCORE_URLS": "http://localhost:5048" + }, + "distributionName": "" } }, "$schema": "https://json.schemastore.org/launchsettings.json",