Permalink
Branch: master
Find file Copy path
52559c0 Dec 9, 2018
1 contributor

Users who have contributed to this file

13 lines (10 sloc) 399 Bytes
from scannertools import sample_video
import os
def main():
with sample_video() as video:
frame_nums = list(range(0, video.num_frames(), 100))
montage_img = video.montage(frame_nums, cols=5)
st.imwrite('sample_montage.jpg', montage_img)
print('Wrote frame montage to {}'.format(os.path.abspath('sample_montage.jpg')))
if __name__ == "__main__":
main()