Colouring outline of the silhouette


#1

Hey guys,

I’ve been working on colouring the outline of the silhouette captured by a webcam. I have no idea which addons to use or where to begin. So far, I have openCV motion detection that captures my movement.

It will be great if there’s any advice or code related!

Thanks :slight_smile:

I want something like this…


#2

Do you already have the silhouette, using something like openCV contourTracker? All you should need at that point is to call ofSetColor(int r, int g, int b) before you draw your contour, and then change the color back when you need to draw something else.

ofSetColor(255,0,0); // red
for(int j = 0; j < contourFinder.getPolylines().size(); j++){
     contourFinder.getPolyline(j).draw();
}
ofSetColor(255,255,255) // reset to white