Skip to content

Commit

Permalink
adding the initial test script to the video_to_frames.py script
Browse files Browse the repository at this point in the history
  • Loading branch information
PawaraGunawardena committed Mar 1, 2019
1 parent a79d3f2 commit 5dc4774
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/test_video_to_frames.py
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()

0 comments on commit 5dc4774

Please sign in to comment.