Command music player (for now only VLC) with simple hand gestures. Supported commands:
- play
- pause
- next track
- previous track
- volume up (+10%)
- volume down (-10%)
- Get image from camera
- Convert to gray scale
- Blur the image reduce noise (details of the image are unimportant)
- Use threshold (low pass filter) to get black and white image
- Analyze the received shape to find convex hull/convexity defects
- If in debug mode display visuals
- Send some info to Tk control window
- python3
- Run
pip intall -r requirements.txt
- Run
- Tkinter (ussually comes with Python or as a addtional package)
Tested on Linux and Windows
- Python bindings for VLC from: https://wiki.videolan.org/Python_bindings
- Python tool for controlling VLC https://github.com/amol9/vlc-ctrl
- Quora discussion: https://www.quora.com/What-is-the-easiest-way-to-recognise-gestures-in-OpenCV-using-Python
- Multithreading in TKinter: http://stackoverflow.com/questions/1198262/tkinter-locks-python-when-icon-loaded-and-tk-mainloop-in-a-thread
- OpenCV blog: http://vipulsharma20.blogspot.com/2015/03/gesture-recognition-using-opencv-python.html
- Another important tutorial about contours: http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_imgproc/py_contours/py_contours_more_functions/py_contours_more_functions.html