TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Push-ups with Python, mediapipe and OpenCV

193 pointsby jaboutboulover 3 years ago

13 comments

kleene_opabout 3 years ago
The fact that you can write such a complex application with so few lines of very clear and comprehensive Python code is simply astonishing.<p>Coming from a C background, I was getting distressed that all interesting low level libraries in all domains had already been written decades ago, but the field of opportunities they led to in return is a great source of inspiration and motivation!
donwover 3 years ago
It looks like you’re not holding your core tight? Your butt and abs should both feel clenched.<p>Proper form here: <a href="https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=IODxDxX7oi4" rel="nofollow">https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=IODxDxX7oi4</a><p>While not required for your PFT, Hindu Pushups are great alternative, and will help you condition the supporting muscles: <a href="https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=IODxDxX7oi4" rel="nofollow">https:&#x2F;&#x2F;m.youtube.com&#x2F;watch?v=IODxDxX7oi4</a><p>Otherwise, love your use of ML to provide coaching!
评论 #30407256 未加载
floitschabout 3 years ago
I know of at least one start-up that is using video and AI to give feedback on training sessions: <a href="http:&#x2F;&#x2F;formfirst.app" rel="nofollow">http:&#x2F;&#x2F;formfirst.app</a><p>In some way the program should be much better at detecting faults than a human, but I&#x27;m not sure if the population is ready to trust applications yet.<p>However the potential of combining training feedback with gamified sessions that are geared towards a specific individual has huge potential imho.
评论 #30406182 未加载
评论 #30405617 未加载
maxcanover 3 years ago
ok, nice work as far as a quick little coding project goes, but none of those pushups were legal reps. you need your chest to touch the ground and when you go up your whole body besides your arms needs to rigid.<p>#holdthestandard
评论 #30405594 未加载
评论 #30425159 未加载
mistrial9about 3 years ago
fun example on several levels.. kudos to the courage (and efforts) to make a &quot;simple&quot; opencv example. Regarding the content, the combination of &quot;army&quot; plus &quot;pushups&quot; is really funny.. as an intellectual teen, it was obvious that the Army means &quot;obey&quot; and &quot;minimal requirements&quot; .. a simple push-up, the required number of times, is a great example of this mentality. Yet, a machine-learning opencv application does indeed, count the repetitions with minimal compliance - who could deny it ?<p>A human being is capable of almost infinite, tiny variations of movement, with core resonance around the structural mechanisms of movement.. the bones and the muscles.. add to that the varying and alive nervous system, wiring the sensors of the senses, and then the emotional and consciousness of the individual, and perhaps of a teacher too, in that moment. All of which is utterly lost in the activity of &quot;minimal compliance&quot; &quot;obey&quot; push-ups. Yet, proper form push-ups are useful and constructive, who could deny it? and poor form push-ups are less effective, and may lead to injury at the worst, who could deny it?<p>I find the combination here of clever programming, insensitive compliance-based motivation, and quick propagation to millions of readers, to be fertile ground for re-thinking what it is that computers have brought, and how those machines are integrating in to real life today.
blurkerabout 3 years ago
This is really cool, I&#x27;m going to try it out and probably hack on it!<p>Minor nitpick: it would be nice to have a requirements.txt included to make it easier to download the right dependency.
guzikabout 3 years ago
How cool! I always felt that for complicated workout routine it&#x27;s much easier to have someone counting reps for you instead. Shameless plug - we&#x27;ve developed push-ups detector based on orientation&amp;accelerometer from 9-axis motion sensor: <a href="https:&#x2F;&#x2F;www.aidlab.com&#x2F;blog&#x2F;workout-detector-in-python" rel="nofollow">https:&#x2F;&#x2F;www.aidlab.com&#x2F;blog&#x2F;workout-detector-in-python</a>
vkk8over 3 years ago
I can sort of see a lot of the fitness industry being disrupted by this. Much of what physiotherapists and personal trainers do is just showing people how to do stuff like squats and push ups safely. Depending on how accurate the pose detection used in this link is, this could maybe be done just by filming yourself doing the movements and the algorithm giving you feedback.
评论 #30404978 未加载
评论 #30405686 未加载
ameliusover 3 years ago
Can this be used to detect slouching at the desk?
评论 #30407286 未加载
xweberover 3 years ago
Cool! For anyone interested in this type of stuff, and the companies working on this - this is a pretty good website: <a href="https:&#x2F;&#x2F;insider.fitt.co&#x2F;at-home-injuries-the-rise-of-ai-trainers&#x2F;" rel="nofollow">https:&#x2F;&#x2F;insider.fitt.co&#x2F;at-home-injuries-the-rise-of-ai-trai...</a>.
jambocaover 3 years ago
It reminds me of EZPT (ezpt.xyz), which aims to improve access to and quality of physical therapy. They offer a similar service which allows you to record yourself doing exercises and receive feedback on form, among other things. I think it also helps you track progress.
xigoiover 3 years ago
Scribe link: <a href="https:&#x2F;&#x2F;scribe.rip&#x2F;push-ups-with-python-mediapipe-open-a544bd9b4351" rel="nofollow">https:&#x2F;&#x2F;scribe.rip&#x2F;push-ups-with-python-mediapipe-open-a544b...</a>
wintermutestwinabout 3 years ago
As someone who hates trying to learn physical motion based activities in a classroom or even 1 on 1 setting, tech like this (when more advanced) will be instant buy. Dancing, martial arts, yoga, weightlifting, running&#x2F;cycling&#x2F;walking form and physical therapy are all begging for it.