• This project
    • Loading...
  • Sign in

2021-1-capstone-design2 / 2015104196

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • 2015104196
  • code
  • framecut.py
  • 이민규's avatar
    add code · 747a32d6
    747a32d6
    이민규 authored 2021-06-14 03:06:33 +0900
framecut.py 317 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14
from cv2 import cv2

for i in range(len('box.mp4')):
    cam = cv2.VideoCapture('box.mp4')
    currentFrame = 0
    while(True):
        ret, frame = cam.read()
        if ret:
            cv2.imwrite(str(currentFrame) + '.jpg', frame)
            currentFrame += 1
        else:
            break
    cam.release()