This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import os | |
def extract_different_frames(video_path, output_dir, threshold=30): | |
cap = cv2.VideoCapture(video_path) | |
prev_frame = None | |
frame_count = 0 | |
while True: | |
ret, frame = cap.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; create-next-meeting-notes-file --- 2023-07-07 04:03:12 pm | |
;; create-next-meeting-notes-file.el | |
;; | |
;; This Emacs Lisp function creates a new supervising meeting notes file with the next number in the directory | |
;; "~/Desktop/research-mres/meeting-notes/" and inserts the preamble text for easy org-latex to PDF export. | |
;; | |
;; The function retrieves the list of existing meeting notes files in the specified directory, extracts | |
;; the numerical part of each file name, finds the maximum number, and increments it by 1 to determine | |
;; the next file number. The current date is added to the file name in the format YYMMDD. | |
;; |