-
Website
http://blog.jozilla.net/ -
Original page
http://blog.jozilla.net/2008/06/27/fun-with-python-opencv-and-face-detection/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
cyril84
2 comments · 1 points
-
free gift cards
1 comment · 1 points
-
Jo Vermeulen
28 comments · 1 points
-
Daniel Ha
2 comments · 396 points
-
margesh
1 comment · 1 points
-
-
Popular Threads
-
Research update
1 week ago · 2 comments
-
Research update
Its good that you got it working though. There is some pretty amazing stuff in OpenCV.
In your code you are waiting just 10 ms for a key, and only after the image was processed.
So, if you wait a little bit longer(maybe 100ms, but this will slow down a lot the fps) you will be able to catch the keys.
However, there is also another problem cvWaitKey returns -1 when no key was pressed, but return a string(char) holding the key pressed, so you need to do the following:
if k!=-1 and ord(k) == 0x1b: # ESC
print 'ESC pressed. Exiting ...'
break
We managed to get up to 4 faces recognized at the same time.
D:\SW\CamFD>python test2.py
Traceback (most recent call last):
File "test2.py", line 2, in <module>
from CVtypes import cv
File "D:\SW\CamFD\CVtypes.py", line 42, in <module>
_cxDLL = cdll.cxcore100
File "C:\Python25\lib\ctypes\__init__.py", line 423, in __getattr__
dll = self._dlltype(name)
File "C:\Python25\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
Any help regarding this will be great!
I will probably release a first version of the code in the following weeks, so stay tuned!
I'm from Asia. I'm just starting to learn openCV.
Is there any opinion or advise from Sir as an expert to me to start learning opencv
Thank you very much.
Have a look at Gary Bishop's blog post, where he grabs a bitmap from the camera and displays this in a Wx window: http://wwwx.cs.unc.edu/~gb/wp/blog/2007/02/04/p...
Your if script silently hangs on this line for me:
cascade = cv.LoadHaarClassifierCascade('haarcascade_frontalface_alt.xml', cv.Size(1,1))
What can be the problem here? This xml exists in same directory and the is no any error output.
Thanks in advance!
i have an integrated camera on my laptop, which works with some apps like cheese.
while running this code, the camera(led) turns on, but nothing comes on the screen.
the script hangs and i have to ctrl+C to close it.
any pointers to help me with this situation will be appreciated.
thanks
cyril@zilo2:~/Bureau/test$ sudo python webcam2.py
Traceback (most recent call last):
File "webcam2.py", line 3, in <module>
from CVtypes import cv
ImportError: No module named CVtypes
i use ubuntu, how cab i install opencv? sudo apt-get install ?
Thinks @+
Traceback (most recent call last):
File "opencv.py", line 2, in <module>
from CVtypes import cv
ImportError: No module named CVtypes
What is this mistake? how install cvtypes?
Thinks