Skip to content

Commit e8bffc5

Browse files
committed
修改readme中示例调用
1 parent 981446e commit e8bffc5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ python sdk for [腾讯优图云人脸服务](http://open.youtu.qq.com/)
77
### 下载源码
88
从github下载源码装入到您的程序中,并加载TencentYoutuyun包
99

10-
## 修改配置
11-
修改TencentYoutuyun/conf.py内的appid等信息为您的配置
1210

1311
## 人脸对比示例
1412
```python
@@ -20,8 +18,9 @@ import TencentYoutuyun
2018
appid = '105054'
2119
secret_id = 'AKIDc55TZh5E4OfhUOgoMzY3Piq5HziE5PLziWYR'
2220
secret_key = 'J9I1LNj5Wdr8TxI2VyWai3Ziz5TiZ2vZsp'
21+
userid = '1234567'
2322

24-
youtu = TencentYoutuyun.YouTu(appid, secret_id, secret_key)
23+
youtu = TencentYoutuyun.YouTu(appid, secret_id, secret_key, userid)
2524
ret = youtu.FaceCompare('you_path_one.jpg','you_path_two.jpg')
2625
print ret
2726
```

0 commit comments

Comments
 (0)