Ask Your Question

Revision history [back]

mouse problem in python 2 examples Ubuntu 12.04

Hi,

I'm experiencing a problem with any of the python2 examples that use the mouse under Ubuntu 12.04 64-bit (camshift.py, plane_tracker, watershed...) As written, the examples don't respond to the mouse - it seems because lines of this type

if flags & cv2.EVENT_FLAG_LBUTTON

aren't doing what they are supposed to.

Is anyone else experiencing this problem? I have not been able to test on other platforms yet. The problem occurs with 2.4.4 and 2.4.6.1 for me.

A workaround is to restructure the python code to check for button click events. I'd be happy to submit that patch. Alternately, there may be something fishy in the way these flags are being handled on Ubuntu.

best, Rupert