# Open the video file cap = cv2.VideoCapture('Nake Yoga 2021-12-04.mp4')

# Display the frame cv2.imshow('frame', frame)

# Press 'q' to exit if cv2.waitKey(1) & 0xFF == ord('q'): break

if not ret: break

while True: # Capture frame-by-frame ret, frame = cap.read()

# Here you can process the frame, e.g., convert to grayscale gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)