managed to set up the opencv with the sample face detection code.
some issues:
- very high lag (possible solutions: reduce image size?)
- in some cases, incorrectly detecting my ears or other parts as a face
- at certain angles or head tilt, unable to detect the face at all (possibly need additional haar cascade data?) --- how to detect heads at unusual angles (rolls don't work, mean if the face is facing front, but the image is rotated 45 deg, the face is not recognized)?
additional stuff:
- opencv has additional training data to detect: face, profile face, upper body, lower body, full body
additional research on head tracking:
http://danielbaggio.blogspot.com/2008/01/webcam-opengl-opencv-head-tracking.html
he made a 3d environment that changes viewing angle based on head position (note, there's no roll, yaw, pitch -- only coordinates).
however, he found a way to make face detection faster from 200ms, down to 20ms, though it involves modification of the opencv code itself.
his blog: http://danielbaggio.blogspot.com/
also mentions ECHI api, which is some code that uses opencv.
echi: http://code.google.com/p/ehci/
features of echi includes:
6 degree of freedom head tracking (what we're doing)
head tracking
hand tracking
check out the youtube video of 6-dof head tracking:
http://www.youtube.com/watch?v=M5kqgBO6D9s
http://www.youtube.com/watch?v=NNVaU2eOcbs (awesome!)
Sunday, August 31, 2008
Saturday, August 30, 2008
Setting up environments for Open CV
Open the Visual C++ .Net Application. In the menu bar, select Tools->Options
In the listing, choose Projects->VC++ Directories.
First, select Library files from the "Show Directories for" List Box.
Click the Insert New icon, and locate the folder where you have installed opencv.
- Consider that it is installed in "C:/Program Files/OpenCV".
- In the Library files list, locate and add:
"C:\Program Files\OpenCV\lib"
- In the Include files list, locate and add:
"C:\Program Files\OpenCV\cv\include"
"C:\Program Files\OpenCV\cxcore\include"
"C:\Program Files\OpenCV\otherlibs\highgui"
"C:\Program Files\OpenCV\cvaux\include"
"C:\Program Files\OpenCV\otherlibs\cvcam\include"
- In the Source files list, locate and add:
"C:\Program Files\OpenCV\cv\src"
"C:\Program Files\OpenCV\cxcore\src"
"C:\Program Files\OpenCV\cvaux\src"
"C:\Program Files\OpenCV\otherlibs\highgui"
"C:\Program Files\OpenCV\otherlibs\cvcam\src\windows"
This will permenantly add those files to your project settings so you do not have to manually edit the C++ and Linker properties
Tuesday, August 26, 2008
useful links for coding
Some useful links, feel free to add on to the list.
Introduction to OpenCV:
http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/index.html
http://opencv.blogspot.com/
Advanced OpenCV:
http://www.site.uottawa.ca/~laganier/tutorial/opencv+directshow/cvision.htm
Sample face detection:
http://opencvlibrary.sourceforge.net/FaceDetection
http://www.codeproject.com/KB/library/eyes.aspx
Ogre3D related:
http://www.ogre3d.org/phpBB2/viewtopic.php?p=299105&sid=ce193664e1d3d7c4af509e6f4e2718c6
http://www.ogre3d.org/phpBB2/viewtopic.php?t=16572&start=25&postdays=0&postorder=asc&highlight=
http://www.ogre3d.org/phpBB2/viewtopic.php?t=16572&postdays=0&postorder=asc&start=0
http://www.ogre3d.org/phpBB2/viewtopic.php?t=22584
http://www.ogre3d.org/phpBB2/viewtopic.php?t=17238&highlight=
Maya related:
Introduction to OpenCV:
http://www.cs.iit.edu/~agam/cs512/lect-notes/opencv-intro/index.html
http://opencv.blogspot.com/
Advanced OpenCV:
http://www.site.uottawa.ca/~laganier/tutorial/opencv+directshow/cvision.htm
Sample face detection:
http://opencvlibrary.sourceforge.net/FaceDetection
http://www.codeproject.com/KB/library/eyes.aspx
Ogre3D related:
http://www.ogre3d.org/phpBB2/viewtopic.php?p=299105&sid=ce193664e1d3d7c4af509e6f4e2718c6
http://www.ogre3d.org/phpBB2/viewtopic.php?t=16572&start=25&postdays=0&postorder=asc&highlight=
http://www.ogre3d.org/phpBB2/viewtopic.php?t=16572&postdays=0&postorder=asc&start=0
http://www.ogre3d.org/phpBB2/viewtopic.php?t=22584
http://www.ogre3d.org/phpBB2/viewtopic.php?t=17238&highlight=
Maya related:
Monday, August 18, 2008
Details of each group members
Hey guys, sorry for the late update but here are the details:
Munir Hussin u065309h munir@comp.nus.edu.sg (msn: moonaire@hotmail.com)
Denis Chan u057143r immortal_luver@hotmail.com
Jack Ong U057142E (msn moonsharke@hotmail.com) (mail moonsharke@gmail.com)
Lu Jun Cheng U057179Y (msn selangcolorwolf@yahoo.com)
Feel free to leave your hp here too.
Munir Hussin u065309h munir@comp.nus.edu.sg (msn: moonaire@hotmail.com)
Denis Chan u057143r immortal_luver@hotmail.com
Jack Ong U057142E (msn moonsharke@hotmail.com) (mail moonsharke@gmail.com)
Lu Jun Cheng U057179Y (msn selangcolorwolf@yahoo.com)
Feel free to leave your hp here too.
Subscribe to:
Posts (Atom)