Use this tag for questions about automation of games, i.e. cheat bots for games.
Questions tagged [game-automation]
18 questions
1
vote
3 answers
Processing an image of a compass to determine the direction a player is facing
I am building a video game overlay that sends data back to the player to create a custom HUD, just for fun.
I am trying to read an image of a video game compass and determine the exact orientation of the compass to be a part of my HUD.
Example photo…

programmer4g
- 21
- 3
1
vote
0 answers
move mouse within window using pyautogui
using opencv I am able to detect an object in a game. However, when my mouse moves over to the coordinate (in the actual game window), its using absolute coordinate (based on monitor pixel). So when I move my actual game window, its no longer…

wew044
- 49
- 6
0
votes
1 answer
Detecting shapes with gaps in them in an image using Python
I have the following image:
I want to extract the following outline so that I can check if there is a point inside the outline:
I have the following python code to extract the outline of the shape using cv2.findContours:
import cv2
import numpy as…

Flojomojo
- 53
- 8
0
votes
0 answers
openCV - object detection: should I use YOLO? If not, which algorithm would more appropriate for this case scenario?
I need to detect object that aren't that much complex: pokestops.
Some images of a pokestop:
Screenshot examples:
In the past I have worked with template-matching and a little bit with feature detection and homography but sadly none of my…

butexa
- 165
- 8
0
votes
1 answer
How to move my crosshair to the bounding box my model creates
I am working on a project involving creating an AI-powered bot to full play Counter-Strike by itself. I have a working script that uses the YOLOv8 object detection algorithm to identify players on the screen, and draw a the bounding box around…

BigHeroSus
- 23
- 4
0
votes
1 answer
read text from picture getting lot of color shade
Ciao,
How can I exctract text data from this picture : Picture form which I want to export text data
I have not so much experience on data post processing, since few days I try to extract text data from picture below with opencv library with…

JackBow
- 1
- 1
0
votes
0 answers
Find brighter areas in an image
I am trying to find the direction the player camera is facing so I can rotate it. The direction is given on the minimap by a cone where the area is brighter. You can see it better in the images below.
As you can see it's a cone that makes the…

Aintsmartenough
- 59
- 1
- 8
0
votes
0 answers
How to write a macro that automatically detects an incoming bot check in-game and clicks the correct answer?
While playing the game, a bot control appears at certain intervals as follows.
I created 5 different regions using the OpenCV and Python-tesseract libraries in Python. It scans the mathematical operation or text written in yellow in the main…

Mücahit Kaan
- 1
- 1
0
votes
0 answers
How to locate glow/sparkle particle on screen with python
Im trying to write a gamebot to detect loot particles in a game.
The issue is that those particles appear to be hard for the pyautogui pack to distinguish.
The code snippet is pretty simple
for i in range(3):
…

Isaac Clarke
- 101
- 1
0
votes
3 answers
Find "noisy" lines in a image with cv2 in python
I have the following image:
What is the best way to find the brown lines?
The output image should kind of look like this:
I have tried to just filter out the brown color, but I couldn't find a good color range.

Flojomojo
- 53
- 8
0
votes
0 answers
Windowcapture BitBlt failed
The cheat protection of the game I play ensures that the following codes do not work. When I use different screen capture methods, I encounter a black screen and I tried many alternatives, but I could not get a result. Do you have any solution…

CrotaL
- 19
- 5
0
votes
0 answers
How can I improve pyTesseract detection for this image?
I'm trying to read the following images using pyTessaract.
The program I've made extracts these images from a video, I want to use pytessaract to extract text from them. The program also has the option to make boxes at the areas I want to the OCR…

Mr Aristocrat
- 21
- 2
0
votes
0 answers
Can someone help me with this OpenCV error? I'm trying to use openCV's matchTemplate to match a screenshot from a live capture to a local .jpg image
Here is the error message:
error: (-215:Assertion failed) (depth == CV_8U || depth == CV_32F) && type == _templ.type() && _img.dims() <= 2 in function 'cv::matchTemplate'
This is the function that the error occurred in, in line
result =…
0
votes
0 answers
OpenCV Image Processing With Video
I'm working on a bot for a game and currently finding how I could get it to see the browser tab (on chromebook/linux rn btw). My idea is to feed it a livestream of the tab and have it interact using OpenCV but don't know if OpenCV can take video.
Is…

William Reams
- 1
- 1
0
votes
1 answer
OpenCV / Python - constantly 'read' / 'look at' video game window
I have a video game bot I am working on that looks at the screen of a video game and detects objects within that window.
My current solution is to take a screenshot of that window every x seconds, detect the objects in that screenshot, and take…

Bigred
- 47
- 5