Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does this use facial recognition? That is, do you have to actually face the camera, or does it simply use some basic object recognition to determine if something is moving up and down?


No, I did try that but it was too slow. I will write up an article once I have improved it if people are interested in.

In a nutshell, I take a stream of frames from the camera, then do a diff on the frames to see what has moved, I then see if the diff of pixels over time is what I'd expect a pushup to look like using basic logic. The movement of pixels over time should look similar to a sine wave. I threw in some simple logic to account for noise in the data.


The pixels' diff over time resembling a sine wave is really interesting -- but it makes sense! I'd read an article/blog post about this. Cool app!


I managed to fool it by hand movements (up and down and bending my fingers), so for sure no face needed.


There's always the distinct possibility your hands have a face you haven't noticed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: