使用python获取URL图像
response = requests.get(image_url)
save_image_path = ''.join([predict_dir,'./org/',args.image_url.split('/')[-1] ]) # 图片保存路径
with open(save_image_path, 'wb') as f: # 以二进制写入文件保存
f.write(response.content)
f.close()
使用python获取URL图像
response = requests.get(image_url)
save_image_path = ''.join([predict_dir,'./org/',args.image_url.split('/')[-1] ]) # 图片保存路径
with open(save_image_path, 'wb') as f: # 以二进制写入文件保存
f.write(response.content)
f.close()