from process_file import process_local_file
filename = 'beethoven-op2-no1'
process_local_file(filename)
The video file to be processed must be in same directory from which the script is being run. The code above runs the cut detection algorithm and creates a folder named filename
with:
hierarchies.csv
: a CSV for importing a hierarchy timeline for the video cutslabels.csv
: placeholders for the instrument names- Images of the first frame of each cut, named
Scene-<scene_num>-01.jpg
Scenes.csv
: the original file generated bypyscenedetect
The "label" column of labels.csv
must now be filled with the instrument most proeminent in each of the corresponding frame images. See the example for the abbreviations used.
Then, go to the directory of the piece:
cd <filename>
And create a new hierarchy timeline csv with the entered labels by running:
python insert_labels_into_hierarchies.py