我就废话不多说了,直接上代码吧!
import cv2
import os
def save_img():
video_path = r'F:\test\video1/'
videos = os.listdir(video_path)
for video_name in videos:
file_name = video_name.split('.')[0]
folder_name = video_path + file_name
os.makedirs(folder_name,exist_ok=True)
vc = cv2.VideoCaptur
1