A code to detect key colours on a spectrography image of an audio file.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
Red_filter_result.jpg
img_keypo.png
opencv_spectragram.py

README.md

Blob-detection-on-Spectrography

 ____  ____  ____  ____  _  _  ____  ____  __      __    ____    ___  _____ 
(  _ \(_  _)(_  _)(  _ \( \/ )(_  _)( ___)(  )    /__\  (  _ \  / __)(  _  )
 ) _ < _)(_   )(   ) _ < \  /   )(   )__)  )(__  /(__)\  ) _ < ( (__  )(_)( 
(____/(____) (__) (____/ (__)  (__) (____)(____)(__)(__)(____/()\___)(_____)

A code to detect key colours on a spectrography image of an audio file.

This code was made as a show to display the power of OpenCV as a tool to analyse signal. In our case, a spectrometer of an audio file was used to detect a specific colour

After running the code, the red color would be segmented (masked!) and a green circle highlighting that region is shown on the plot as shown below:

You are free to use the code as long as you pinky promise to share your knowledge with me!

Thanks,

Usama Saqib, BitByteLab.CO