Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 729 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 729 Bytes

Shot Detect

The algorithm aims to pick key-frames of a video.

Requirement

Make sure you have python 2.7+ and opencv 3.3+,

Usage

from shotdetect import shotDetector

video_path = '/Your_video_dir/test.mp4'
detector = shotDetector(video_path)
detector.run()
detector.pick_frame('/The_Dir_To_Save_Frames', "File_name_prefix")

Then you can get files in the directory you have specified above. These files are in format '[email protected]'.

If you use opencv2, then you must change 'cv2.cv.CV_CAP_PROP_FRAME_COUNT' and 'cv2.cv.CV_CAP_PROP_FPS' to 'cv2.CAP_PROP_FRAME_COUNT' and 'cv2.CAP_PROP_FPS' respectively.