last update in 2024

This commit is contained in:
王庆刚
2024-12-31 16:45:04 +08:00
parent dac3b3f2b6
commit 7e13e0f5b4
20 changed files with 1349 additions and 389 deletions

View File

@ -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