-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend data recording #5
Comments
@stephenparvaresh Have you figured this out? If so, can you share? |
@cmeaton it was a few changes, in process_mask.py, I increased the threshold for self.hrs pop from 300 to 3000, and in the run.py file, I increased the default '-b' parser option from 30 to 100. This allowed me to save 1000 frames instead of the 270 as it is. |
@cmeaton these changes to change the way the fourier transform performs, extending the data initialization, delaying when the graphical window pops up. I was unable to tweak the fourier to prevent this delay. But, as it is, you lose the first x data points. |
@stephenparvaresh Thanks for your quick response and sharing your repo. I'm running your code as instructed in your readme. Its showing the cropped video and printing the FPS in the terminal, but thats all. I know you said the first x data points will be lost, but the webcam version has been running for 3 minutes and the terminal hasn't printed anything except FPS and then the float value changes. Any ideas? |
@cmeaton a separate window should open once the fourier has been established that shows the graphical results. |
@stephenparvaresh Sorry to bug you again. Its still not acting as expected. I pulled your repo and ran exactly as is and it just lagged for up to 5 minutes, showing the face-cropped video but thats all, printing only 'FPS: (some float)'. I was hacking at things and got it to print more stuff to try and see what's going on.
Now it printed out the heart rate, but it stopped after 4 cycles. This was my terminal printout:
It lagged here and I killed it after ~9 minutes of processing a 10 second video. If you have recommendations on any of this, let me know. Thanks for your work! |
The above print out was from running a pre recorded video, in case that is important. Here is a print out from webcam (confirming with wearable that my pulse is 55, so not sure whats going on with the 122)
Thanks again for your work here, this is a super cool process. |
@cmeaton I pushed my repo again (I realized I hadn't done that in a while). If you would like to pull it and see if it works, hopefully it does. |
@stephenparvaresh Cool, I just pulled and tried again. It performs the same. I'm running on Mac OS. What do you mean by ~12 fps? My video is 30 fps, maybe this is the problem? |
You set your framerate at 30, but the program is only running at ~2.5 based on your print-outs. While your video may be 30fps, the program sets a processing framerate, which effects the fourier transform (frequency is based on the framerate that it sets). I'm not sure why your processing fps would be so much lower. |
Thanks for all your advice. I still can't get it to work. It still only computes 4 hr values, then lags for 20+ minutes and the graph interface never loads. I tried viewing the hrs.npy file; hrs.hrs is 0 for the first 169 seconds (hrs.seconds), then hrs.hrs is 55.93 for the next 2800 columns while the hrs.seconds column changes to nan for the rest of the values. I'm really not sure how to proceed. I think I'll go back to the original code and try to continue messing with things until it works. Thanks again for your code and responses! |
@stephenparvaresh If it doesn't get any rppg data in the video, does it add something average to that value in the graphs shown, or does it not care at all? |
Currently, only records 300 frames. How to extend to an infinite number of frames?
The text was updated successfully, but these errors were encountered: