This commit is contained in:
zhangmozhe
2020-12-01 16:55:56 +08:00
parent b87b7e7f25
commit 1dd7367008
1147 changed files with 73 additions and 47 deletions
-1
View File
@@ -255,7 +255,6 @@ def save_frames(image, image_folder, index=None, image_name=None):
def folder2vid(image_folder, output_dir, filename):
images = [img for img in os.listdir(image_folder) if img.endswith(".jpg")]
images.sort()
print(images)
frame = cv2.imread(os.path.join(image_folder, images[0]))
height, width, layers = frame.shape
print("writing to video " + os.path.join(output_dir, filename))