0
$\begingroup$

I am currently developing algorithm using openCV C++ for implementing laser as a mouse.Currently am having an issue of hand jitters.(ie. The presenter's hand may shake unnecessarily which may cause pointer to move continuously.).Can anyone please tell me how to avoid this problem using openCV or is there any in build function available to overcome this problem ?

Thanks in advance.

$\endgroup$
-1
$\begingroup$

I'm not having an OpenCV solution for you, but what about the following approachs:

#1

  1. Assume that the jitter is Gaussian and calculate the mean and variance of the laser point for a certain number of frames (this number is something that you should estimate or measure in an experiment)

  2. Keep the mouse cursor at the mean position.

  3. Update the position of the mouse cursor only if the mean position has changed more than one standard deviation.

#2

Calculate the mean position of the laser point for a certain number of frames (this number is something that you should estimate or measure in an experiment). This is the same as a sliding average position of the laser point. Use this mean position as the cursor position.

$\endgroup$
  • $\begingroup$ Thanks for sharing this solution.Will work on it and let you know. $\endgroup$ – vairav Mar 4 '16 at 4:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.