![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
imageProcess
SamWang_333
这个作者很懒,什么都没留下…
展开
-
遍历文件夹 并 copy 文件 程序
import os import sys import time from shutil import Error from shutil import copystat from shutil import copy2 图片所处的绝对路径,其中r表示去掉python的内部转义 PicPath = r’E:\images’ CopyPath = r’E:\images\backup’ 根据传参判断...原创 2019-12-27 15:16:22 · 142 阅读 · 0 评论 -
遍历文件夹读取JPG文件,并处理 短横线,书横线
import os import imutils import cv2 import pytesseract import re def get_text(gray): # get page number information from the head, then fill it by 255 image_text = gray[:180, :400] text_iamge = pytes...原创 2019-12-27 15:12:31 · 147 阅读 · 0 评论 -
python opencv获取视频的总帧数等参数
@python opencv获取视频的总帧数等参数 import cv2 cap=cv2.VideoCapture(path) frames_num=cap.get(7)#get方法参数按顺序对应下表(从0开始编号,比如这里为了获取视频的总帧数,在下表是排第八个的,直接输入对应编号即可 CV_CAP_PROP_FRAME_COUNT propId – Property identifier. It...转载 2019-06-26 13:17:31 · 3721 阅读 · 0 评论