-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding the initial test script to the video_to_frames.py script
- Loading branch information
1 parent
a79d3f2
commit 5dc4774
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
''' | ||
Within this script, focus to test the script in video_to_frames.py. | ||
Requirements | ||
---- | ||
You require OpenCV 3.2 to be installed. | ||
Run | ||
---- | ||
If need to run this script seperately, then can edit the relevant input file path and output file path. | ||
Or can make the folders in the similar folder as ./data/input_video and as ./data/generated_frames according to the script. | ||
The input video can move to the ./data/input_video location and rename as input_video.mp4 | ||
As done in the this testing script, can use the video_to_frames.py script in other programs. | ||
''' | ||
|
||
import video_to_frames | ||
|
||
def run(): | ||
video_input_path = "./data/input_video/input_video.mp4" | ||
frame_output_path = "./data/generated_frames/" | ||
video_to_frames.get_frames(video_input_path, frame_output_path) | ||
|
||
if __name__ == "__main__": | ||
run() | ||
|