Visualization of music with native FFT and ofBox2d. Primitive interaction through webcam/OpenCV.
- make, make run
- If that doesn't work, make sure to ./install_codes.sh.
- Press 'v' to view webcam input, 'g' to view gui.
- You can right click on the webcam input to select specific color for the color tracking.
- The default parameters should work most of the time, but adjust them based on your preference.
- I recommend using different mp3 file of your choice. The directory is bin/data/sounds
- ContourTracker:
- Color tracking (pixel by pixel, euclidean distance in RGB space).
- Blur(), dilate(), and other image manipulations for contourFinder().
- Adaptive backgound by mutiplying float images.
- ofPath/ofPolyline of the contours to be used in box2d.
- ofApp:
- Load up the music file using SoundPlayer.
- Set up background and box2d world.
- Analyze the music using FFT, store it in an array.
- Update and initialize box2d particles based on results from the FFT.
- Increase in number of contours and particles decreases FPS. Currently, maximum number of particles is set to 100.
- ofBox2d warnings populate the CLI and contour representation of box2d world is visually gitchy.
ofDoc: http://halfdanj.github.io/ofDocGenerator/index.html
ofBook/Image Processing and Computer Vision: https://openframeworks.cc/ofBook/chapters/image_processing_computer_vision.html
https://www.bensound.com/ for royalty free music.

