python-sdk
python-sdk copied to clipboard
百度AI开放平台 Python SDK
文档中提到添加charset=utf-8,但是在实际的python sdk中并没有写参数可以添加在sdk的哪里,如果尝试添加到options栏里,运行时会在nlp文件_proccessRequest的时候报错,里面代码在判断 if sys.version_info.major == 2: return json.dumps(data, ensure_ascii=False).decode('utf8').encode('gbk') else: return json.dumps(data, ensure_ascii=False).encode('gbk') 时,如果是python3就会直接执行最下面这行报错。
Ensure that the license file is part of the source tarball published on PyPI. It would be nice if you could create a new release after merging because some distributions...
baidu地址识别SDK还没更新? 我只能自己换个方式请求了:https://github.com/mattzheng/Baidu-AIP-Address
python代码如下: ```python for file in os.listdir(path): brief = {'name': file} image_path = f'{path}/{file}' with open(image_path, 'rb') as f: img = f.read() r = client.similarAdd(img, brief) print(image_path, r) ``` 报错信息如下: ```python...
增加M:N人脸搜索