code for rendering pygame frames and implementing opencv to simulate an augmented reality application