Slouchy – a small Python script that warns you if you're slouching
github.com
github.com
- We've learned how to write and produce reusable, easily digestable code
- Python gives us a language that is concise, readable
- Frameworks like OpenCV let us do incredible things
- Open Source allows us to share it and collaborate*
- Platforms like Github facilitate the entire experience
10 years ago it took forever to configure my webcam on my Linux machine. I had to scour mailing lists and custom web sites to download various versions of kernel patches. Now my webcam is built-in and it takes 2-3 commands to take something off of Github and have fun.
* Of course Open Source is not new, but today it really seems like "Open Source won".
The Python binding to Qt is good, but it is auto-generated (from C++) and some of it shows up as non-Pythonic mechanisms or conventions.
I guess the author just wanted to keep backwards compatibility with old versions (or isn't aware of the change).
Edit: If anyone's interested, here's the new syntax: http://pyqt.sourceforge.net/Docs/PyQt4/new_style_signals_slo...
I just wanted to say thank you for your comments. It really put a smile on my face to see someone liked my actual code.
I notice pretty quickly when I'm not seeing the full rear window anymore, and adjust my posture.
I've been wondering if a similar tactic might work for monitors -- e.g., the same tech that can make a monitor intentionally hard for someone next to you to read might also let you adjust it so that if you slump down a few inches, it's hard to see.
Not sure of a similar tactic for public speaking (since nowadays you're likely to have a mic on your lapel...) but it also works for recording; you adjust your posture how it ought to be for good voice production, adjust the mic with it, and then if you slump the mic is no longer in the right place.
I also recommend the following exercises which have improved my posture such that people have been saying that I look taller. https://www.youtube.com/watch?v=FTV6UCh-yhs I have been doing them against my wall when I have 5 minutes to wait for a build or in the shower when I'm rinsing off.
Caveat, not to take anything away from it, but I've found that my posture is mostly correlated with how much exercise I'm getting, and that I have a pretty limited ability to consciously fix it over a sustained period of time. Maybe Slouchy will help you, but if you end up frustrated by constant warnings, consider easing into a routine with some back and shoulders exercises.
For example the leaning backwards slouch is supposedly better for your back than just sitting completely erect.
There are known good and bad stances when you are giving a speech. The idea would be to follow the speaker and recognize his position using for example a kinect camera.
You could then get feedback either at the end of a dry run, or in real-time during the presentation.
OpenCV can also detect smoking. Will this be the next step in the trend to collect as much health data as possible?
Please note that some Mac cameras require time to "warm up", so if yours is one of these then check slouchy.ini for a camera_delay config option.