图片地址修改
This commit is contained in:
parent
0cb11aa4cc
commit
bd375364d4
|
@ -24,9 +24,9 @@
|
||||||
<add key="SystemCode" value="HJCLGL"/>
|
<add key="SystemCode" value="HJCLGL"/>
|
||||||
<add key="http" value="http://localhost/test/"/>
|
<add key="http" value="http://localhost/test/"/>
|
||||||
<!--BAIDU AI配置-->
|
<!--BAIDU AI配置-->
|
||||||
<add key="APP_ID" value="23957173"/>
|
<add key="APP_ID" value="119624563"/>
|
||||||
<add key="API_KEY" value="G2aNlnPXNAoGLF4DdcyVFORI"/>
|
<add key="API_KEY" value="qm0iFO9OTHqx5dt5dNIKuvIE"/>
|
||||||
<add key="SECRET_KEY" value="FdkDmVNHnZn7191YK9TrMIpEj0g4e5Nk"/>
|
<add key="SECRET_KEY" value="NwA68AnLM9SwEcbB2ONCu6cagy2czzVc"/>
|
||||||
<!--人脸检测参数-->
|
<!--人脸检测参数-->
|
||||||
<!--人脸活体检测参数1最好,0最差 建议0.995 -->
|
<!--人脸活体检测参数1最好,0最差 建议0.995 -->
|
||||||
<add key="BD_face_liveness" value="0.3"/>
|
<add key="BD_face_liveness" value="0.3"/>
|
||||||
|
|
|
@ -252,10 +252,10 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
public static string PersonFace(Model.HJGL_BS_Welder person)
|
public string PersonFace(Model.HJGL_BS_Welder person)
|
||||||
{
|
{
|
||||||
string message = string.Empty;
|
string message = string.Empty;
|
||||||
string filePath = ConfigurationManager.AppSettings["localRoot"] + person.PhotoUrl;
|
string filePath = Server.MapPath("~/") + person.PhotoUrl;
|
||||||
List<SgManager.AI.faceResult> kqFace = null;
|
List<SgManager.AI.faceResult> kqFace = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -330,7 +330,7 @@
|
||||||
else message = "识别不到人脸";
|
else message = "识别不到人脸";
|
||||||
if (isOK)
|
if (isOK)
|
||||||
{
|
{
|
||||||
var faceResult = FaceClass.add(person.WED_ID, person.IdentityCard, System.Configuration.ConfigurationManager.AppSettings["CEMS_IMG_URL"].ToString() + person.PhotoUrl, AccessToken.getAccessToken());
|
var faceResult = FaceClass.add(person.WED_ID, person.IdentityCard, System.Configuration.ConfigurationManager.AppSettings["HJGLUrl"].ToString() + person.PhotoUrl, AccessToken.getAccessToken());
|
||||||
var face = JsonConvert.DeserializeObject<dynamic>(faceResult);
|
var face = JsonConvert.DeserializeObject<dynamic>(faceResult);
|
||||||
// JsonConvert.DeserializeObject<dynamic>(myPunishItem);
|
// JsonConvert.DeserializeObject<dynamic>(myPunishItem);
|
||||||
if (face.error_code == 0 || face.error_code == 223105)
|
if (face.error_code == 0 || face.error_code == 223105)
|
||||||
|
|
Loading…
Reference in New Issue