Gesture recognition helps computers to understand human body language. This helps to build a more potent link between humans and machines, rather than just the basic text user interfaces or graphical user interfaces (GUIs).
In this project, we are using gestures(by extracting the key points from the library), setting conditions based on the gestures that the code reads and sending data to arduino to turn the LEDs on/off.
The gesture 1 lets you turn on LED-1, 2 for LED- 2, 3 for LED-3, 5 for turning all the LEDs off and 0 for exiting.
OpenCv:OpenCV (Open-Source Computer Vision Library) is an open-source computer vision and machine learning software library. OpenCV was built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in commercial products.
Mediapipe:Mediapipe is an open-source machine learning library of Google, which has some solutions for face recognition and gesture recognition and provides encapsulation of python, js, and other languages. MediaPipe Hand is a high-fidelity hand and finger tracking solution. It uses machine learning (ML) to infer 21 key 3D hand information from just one frame.
Cvzone is the library that develops a bridge between Arduino and python. With the help of the SerialObject module in Cvzone we can connect the arduino port with python as well as send data to arduino and can link any python code with it.
Note: This is not officially available for arduino ide, you can refer this link for downloading it.
APPROACH:1) Detect hand gestures.
2) Code reads the gestures.
3) Every gestures has different conditions.
4) Based on the condition, send the data to arduino.
ARDUINO-SETUP:Refer the circuit diagram below for making the connections.
After making the above connections, refer to the python code below!
Simulation Output:
Comments