This is a Python application that uses hand detection and gesture recognition to perform actions based on the hand gestures captured through a camera feed. It utilizes the Mediapipe library for hand tracking and provides features gesture as input.
libraries used: opencv-python mediapipe pythonautogui pynput
- Install the required libraries mentioned in the code, such as
cv2,mediapipe,time,pyautogui,tkinter, andpynput. - Replace the value of the
sign_imagevariable with the path to your own sign image file. - Run the script, and the application will start capturing video from the default camera.
- The hand detection and gesture recognition will be performed in real-time on the camera feed.
- When the thumb and index finger meet closely, the corresponding actions will be triggered, such as mouse click simulation and sign image overlay.
- The checkbox option in the GUI can be used to toggle the display of the camera feed window.
- The button in the GUI initiates the execution of the camera feed and the hand detection functionality.
- Use the spacebar key to pause/resume the input processing.
- Use the enter key to trigger a mouse click action.
- Press 'q' in the camera feed window or close the window to exit the application.
HDAI Apollo: Research Paper Version, project docs and research paper will get updated soon.