【文件属性】:
文件名称:小程序--人脸识别功能(百度ai)
文件大小:105KB
文件格式:PDF
更新时间:2021-03-29 17:00:25
小,程序,人脸,识别,功能,百度,接入,流程,按照,
接入流程
1. 按照文档获取AppID、API Key、Secret Key,进行Access Token(用户身份验证和授权的凭证)的生成
const getBaiduToken = function () {
return new Promise((resolve, reject) => {
//自行获取APIKey、SecretKey
const apiKey = APIKey;
const secKey = SecretKey;
const tokenUrl = `https://aip.baidubce.com/