本文主要是介绍Python图片上传服务器,得到url,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
for deviceid in range(5,9):print api.rt_get_rec_count(dbname);#获取底库数据条数。path = "/home/boyun/tusou_ise/reid_yanshi_images/device%s"%(deviceid) print("path:", path)dirs = os.listdir(path)for file in dirs:try:push_img = os.path.join(path, file)print ("push_img:", push_img)with open(push_img, 'rb') as f:imgdata = f.read()feat = featapi.rt_cnn_img_extract(3, imgdata)print ("len(feat):", len(feat))port = '8083'route = 'upload_file'url = "http://192.168.1.222:%s/%s" %
这篇关于Python图片上传服务器,得到url的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!