fix --step argument
This commit is contained in:
parent
72e7c1ec6f
commit
eab4633c55
@ -32,6 +32,7 @@ def extract_video(videoname, path, start, end, step):
|
|||||||
if cnt < start:continue
|
if cnt < start:continue
|
||||||
if cnt >= end:break
|
if cnt >= end:break
|
||||||
if not ret:continue
|
if not ret:continue
|
||||||
|
if (cnt % step ==0):
|
||||||
cv2.imwrite(join(outpath, '{:06d}.jpg'.format(cnt)), frame)
|
cv2.imwrite(join(outpath, '{:06d}.jpg'.format(cnt)), frame)
|
||||||
video.release()
|
video.release()
|
||||||
return base
|
return base
|
||||||
|
Loading…
Reference in New Issue
Block a user