这是什么情况?
Ta的回复 :我的问题已经解决了。 f = open("touxiang.jpg", 'rb') image = base64.b64encode(f.read()) base64_str = str(image, "utf-8") imageType = 'BASE64' f.close() """ 调用人脸检测 """ print(client.detect(base64_str, imageType)) 原来缺少了这一步:base64_str = str(image, "utf-8")