Art with Python and Facial Recognition
Details
This painting from Doctor Who has the nifty property of being able to adjust the perspective according to the position of viewers: https://www.youtube.com/watch?v=FUIbq2HPyQA
Cool, eh? Let's try to do this with Python! Starter code is on github: https://github.com/small-yellow-duck/timelordart
With the magic of face detection in openCV, we can use a camera to track the position of viewers.
https://realpython.com/blog/python/face-detection-in-python-using-a-webcam/
There are several python libraries for rendering 3d objects. Let's try a few of them out!
https://pypi.python.org/pypi/Vapory/0.1.0
http://www.pythonocc.org/quick-examples/hello-dumb-box/
Some problems you might wish to consider:
-
how long does it take to render an image?
-
what should happen if the face recognition algorithm doesn't find a face in the frame?
-
what should happen if the face recognition algorithm finds more than one face in the frame?
