首页asp开发的:人脸照片+身份证号+姓名,核验实人认证
今天接到一个客户需求,要求用asp开发人脸识别功能,主要用于网站上用户的实人核验,用户上传照片后,通过照片+姓名+身份证号码,核验是不是一个人,判断用户的真实性。asp写这个其实很简单,经过一个小时的努力,代码出来了:

识别接口是用的阿里云,相关代码在下面:

facePhotoUrl = "http://www.fgcxg.com/zw.jpg"
idCardNo = "320722198109126618"
name = "张文"



url = "http://jmfacecomp.market.alicloudapi.com/idcard-face/comparison"
bodys = "facePhotoUrl="&facePhotoUrl&"&idCardNo="&idCardNo&"&name="&name&""
res = PostURL(url,bodys)


set obj = getjson(res)
if isobject(obj) Then
'Response.Write(obj.data.order_no)
code = obj.code
msg = obj.msg
success = obj.success
taskNo = obj.taskNo
order_no = obj.data.order_no
data_msg = obj.data.msg
incorrect = obj.data.incorrect
sex = obj.data.sex
birthday = obj.data.birthday
address = obj.data.address
End If
set obj = Nothing

扫码微信聊