To start off the final project I needed access to the camera in Processing. The camera was pretty easy to get working, so I knew I also wanted to try starting to manipulate the feed too.
I did a LOT of research on using OpenCV for Processing, at first I thought it was no longer maintained and I couldn't use it, thankfully I was wrong. Before starting on the work this week I watched all of Daniel Shiffman's Computer Vision Playlist on Youtube, and was even inspired to use his 'background removal' which is also mentioned in the book and his website. The video I embedded explains the code and offers a little bit of a how the work is coming along.Â
At the end you can see where I am having trouble with the video feeds. i am getting three streams when I should only be getting one. I have a feeling Capture and OpenCv do not like to share things. I tried fixing it before this weeks work was due, but I wall try to consolidate my feeds to one video stream before moving on to the music manipulationComputer Vision is a brand new area for me so Im expecting more bumps, but this is all really cool so far.
Functions:
I can tell this project will have a lot of moving parts so I wanted to take advantage of keeping things organized from an early point, and so I knew functions would be great for this. The functions I used make the code more readable by cutting out a little bit of the clutter. I have a function to removeBackground, which is found in the book, but I decided it would be ore beneficial to my project to have it inside its own function to reference later. The same goes for the showContour function.