Revert "Create frames folder if it doesn't exist"
This reverts commit 61e458e95b
.
This commit is contained in:
parent
61e458e95b
commit
c75f298353
|
@ -2,15 +2,10 @@ import cv2
|
||||||
import time
|
import time
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import os
|
|
||||||
|
|
||||||
# Folder
|
# Folder
|
||||||
folder = "frames"
|
folder = "frames"
|
||||||
|
|
||||||
# Create the frames folder if it doesn't exist
|
|
||||||
frames_dir = os.path.join(os.getcwd(), folder)
|
|
||||||
os.makedirs(frames_dir, exist_ok=True)
|
|
||||||
|
|
||||||
# Initialize the webcam
|
# Initialize the webcam
|
||||||
cap = cv2.VideoCapture(0)
|
cap = cv2.VideoCapture(0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue