yarppg
yarppg copied to clipboard
Difference in "run-yarppg qt6" and default settings
Hello, tell me please, whats the difference between default and "run-yarppg qt6" settings? I have 2 different results. When i execute "run-yarppg with qt6", i get more accurate and correct results (HR ~70, close to fitness watch) than when I run my program with default settings (HR ~22) What could this be related to?
Hi, unlike the "qt6_simple" UI, the default UI ("simplest") does not track/calculate the FPS of the camera. It can therefore not calculate HR in beats per minute but rather reports the HR in "frames per beat" (which is also the text in the UI).
If you know the FPS, you can convert between the two with HR_bpm = 60 * fps / HR_fpb.
I should probably mention this in the docs. Or I can think about adding FPS tracking to the simplest UI as well.
Although, since the simplest UI is not really optimized and does frame retrieval, processing and visualization sequentially (qt6_simple partly does this in separate threads) tracking FPS through a clock might not be so easy.
Edit: although thinking about it. Tracking the FPS with the perf_counter should be more accurate than using the FPS of the camera - since processing time may reduce the actual FPS.
Thank you very much :)
I just updated the simplest UI to track FPS and show HR in bpm. This streamlines the interpretation of both user interfaces.