<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for Jhon</title><link>http://disqus.com/people/9cd925f3a77451ad63638132069102f6/</link><description></description><language>en</language><lastBuildDate>Thu, 25 Sep 2008 14:18:10 -0000</lastBuildDate><item><title>Re: Small update on face detection post</title><link>http://intraction.disqus.com/thread/#comment-2589507</link><description>Could you upload your sources, I really want to learn DBUS and py-notify?&lt;br&gt;Besides, it looks really nice your software, I would like to have a copy.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jhon</dc:creator><pubDate>Wed, 24 Sep 2008 23:33:35 -0000</pubDate></item><item><title>Re: Fun with Python, OpenCV and face detection</title><link>http://intraction.disqus.com/fun_with_python_opencv_and_face_detection/#comment-2628971</link><description>I figured it out how to properly use cvWaitKey.&lt;br&gt;&lt;br&gt;In your code you are waiting just 10 ms for a key, and only after the image was processed.&lt;br&gt;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.&lt;br&gt;&lt;br&gt;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:&lt;br&gt;if k!=-1 and ord(k) == 0x1b: # ESC&lt;br&gt;            print 'ESC pressed. Exiting ...'&lt;br&gt;            break</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jhon</dc:creator><pubDate>Thu, 25 Sep 2008 14:18:10 -0000</pubDate></item></channel></rss>