Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design2
/
2015104196
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
Authored by
이민규
2021-06-14 03:06:33 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
747a32d66943a80dc60d639b508554cfb6b1167e
747a32d6
1 parent
09156cf9
add code
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
code/framecut.py
code/framecut.py
0 → 100644
View file @
747a32d
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
()
Please
register
or
login
to post a comment