My dummy example uses OpenCV to get the current frame, detect faces in the image, and crop it based on the faces. For visualization I played around with PyGame, as it seemed to work OK and I wanted to take a look at it.
Could you point me to specific lines of code, which are unclear?