-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.py
More file actions
19 lines (17 loc) · 815 Bytes
/
main.py
File metadata and controls
19 lines (17 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os
import videoAnalysis
import frameSelector
import frameExtractor
import makePdf
FRAMES_SKIP= 30 # Increase value for faster processing but may lead to skipped slides
FOLDER_PATH= os.path.join(os.getcwd(), 'ExtractedSlides') # Folder where slide images and merged pdf will be stored
## EDIT THIS BEFORE RUNNING
VIDEO_PATH= "F:/Class Recordings/2022-01-31 14-33-43.mkv" # Absolute path of video for running script using only / as separator
videoAnalysis.videoAnalysis(FRAMES_SKIP, VIDEO_PATH)
selectedFrames= frameSelector.frameSelector()
frameExtractor.frameExtractor(FOLDER_PATH, VIDEO_PATH, selectedFrames)
print('Review extracted slides and delete duplicates or wrong selections.')
ch= input('Press any key to create PDF or Q to exit... ')
if ch=='Q' or ch=='q':
exit()
makePdf.makePdf(FOLDER_PATH)