"Dr. Driving" is a popular mobile game that requires the player to drive a car through a city while obeying traffic rules and completing various challenges. In this report, we will explore how to play "Dr. Driving" game using virtual steering built with Mediapipe and OpenCV.
-
Load the hand tracking model: Load the hand tracking model from Mediapipe. The hand tracking model will detect the hand and its landmarks.
-
Load the drawing module: Load the drawing module from OpenCV. The drawing module will be used to draw the virtual steering wheel on the detected hand.
-
Define the region of interest: Define the region of interest (ROI) around the detected hand. This ROI will be used to draw the virtual steering wheel on the detected hand.
-
Define the steering angles: Define the steering angles for the left and right turns. These angles will be used to calculate the steering direction based on the hand landmarks.
-
Calculate the steering direction: Calculate the steering direction based on the hand landmarks. You can use the position of the thumb and the index finger to calculate the direction.
Here are the steps to play "Dr. Driving" game using virtual steering:
from any Emulator According to your preference
Clone the Repository and Install the library
pip install opencv-python
pip install mediapipe
python run Steering.py
Using virtual steering with Mediapipe and OpenCV, we were able to successfully control the car in "Dr. Driving" game using hand movements. The steering was responsive and accurate, allowing us to easily navigate through the city and complete the challenges.
Virtual steering with Mediapipe and OpenCV is a powerful tool that can be used to control games and applications using hand movements. With this technique, we were able to play "Dr. Driving" game without using a physical steering wheel or a controller, which is a fun and immersive experience.
OpenCV , Mediapipe