# 除以255
# import os
# from PIL import Image
# import cv2
# import numpy as np
# # path = './miou_out/detection-results/'
# # savedpath = './miou_out/255/'
# path='./dataset(1024)/real/'
# savedpath='./dataset(1024)/real/'
# filelist = os.listdir(path)
# for item in filelist:
# im = Image.open(path + item) #打开图片
# im = cv2.imread(path + item)
# im2=im*255
# cv2.imwrite(savedpath + item[:-4] +'_mask.png', im2)
# print('item of %s is saved'%(item[:-4] +'_mask.png'))
# print('finish')