It is a mouse simulation system which performs all the functions performed by your mouse corresponding to your hand movements
and gestures. Gesture recognition technique is used to interact with computers, such as interpreting sign language.We can move the
cursor and perform a left-click, right-click, drag, select and scroll up and down.
The predefined gestures make use of only three fingers marked by different colors.
CALIBRATION PHASE:
The purpose of the calibration phase is to allow the system to recognize the Hue Saturation Values of the colors chosen by the users,
where it will store the values and settings The program acquires the frames that consist of input colors submitted by the users.
* Specify colors
* Create Trackbar
* Get Trackbar position
NOISE FILTERATION PHASE:
Due to noise captured by the webcam and vibrations in the hand, the centres keep vibrating around a mean position.
To reduce the shakiness in cursor ,compare the new centre with the previous position of the cursor.
* Video Mask
* Erosion
* Dilation
CONTOUR DETECTION PHASE:
After image Filteration, the next step is to perform edge detection to obtain the hand contour in the image.
Contours are defined as the line joining all the points along the boundary of an image that are having the same intensity.
* Find Contour
* Find Centroid
MOUSE ACTIONS:
The program will executes the mouse actions based on the colours combinations exist in the processed frame for that
three centres are sent for deciding what action needs to be performed depending on their relative positions.
1.Free cursor movement
2.Right click
3.Left Click
4.Drag / Select
5.Scroll up
6.Scroll down
For Left click / Right click:
- Red and Blue colors are specified for left click option.Whenever Blue and Red color comes together,gesture is
recognized by the program further and it will perform action and after left click un-pinch the fingers and choose the next action
- Red and Yellow colors are specified for right click clicking the mouse. Whenever the Red and Yellow color comes
together and the gesture recognized by the program further and for next move un-pinch the fingers and choose the next action.
To scroll down RED + YELLOW color finger gesture is used.The final PyAutoGUI mouse function is scroll( ), which will work passing an integer argument.The scrolling takes place at the mouse cursorโs current position. ```