← Back

ofxEdgeDetectionPortraitDrawing

github.com/irealva/ofxEdgeDetectionPortraitDrawing · @irealva
OF 0.9 Templates

OpenFrameworks program that uses background subtraction and canny edge detection to make a generative portrait

1 1 Last commit 10y ago Created 10y ago

README

ofxEdgeDetectionPortraitDrawing



This openframeworks app uses canny edge detection and background substraction to find relevant contours in a scene taken from a webcam. It redraws the contours using a generative drawing algorithm.

<img src="images/image0.png" width="600"/>








Early versions of the drawing program

<img src="images/edgePaintingGif3.gif" width="600"/>


<img src="images/image11.png" width="600"/>


<img src="images/image12.png" width="600"/>





Current version



<img src="images/edgePaintingGif1.gif" width="600"/>


<img src="images/edgePaintingGif2.gif" width="600"/>


<img src="images/image2.png" width="400"/>


<img src="images/image3.png" width="400"/>






Features to improve

The edge detection component is crucial in order to obtain a good portrait to seed into the program. Small tweaks in lighting and in the preparation of the image can make a huge difference. I'll continue to play with this segment of the program to see how I can improve the accuracy of the detection algorithm.

Get this addon

HTTPS
SSH