Skip to content

Instantly share code, notes, and snippets.

View 2kwatts's full-sized avatar

2k 2kwatts

View GitHub Profile
@2kwatts
2kwatts / snapper.py
Created December 17, 2022 22:59
Script that takes 50 random snapshots from a video and puts em in an HTML file
import cv2
import random
import os
# Create the "snaps" directory if it doesn't exist
if not os.path.exists("snaps"):
os.makedirs("snaps")
# Open the video file
video_capture = cv2.VideoCapture("video.mp4")