上传者: 38617604
|
上传时间: 2021-11-14 20:30:53
|
文件大小: 31KB
|
文件类型: -
如下所示:
import cv2
import os
import numpy as np
root_path = "I:/Images/2017_08_03/"
dir = root_path+"images"+"/"
count = 0
for root,dir,files in os.walk(dir):
for file in files:
srcImg = cv2.imread(root_path+"images"+"/"+str(file))
roiImg = srcImg[36:521, 180:745]
cv2.imwrite(root_path+"Image"