Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 774 Bytes

readme.md

File metadata and controls

39 lines (29 loc) · 774 Bytes

baiduaip 实现人脸识别所使用的接口sdk

GoDoc

import (
    "github.com/antlinker/baiduaip/baidu/aip/client"
)

func main() {
    opt := newClientOptions()
    client.Init(opt)
    // ...
}

// newClientOptions 客户端选项
func newClientOptions() (opt *client.Option) {
    // ...
    return 
}

注: 运行go test前, 需要在baidu/aip/testdata目录下创建key.json和测试图片, 内容如下:

{
    "AppID": "APPID",
    "APIKey": "APIKEY",
    "SecretKey": "SECRETKEY"
}
ls ./baidu/aip/testdata

cp.jpeg  EF2B8C2B8BCD43DA931B218759D59C22.jpeg  key.json  man4.jpg  tom.jpeg