hyekyunghan / Phase-based-ENF-extraction-method

0 stars 0 forks source link

How can I use my videos to run this code #1

Open HaHsoya opened 1 year ago

HaHsoya commented 1 year ago

I downloaded the code and the videos used in the paper, and I found the '.npy' files of videos used in the 'OUTPUT' folder. When I use my own videos, it is impossible to achieve it without '.npy' file. So I would like to ask if the code to generate'.npy' file can be open sourced. Thank you very much!

hyekyunghan commented 1 year ago

Hello! Thank you for your interest in my previous work!

As I remember, you can simply uncomment the bottom of the first cell.

## when running for the first time
# cut the video into 2 minutes (2 sec~ 122 sec)
# F_ST = int(video.fps*(2*1))  
# F_ED = int(video.fps*(122*1)) 
# video.set_vector(F_ST, F_ED) 

This allows you to save time by saving for the video that you want to inspect. Once you run the code, you can re-comment the above lines as video.load_vector() will load the saved .npy file.

Thank you

HaHsoya commented 1 year ago

Thank you for your reply! I ignored the comment code, thank you very much for your detailed answer, which solved my current problem!