Closed tyiannak closed 3 years ago
Also do some qualitative evalauation (does shot change work on movies)?
A new file named shot_generator.py was created based on analy_visual.py
Using the existing function shot_change it was easy to find the shots. Initially, a new movie_time variable was added where the timestamp is stored when the shot changes. The milliseconds were then converted in the form of
Please check the code and let me know for bugs or any problems.
P.S Need to install a new library named moviepy
I forgot to mention that I added 2 new videos to the dataset folder in case you want to test the code.
The code should be much shorter. There's no need to use all code from analyze_visual.py, just do the following:
Code refactoring was performed on the shot_generator.py file
The analyze_visual.py file was imported to access all functions and libraries
2 new functions were created (crop_shots, crop_dirs) the first is used in case the user gives as an argument a single video and the second in when a folder is given by the user.
P.S The code is executed in the same way as in the analyze_visual.py file
shot_generator.py works properly.
Description