Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 461 Bytes
from scannertools import shot_detection, sample_video, imwrite, Video
import scannerpy
import os
def main():
with sample_video() as video:
db = scannerpy.Database()
[shots] = shot_detection.detect_shots(db, videos=[video])
montage_img = video.montage(shots)
imwrite('sample_shots.jpg', montage_img)
print('Wrote shot montage to {}'.format(os.path.abspath('sample_shots.jpg')))
if __name__ == "__main__":
main()