Skip to content

Mrflops/DigitalSteering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open an Issue · Download

DigitalSteering

What is DigitalSteering?

At its core, DigitalSteering employs sophisticated algorithms to interpret user inputs and translate them into virtual steering commands. The program mimics the functionality of a physical steering wheel, allowing users to navigate and control in-game vehicles with precision.

Why DigitalSteering?

One of the primary goals of DigitalSteering is to break down barriers in gaming accessibility. By offering diverse and customizable control methods, it caters to a broader audience, including individuals with different physical abilities and disabilities.

DigitalSteering takes a step further by addressing the specific needs of individuals with limited mobility, particularly those without the use of arms or hands. The project incorporates adaptive technologies to empower gamers facing physical challenges, providing them with a means to enjoy gaming on equal terms.

image-2023-12-30-111624263

Guide

We have a vscode and pycharm guide. Please ask if you need help for a different application

For offsetting the degrees please insert the integer to the range of 0 (Normal) to 365 (Full Offset). Please change accordingly

Sensitivity is for changing how many degrees to steer. The less it is, more steering is required to turn. The more it is, less steering is required to turn. Please change accordingly

Download the Code

Download the provided code and un-zip the file.

Guide For Pycharm

Please note that this assumes you already have Python installed on your system.

ONLY tested 3.10 Python so it might not work in newer and older versions

Install Required Packages

First, you need to install the necessary Python packages. Open the integrated command prompt in Pycharm: image-2023-12-30-111932555

Copy and paste the following into the terminal:

pip install opencv-python

pip install mediapipe

pip install ctypes

Run the Code

Go into pycharm and click on the three bars on top left. Click open... and select the un-zipped file. Run steering.py by doing F10 + Shift or on the top right of the screen

Exit the Application

To exit the application, press the 'q' key while the application window is active.

Make sure your system has a webcam or an external camera connected. The script uses the default camera (index 0). If you have multiple cameras or a different camera index, you may need to modify the code by changing the number from (0)

Feel free to ask if you have any questions or encounter any issues!

Common Errors

DO NOT be tabbed into the window with the camera output. Please click a different window to use it if you want to see the steering wheel. Else it shouldn't matter.

If the tracker is not tracking your hands consider to close your hands while using. You can also lower the confidence bar on Line 65 and 66 (decimal = % for example 0.3 = %30 if you didn't know)

Same goes for the tracker falsely identifying a hand. You may raise the confidence bar on 65 and 66 (decimal = % for example 0.3 = %30 if you didn't know)

Steering Digitally :D

Guide For Visual Studio Code

Please note that this assumes you already have Python installed on your system.

ONLY tested 3.10 Python so it might not work in newer and older versions

Install Required Packages

First, you need to install the necessary Python packages. To open the integrated command prompt in VScode go to the top and click on Terminal: image-2023-12-30-112635556

Copy and paste the following into the terminal:

pip install opencv-python

pip install mediapipe

pip install ctypes

Run the Code

Go into VScode and click on the File button on the top left. Click Open Folder and select the un-zipped file. After opening the file click on Steering.py. You should be able to run it from there

Exit the Application

To exit the application, press the 'q' key while the application window is active.

Make sure your system has a webcam or an external camera connected. The script uses the default camera (index 0). If you have multiple cameras or a different camera index, you may need to modify the code by changing the number from (0) (Line 61)

Feel free to ask if you have any questions or encounter any issues!

Common Errors

MAKE SURE you have your python interpreter to the one you installed your packages in.

DO NOT be tabbed into the window with the camera output. Please click a different window to use it if you want to see the steering wheel. Else it shouldn't matter.

If the tracker is not tracking your hands consider to close your hands while using. You can also lower the confidence bar on Line 65 and 66 (decimal = % for example 0.3 = %30 if you didn't know)

Same goes for the tracker falsely identifying a hand. You may raise the confidence bar on 65 and 66 (decimal = % for example 0.3 = %30 if you didn't know)