|
Raspberry Pi 3 B+ |
x 1 | |
|
Raspberry Pi High Quality Camera |
x 1 |
|
Python |
Skip Songs just with Looking!
I thought pressing a button or touching a touchscreen to skip songs is too much work ;)
What if you can skip songs by just looking at music notes?
In this project I used a Raspberry Pi 3 B+ , a Pi camera , a speaker and a mp3 player.
The operating system was Raspbian and I used OpenCV for image processing.
OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library.
OpenCV was built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in the commercial products.
The way image recognition works is we first need to "train" a classifier.
To do this, we generally need to compile a massive set of images of what we're looking to detect (In this case face).
For a lot of the image recognition tasks, people have already built data sets to use for the training part.
Face Detection is very popular, so there are already a lot of datasets for face data (face_p.xml for this project).
After training it checks if face is at the frame or not. if answer is yes it sets GPIO14 to LOW.
GPIO14 attached to skip button in mp3 player (in most of the mp3 players pressing button sets the pin to LOW).
and I attached a LED to GPIO 15 and it turns on for 1 second when there is a face in the frame.
( I used mp3 player to control it with GPIO. so if some one else want to use this code for controlling something else they can easily do it. )
by using this project's Python script , you could easily modify the setup to control other tasks, virtual or otherwise.
the technique could be applied to a whole range of home automation tasks with some minor tweaks.
with this project you can control home automation devices with nothing more than a withering stare.
Skip Songs just with Looking!
- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Norbert
- Making NFTs with Quantum Computer Name of the World's first NFT was Quantum. However, unlike it's name it has nothing to do with quant...
- Quantum Powered Robot There is so many intelligent robots exist today. However, in the future with the help of quantum com...
- Playing game with Quantum Computer in this Project I am talking about Games for today's Quantum Computers and playing a game between my...
- Connecting a Quantum Computer to an Arduino Quantum Computers seems to be the next big thing in tech.So I decided to connect one of them to the ...
- Control objects with your hand Gesture Controlling digital devices with hand gestures is so cool and you can control things like media, APP...
- Tony Stark style Keyboard In iron man movies you can see tony stark controls his computer with hand gestures, which is so cool...
- Beard Combing Robot There is a robot for almost everything.But there is no robot to comb the beard. That's why I made on...
- Wake up Robot Almost all of us experienced falling asleep while doing something like reading a book.so I built a r...
- Control your computer Like iron man Controlling your computer with a wave of the hand seems like something from science fiction, and for...
- Gesture Controlled MP3Player Touchscreens are great, but they’re not always the perfect solution. Trying to operate one with glov...
- Skip Songs just with Looking! I thought pressing a button or touching a touchscreen to skip songs is too much work ;)What if you c...
- This Robot Loves Money I couldn't find a money tracker robot on the internet so I built one! :)In this project I used a Ras...
- Posture Corrector Robot Its very common to see computer users hunched forwards over a screen, which eventually will lead to ...
-
Build a Walking Robot: Theo Jansen Style 3D Printed Octopod
106 0 3 -
-
-
kmMiniSchield MIDI I/O - IN/OUT/THROUGH MIDI extension for kmMidiMini
138 0 0 -
DIY Laser Power Meter with Arduino
212 0 2 -
-
-
Box & Bolt, 3D Printed Cardboard Crafting Tools
186 0 2