/Gamer_Assist

A GUI python application to read health value from games and send it hardware through serial communication.

Primary LanguagePythonCreative Commons Zero v1.0 UniversalCC0-1.0

Gamer Assist

A python application to capture the onscreen health data of a game to process onscreen health and send it to hardware device through serial communication.

Python Application Feature :

  • Saving different games health bar location / processing information
  • Interactive screenshot to get the healthbar / health value co-ordinates
  • Customizable serial communication (ports / badu rate selection)
  • In built image editor
  • Performs OCR on Health value
  • Determines Health value based on Health bar

Gamer Assist

Arduino Application Feautre:

  • ESP-NOW integrated
  • Reads data from serial
  • Drive different addressable RGB leds

Ambient Light Circuit

Haptic feedback Circuit

Getting Started

Prerequisites

Python Application

Python External Library Prerequisites

  • Open CV
  • Pillow
  • numpy
  • pyserial
  • pytesseract
  • pyautogui

Runnig the code

Navigate to the main.py file location and run the command in cmd/power shell.

Python main.py 

Usage

Home page - Here select the com port where the device is connected and set the badu rate.

Home window

Interactive Screenshot - select the part of the screen where the health bar or health value is located. (Make sure the image/game is full screen when you do this)

Selection of health bar

Selection of health value

Editor Window - Here the images are processed to get the health value by using sliders (threshold, brightness and blur).

Editing for health bar
Health bar editor

Editing for health value
Helath value editor

Arduino

Arduino External Library Prerequisites

Open the Arduino IDE and follow the below steps:

Sketch -> include library -> ManageLibrary -> *Search for the above libraries*

Or follow the instructions on respective library repository.

Video explanation for hardware/circuit: Youtube link

BUGS

This is the first version so there are way to many bugs for now, let me know what issues you find. The latency of processing the health value varies dpending on the specs of the PC.

License

LICENSE.md file for details