discl // konrad krawczyk

discl is a CV filter that finds and draws a single contour of your face, in the style of Disclosure album covers.

Created with face-api and p5.js.

repo: https://github.com/krawc/discl

process:

The process started with me trying to figure out how to use face-api. I wanted to test this library to figure out what was possible to accomplish with it. I looked through various features, including expression recognition, face recognition etc. I just picked the one that interested me aesthetically, namely the facial landmark feature, which identified the specific facial features and drew them accordingly on the canvas.

This was similar to what Disclosure often does on their album covers, namely drawing a rough sketch around the faces of the band members, or collaborators.

The hardest part was trying to figure out how to load the model. I tried to create a wrapper around the examples provided in the face-api repo, but that did not work. But, as it turned out, it was possible to just download and save the separate models as part of the project, and load them with a simple function in the face api. I found out about it thanks to Navya’s repo.

I wrote my own implementation in which a single path is being drawn across all ~60 feature points. I also experimented with various filters in the p5 library.

results:

     

Leave a Reply