Idea: create a mixed reality experience where a virtual light in a 3D scene is controlled in real-time by tracking the movement and orientation of a real object from a webcam stream.
The following packages are required: numpy, opencv, SimpleWebSocketServer1
- run
pip install -r requirements.txt
- Before running anything, print chessboard.svg or save it on your phone.
- run server.py and then open index.html in your browser.
- Hold the pattern (chessboard.svg) and bring it close to the camera. A window with the webcam feed (with the 3D axes overlayed on top) should pop up. Now, you should be able to control the light in the scene by moving the pattern.