![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
opencv图像处理
itsRae*
这个作者很懒,什么都没留下…
展开
-
python修改图片名称
python修改图片名称import osfrom PIL import Imagepath = '/home/图片/cloth2/6' # 原始图片位置newpath = '/home/图片/clothout2/' # 保存图片位置c = 1359 #从1359开始filelists = os.listdir(path)for line in filelists: img = Image.open(path + '/'+line) a = "0" * (6 -原创 2020-06-11 11:15:56 · 2539 阅读 · 1 评论 -
抽帧,视频截取图片
抽帧,视频截取图片抽帧代码抽帧代码import cv2vc = cv2.VideoCapture("/home/图片/cloth/VID_20200611_091225.mp4") # 设置视频位置c = 1if vc.isOpened(): rval, frame = vc.read()else: rval = FalsetimeF = 15 # 设置帧数while rval: rval, frame =vc.read() if(c%timeF==0):原创 2020-06-11 10:53:02 · 750 阅读 · 0 评论