Skip navigation

..programming

Secret garden project is made using BlobDetection from Processing library.
Blob detection is based on the search of blobs’ edges on an image as well as blobs’ bounding box.
In few words BlobDetection analyzes image for finding darker or brighter area than the surrounding (depending on the selected mode).

Below some parameters useful to change the light behavior:

int blurRadius = 2; // if small, many blobs; if large, heavy load
float stillThresh = 0.05; // threshold for motion
float maxBlobWidth = 0.9; // boundaries for blob width (smaller than 1)
float minBlobWidth = 0.1;
float smoothCoef = 0.7; // smoothing coefficient (between 0 and 1)
float brightThre = 0.35; // will detect bright areas whose luminosity > brightThre
float darkThre = 6.0; // below this value, it is considered dark

The threshold is a float number between 0.0f and 1.0f in this case used by the BlobDetection to find blobs which contains pixels whose luminosity is inferior (for dark areas) or superior (for bright areas) to this value.

Both Pepper’s ghost illusion and BlobDetection require a continuous experimentation and adjustment of lighting, especially if I am going to work outside.

The BlobDetection might be solved writing different threshold values in the code according to different ligthing conditions.

Using Blob detection I had the possibility to have a kind of headmouse through which the viewer has the feeling of control the given scenario.

Download the code from here: Headmouse


next->