如何使用Python将本地图像(而不是URL)发送到microsoftcognitive Face API(分析图像)? 在[二进制数据]身体中写入什么来获得存储在计算机中的图像的情感。请提供完整代码。在
Here是我正在尝试的网站
这就是我所尝试的:
url = "localhost:5000/";
data=open("C:/Users/Robot 2/Desktop/images/abc.bmp","rb")
requests.post(url,data=data)
response = requests.post(url, data=data)
像这样:
相关问题 更多 >
编程相关推荐