/cv-aimbot

Aimbot using computer vision for object detection on the screen and Arduino Leonardo for mouse emulation.

Primary LanguageJupyter Notebook

Description

Aimbot using computer vision for object detection on the screen and Arduino Leonardo for mouse emulation.

Built with

  • Python3
  • YOLOv5
  • Arduino Leonardo

Preview

alt text alt text

Installation

  1. Clone the repo:
    git clone https://github.com/adrolc/cv-aimbot.git
  2. Create a venv inside the project and activate it:
    python -m venv .venv
    .venv\script\activate
  3. Install PyTorch
  4. Download YOLOv5, extract in the project and rename the folder to yolov5
  5. Install dependencies:
    pip install -r requirements.txt
    pip install -r yolov5\requirements.txt

Usage

  1. Upload mouse/mouse.ino to arduino leonardo
  2. Set the port and baudrate in aimbot/aimbot.cfg
  3. Connect arduino leonardo via usb to pc
  4. Run aimbot:
    py aimbot.py
  5. Press v to calculate the distance of the detected target and shoot