代码拉取完成,页面将自动刷新
// 百度人脸识别/人脸认证SDK
package xfaceprint
// 百度人脸识别配置项
type Config struct {
Domain string // 人脸识别接口域名
AppId string // 百度开发者平台的AppId
AppKey string // 百度开发者平台的AK
SecretKey string // 百度开发者平台的密钥信息
PlanId string // 获取鉴权ID
}
var _default Config = Config{
Domain: "https://aip.baidubce.com/",
}
// 配置项注入
func Regedit(c *Config) {
if c == nil {
return
}
if c.Domain != "" {
_default.Domain = c.Domain
}
if c.AppId != "" {
_default.AppId = c.AppId
}
if c.AppKey != "" {
_default.AppKey = c.AppKey
}
if c.SecretKey != "" {
_default.SecretKey = c.SecretKey
}
if c.PlanId != "" {
_default.PlanId = c.PlanId
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。