The algorithm aims to pick key-frames of a video.
Make sure you have python 2.7+ and opencv 3.3+,
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.