from aip import AipFace
APP_ID = ''
API_KEY = ''
SECRET_KEY = ''
client = AipFace(APP_ID, API_KEY, SECRET_KEY)
def get_file_content(filePath):
with open(filePath, 'rb') as fp:
return fp.read()
images = [
get_file_content('C:/Users/郑杨/Desktop/1.jpg'),
get_file_content('C:/Users/郑杨/Desktop/1.jpg'),
]
#str(imges,'utf-8')
result_json = client.match(images,);
print(result_json)
然后有这个错误
TypeError: Object of type 'bytes' is not JSON serializable
求解
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块
json解析错误