videoWriter.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:Computer-Vision 作者: PratikRamdasi 项目源码 文件源码
def framing(self,path):
        global FilePath, count
        Newpath = FilePath + path
        cap = cv2.VideoCapture(Newpath)
        success,frame=cap.read(cv.CV_IMWRITE_JPEG_QUALITY)      #handle of the Video Capture is required for obtaining frame.

        while success:
          cv2.imwrite("Images/%d.jpg" % count, frame)           # save frame as JPEG file
          count += 1
          success,frame = cap.read(cv.CV_IMWRITE_JPEG_QUALITY)  # to read the last frame

        cap.release()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号