Python Computer Vision Aim Bot for Roblox's Phantom Forces

Overview

Python-Phantom-Forces-Aim-Bot

Python Computer Vision Aim Bot for Roblox's Phantom Forces

! ! ! USE AT YOUR OWN RISK ! ! ! I will not be at fault if your account is banned

Should be somewhat undetectable by anti-cheat, others players are the problem

Read comments at top of script

Edit for your monitor and then run the python file. I use VSCode to edit and run with debug.

Requires installation of Python 3 and some libraries:

  • win32gui
  • win32ui
  • win32con
  • win32api
  • numpy
  • cv2 (openCV)
  • time
  • math
  • keyboard
      • Will NOT Be Making It An EXE File Due To Safety * * *

Tested on a Desktop:

  • Nvidia 3080 10g GPU
  • Ryzen 5 5600x CPU
  • 32gb 3600mhz c18 RAM
  • 1440p Monitor

On those tested specs, The bot was able to manage 60+ FPS (take image, find target, and move mouse all in 1/60th of a second), sometimes going over 150+ FPS.

How it works (KEEPS LOOPING FOLLOWING STEPS):

  1. Take screenshot of specific area on your screen where center is crosshair, and only capture the amount it needs (Not the whole screen, about 1/4th)
  2. Mask the image to search for the specific colors of the in-game Ballistic Tracker attachment (yellow)
  3. Find contours of the masked image (find where the image goes through drastic change in color, in this case black to white)
  4. Determine if the size of the contour's box is reasonable (box is always the same size, too small or big means its not the tracker)
  5. Get the center of the contour's box from the x, y, width, and height
  6. Find distance between the center and your crosshair (center of screen, but implement tracking for recoil)
  7. Take that distance and multiply it by a scale value (one pixel moved of your mouse does not equal one pixel moved in game (2D plane does not have the same distance as a 3D space/ center of sphere to edge of sphere)
  8. Move mouse by that value (Won't immediatly get to it, requires more math to determine exact amount. Also may look too suspicious)
  9. {OPTIONALLY} Fire mouse when aiming at target (within a certain distance to center)

Requires Ballistic Tracker attachment Works best with low recoil, high firerate weapons (Such as L22 and Honey Badger), but can also work with Sniper Rifles (May need a little more fine tuning for One-Shot long range)

If you don't use a 1440p monitor, you will HAVE to change 2 values in the script (at top surrounded by hashtags that reads: Monitor_Size = [2560, 1440]), you also may gain more performance.

List of values for different monitor sizes: 720p - [1280, 720] 1080p - [1920, 1080] 1440p - [2560, 1440] 4k - [3840, 2160] 1080p ultrawide - [2560 or 3840, 1080] 1440p ultrawide - [3440, 1440]

May be updated here-and-there when I decided to come back and work on it some more to optimize performance and accuracy

You might also like...
A dataset handling library for computer vision datasets in LOST-fromat

A dataset handling library for computer vision datasets in LOST-fromat

Repository for playing the computer vision apps: People analytics on Raspberry Pi.

play-with-torch Repository for playing the computer vision apps: People analytics on Raspberry Pi. Tools Tested Hardware RasberryPi 4 Model B here, RA

This repository summarized computer vision theories.

This repository summarized computer vision theories.

SRA's seminar on Introduction to Computer Vision Fundamentals
SRA's seminar on Introduction to Computer Vision Fundamentals

Introduction to Computer Vision This repository includes basics to : Python Numpy: A python library Git Computer Vision. The aim of this repository is

Using computer vision method to  recognize and calcutate the features of the architecture.
Using computer vision method to recognize and calcutate the features of the architecture.

building-feature-recognition In this repository, we accomplished building feature recognition using traditional/dl-assisted computer vision method. Th

computer vision, image processing and machine learning on the web browser or node.

Image processing and Machine learning labs   computer vision, image processing and machine learning on the web browser or node note Fast Fourier Trans

Omdena-abuja-anpd - Automatic Number Plate Detection for the security of lives and properties using Computer Vision.

Omdena-abuja-anpd - Automatic Number Plate Detection for the security of lives and properties using Computer Vision.

Smart computer vision application

Smart-computer-vision-application Backend : opencv and python Library required:

Computer vision applications project (Flask and OpenCV)

Computer Vision Applications Project This project is at it's initial phase. This is all about the implementation of different computer vision techniqu

Owner
drag0ngam3s
15yo, Practicing Python, C++, and C#. Playing around in Unity and Unreal Engine. Studying Cybersecurity at school.
drag0ngam3s
Multi-choice answer sheet correction system using computer vision with opencv & python.

Multi choice answer correction ?? 5 answer sheet samples with a specific solution for detecting answers and sheet correction. ?? By running the soluti

Reza Firouzi 7 Mar 7, 2022
Python Computer Vision application that allows users to draw/erase on the screen using their webcam.

CV-Virtual-WhiteBoard The Virtual WhiteBoard is a project I made using the OpenCV and Mediapipe Python libraries. Using your index and middle finger y

Stephen Wang 1 Jan 7, 2022
Open Source Differentiable Computer Vision Library for PyTorch

Kornia is a differentiable computer vision library for PyTorch. It consists of a set of routines and differentiable modules to solve generic computer

kornia 7.6k Jan 4, 2023
Open Source Computer Vision Library

OpenCV: Open Source Computer Vision Library Resources Homepage: https://opencv.org Courses: https://opencv.org/courses Docs: https://docs.opencv.org/m

OpenCV 65.7k Jan 3, 2023
"Very simple but works well" Computer Vision based ID verification solution provided by LibraX.

ID Verification by LibraX.ai This is the first free Identity verification in the market. LibraX.ai is an identity verification platform for developers

LibraX.ai 46 Dec 6, 2022
This is a Computer vision package that makes its easy to run Image processing and AI functions. At the core it uses OpenCV and Mediapipe libraries.

CVZone This is a Computer vision package that makes its easy to run Image processing and AI functions. At the core it uses OpenCV and Mediapipe librar

CVZone 648 Dec 30, 2022
An organized collection of tutorials and projects created for aspriring computer vision students.

A repository created with the purpose of teaching students in BME lab 308A- Hanoi University of Science and Technology

Givralnguyen 5 Nov 24, 2021
Roboflow makes managing, preprocessing, augmenting, and versioning datasets for computer vision seamless.

Roboflow makes managing, preprocessing, augmenting, and versioning datasets for computer vision seamless. This is the official Roboflow python package that interfaces with the Roboflow API.

Roboflow 52 Dec 23, 2022
Aloception is a set of package for computer vision: aloscene, alodataset, alonet.

Aloception is a set of package for computer vision: aloscene, alodataset, alonet.

Visual Behavior 86 Dec 28, 2022
Kornia is a open source differentiable computer vision library for PyTorch.

Open Source Differentiable Computer Vision Library

kornia 7.6k Jan 6, 2023