A guitar chord detection and classifier for humans
You can install Conda for python which resolves all the dependencies for machine learning.
A guitar chord is a set of notes played on a guitar. A chord's notes are often played simultaneously, but they can be played sequentially in an arpeggio. The implementation of guitar chords depends on the guitar tuning.
Most guitars used in popular music have six strings with the "standard" tuning of the Spanish classical guitar, namely E-A-D-G-B-E' (from the lowest pitched string to the highest)
Supported Chords
- A
- B
- C
- D
- E
- F
- G
If you face any problem, kindly raise an issue
- First, you have to create a hand-chord database. For that, run
CreateDataset.py
. Enter the gesture name and you will get 2 frames displayed. Look at the contour frame and adjust your hand to make sure that you capture the features of your hand. Press 'c' for capturing the images. It will take 1200 images of one gesture. Try moving your hand a little within the frame to make sure that your model doesn't overfit at the time of training. - Repeat this for all the features you want.
- For training the model, run
Trainer.py
- Finally, run
GuitarLearner.py
for testing your model via webcam. - Play an awesome riff.🤩
python3 GuitarLearner.py
- Add Barre chords
- Localize and detect fret chords
- Ivan Grishchenko and Valentin Bazarevsky, Research Engineers, Google Research. Mediapipe by Google