leya
leya

Reputation: 63

How to make moving detected hand and fingertips interact with Qt GUI like a mouse?

I'm making this fingertip-driven app ( OpenCV 2.3.2 + Qt 4.7 being developed in Visual Studio 2010 ) in which I'd like to utilize Qt's GUI especially its dialogs. The fingertip's position will be detected and tracked through VideoCapture. Imagine Microsoft Windows' Paint being used with one fingertip. I've been speculating about the following options:

What could be the most practical and the least computationally intensive way to do this? Sorry if my English wasn't clear or confusing. Thanks in advance.

Upvotes: 3

Views: 399

Answers (1)

Soroush Rabiei
Soroush Rabiei

Reputation: 10868

You can simulate this behavior by implementing QTouchEvent and calling that event simultaneously by your possible image processing thread. You just need to generate parameters needed by QTouchEvent (touch points, locations etc) by your image processing algorithm.

Upvotes: 2

Related Questions