<gh_stars>0
import numpy as np
import os
import cv2

# 遍历文件夹
for i in range(1,400):

    lenna = cv2.imread('C://users/li/desktop/干扰消除/实测数据训练集/box/IM/inp_'+str(i)+'.jpg')

    # cv2.imshow("lenna_gray", lenna_gray.astype("uint8"))
    cv2.imwrite('G://resnet_dataset/pic_final/inp_'+str(i)+'.jpg',lenna)

import numpy as np
import os
import cv2

# 遍历文件夹
for i in range(1,400):

    lenna = cv2.imread('C://users/li/desktop/干扰消除/实测数据训练集/box/IM/inp_'+str(i)+'.jpg')

    # cv2.imshow("lenna_gray", lenna_gray.astype("uint8"))
    cv2.imwrite('G://resnet_dataset/pic_final/inp_'+str(i)+'.jpg',lenna)
# 遍历文件夹 # cv2.imshow("lenna_gray", lenna_gray.astype("uint8"))