Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

相似图像搜索添加图片接口报错 #10

Open
lx1054331851 opened this issue Jul 29, 2020 · 0 comments
Open

相似图像搜索添加图片接口报错 #10

lx1054331851 opened this issue Jul 29, 2020 · 0 comments

Comments

@lx1054331851
Copy link

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)

报错信息如下:

{'log_id': 2269617344673788957, 'error_code': 216101, 'error_msg': 'param brief not exist'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant