fourMs / MGT-python

Musical Gestures Toolbox for Python
https://www.uio.no/ritmo/english/research/labs/fourms/downloads/software/musicalgesturestoolbox/mgt-python/index.html
GNU General Public License v3.0
53 stars 11 forks source link

Store coordinates per frame in blur_faces() #263

Closed alexarje closed 2 years ago

alexarje commented 2 years ago

It looks like blur_faces() now stores XY pairs on new lines. Then it is difficult to know which ones belong together within a frame. I guess the number of detected faces might vary for each frame, so it doesn't make sense to write many columns per frame. But perhaps you could write the timestamp or frame number in the first column?

joachimpoutaraud commented 2 years ago

I have added the timestamp (in milliseconds) to the data storage of the blur_faces() function. Each detection of the faces is now noted with its corresponding timestamp in milliseconds. The updated function is only available in the local repository at the moment but I will update a new version of the package asap.