欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Python調(diào)用騰訊API實(shí)現(xiàn)人臉身份證比對(duì)功能

 更新時(shí)間:2022年04月04日 09:24:57   作者:ZHW_AI課題組  
這篇文章主要介紹了Python調(diào)用騰訊API進(jìn)行人臉身份證比對(duì),簡(jiǎn)單介紹了調(diào)用騰訊云API步驟,通過(guò)完整代碼展示與結(jié)果,需要的朋友可以參考下

1.作者介紹

錢文浩,男,西安工程大學(xué)電子信息學(xué)院,2021級(jí)研究生
研究方向:機(jī)器視覺與人工智能
電子郵件:2414712362@qq.com

劉帥波,男,西安工程大學(xué)電子信息學(xué)院,2021級(jí)研究生,張宏偉人工智能課題組
研究方向:機(jī)器視覺與人工智能
電子郵件:1461004501@qq.com

2.調(diào)用騰訊人臉身份證比對(duì)的知識(shí)介紹

2.1 應(yīng)用場(chǎng)景

3.調(diào)用騰訊云API步驟

3.1微信掃碼登錄

3.2鼠標(biāo)選擇云產(chǎn)品,并找到人臉核身

3.3進(jìn)入人臉核身界面

3.4編輯參數(shù)

3.5查看自己的api



4.完整代碼展示與結(jié)果

4.1完整代碼

import json
from tencentcloud.common import credential
from tencentcloud.common.profile.client_profile import ClientProfile
from tencentcloud.common.profile.http_profile import HttpProfile
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
from tencentcloud.faceid.v20180301 import faceid_client, models
try:
    cred = credential.Credential("你獲取的SecretId", "你獲取的SecretKey")
    httpProfile = HttpProfile()
    httpProfile.endpoint = "faceid.tencentcloudapi.com"

    clientProfile = ClientProfile()
    clientProfile.httpProfile = httpProfile
    client = faceid_client.FaceidClient(cred, "ap-beijing", clientProfile)

    req = models.ImageRecognitionRequest()
    params = {
        "IdCard": "************************",
        "Name": "****",
        "ImageBase64": "***************"
    }
    req.from_json_string(json.dumps(params))

    resp = client.ImageRecognition(req)
    print(resp.to_json_string())

except TencentCloudSDKException as err:
    print(err)

4.2實(shí)驗(yàn)結(jié)果

到此這篇關(guān)于Python調(diào)用騰訊API進(jìn)行人臉身份證比對(duì)的文章就介紹到這了,更多相關(guān)Python人臉身份證比對(duì)內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評(píng)論