last update in 2024
This commit is contained in:
@ -80,12 +80,12 @@ def videosave(bboxes, videopath="100_1688009697927.mp4"):
|
||||
cap.release()
|
||||
|
||||
def main():
|
||||
videopath = r'D:\datasets\ym'
|
||||
savepath = r'D:\datasets\ym'
|
||||
videopath = r'D:\videos'
|
||||
savepath = r'D:\videos'
|
||||
# video2imgs(videopath, savepath)
|
||||
k = 0
|
||||
for filename in os.listdir(videopath):
|
||||
filename = "20240929-155533.ts"
|
||||
# filename = "20240929-155533.ts"
|
||||
|
||||
file, ext = os.path.splitext(filename)
|
||||
if ext not in VideoFormat:
|
||||
@ -100,9 +100,9 @@ def main():
|
||||
videof = os.path.join(videopath, filename)
|
||||
video2imgs(videof, imgdir)
|
||||
|
||||
k += 1
|
||||
if k == 1:
|
||||
break
|
||||
# k += 1
|
||||
# if k == 1:
|
||||
# break
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user