The fact that he's just using canny suggests to me that it's just a simple hack he threw together. There are LOTS of other edge detection algorithms, but canny is pretty good and so easy to implement that it's the most generally used. It's not great at faces at a low resolution, but even just a little pre-processing can make the image better (as he demonstrates towards the bottom of the page).