One of the main algorithms in the interactive exhibit is the use of a algorithm which can detect either large bubbles or the presence of people in the exhibit with the use of blob detection.
The starting code was the use of Daniel Shiffman tutorials on blob detection. Here
https://www.youtube.com/watch?v=ce-2l2wRqO8
From this point on awards OSC blob communication was added on to the code and BLOB GESTURES was also added into the code.
Proof and testing of the algorithm is shown below.
Key points:
The bottom left of the screen show the crucial elements of the detecting algorithm including:
- The number of blobs being detected.
- The average central blob position, acceleration and velocity
- The gesture corner values 0= nothing 1-4= top right bottom and left and posn
note: Using the kinect facing me will screw up left and right. The camera and I must be facing the same direction.
Blob Detection Proof