Alrighty folks. I have another application for all you computer vision fans out there. This time, it’s an application that combines C#, OpenCV, and DirectX to produce kind of a virtual 3D environment. The application uses a standard webcam to track your head movements. As you move your head, the 3D environment will respond in return. The idea is based on the head tracking for desktop VR displays using the Wiimote by Johnny Lee as seen in the following YouTube video.
Even though Johnny Lee’s application is extremely cool and is the starting point for my application, it isn’t as good as it could be. For example, Johnny’s application requires a Nintendo Wiimote and some goofy looking glasses with IR LEDs mounted on them. My application does away with all of this unnecessary equipment and replaces it all with a single webcam. Adding OpenCV into the mix allows you to do the head tracking without the need for the Wiimote. Checkout my video and be sure to download a copy of the source code along with a working version of the application from the link below the video. Also, be sure to let me know what you think of the application in the comments below.
Download Virtual 3D using OpenCV and C# here. (7MB)
Originally posted at http://www.prodigyproductionsllc.com/articles/programming/virtual-3d-with-opencv-and-c/