use your camera to use any object as a controller
intall the required libraries
pip install opencv-python numpy pydirectinput
run the python code
place a red colour on the controller
press c to callibrate the centre position and r to recallibrate you are ready to go