this post was submitted on 06 Sep 2023
8 points (100.0% liked)

Android Development

540 readers
8 users here now

Welcome to the programming.dev Android development community!

The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License

founded 1 year ago
MODERATORS
 

There is probably something like this already, but probably not free and open source, as quick search through F-Droid did not show it.

A fitness app where you place your phone under your face and it counts how many push ups you did.
What would be the best way to detect a push-up?
My idea is to have user touch the touchscreen with their nose. That would initiate the first part.
Second part would be more complex: use the front-facing camera to figure out if user's face is far enough to be considered a completed push-up. User would have to calibrate the app at the start, or maybe even at the start of each session, indicating how far away is the max height that they achieve. Probably no need for full facial recognition for this, some colour-matching algorithm should be enough. And use phone's gyro to check whether phone is actually in a horisontal position.

Maybe this idea has enough potential to actually get a project going.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago

The proximity sensor may be the way to go, but the range is pretty small. Still, less complicated than using the camera, and if someone is seeking this kind of app, I doubt they'd want to "cheat" by only pushing up 10cm, haha. Could place the phone under your chest instead of face too.