Giter Site home page Giter Site logo

haihaimx / yolov5_fps_aicheatprinciple Goto Github PK

View Code? Open in Web Editor NEW

This project forked from duguyifei/yolo_fps_aicheatprinciple

0.0 0.0 0.0 38.58 MB

cf挂The AI cheating principle of fps game. (This is only used for learning)

License: GNU General Public License v3.0

Shell 0.50% Python 98.69% Dockerfile 0.81%

yolov5_fps_aicheatprinciple's Introduction

RAED ME

Relatively newest public one is in brach v2. But it is still my old research. Newest has been hidden in private branch, because it becomes too strong after Yolo continue upgrade. Since it can be used in each shooting game, I hide and stop research it.

screenshot

Video display

(In branch V2, fixed the blue screen, redudant train code, requirement.txt)

Introduction

FIRSTLY, this is a project only for learning using.

It can only detect enemy not really moving mouse in game.

The algorithm is using yolov5

The trained data I used mine firstly but result not good enough because label all imgs need a lot of time. So It comes from Cool Guy Leaf48.

I tried to transfer it int onnx and use opencv + cpp to do detect but actually fps is slower than in python. I don't really get the reason. But I guess it is because the API I used in cpp is not as fast as it in pytorch.

Function

When you click left button, it will automatically detect enemy place and move mouse to there.

learning

  1. show the detected image with box, when click mouse your cursor will move to the box.
python develop.py 
  1. Not show the detected box and have different ways to realize move mouse.
python main.py

parameters

  • rect: based on the resolution of your screen. The rect is the rectangle in your screen. (leftTop_x, leftTop_y, rightBot_x, rightBot_y)

  • pid: the process Id of the game which can be seen in Task Manager.

Others

In branch v2, it trained by Ultralytics hub and Roboflow, so I delete the redundant trained code and origin model from yolov5.

issue

  1. redundant code (Fixed in brach v2)

  2. The test image is looks in blue because I didn't change the BRG to RGB channel.Fixed

But that's not a big problem.

If want to get higher precision, just need change the blue channel and red channel in the image matrix.

Of course, the lower precision is not a problem for me for learning yolo5.

  1. The requirement.txt cannot download pytorch cuda version. (Fixed)

  2. Simple mouse control function not work for Valorant.

If really want to cheat, we need use better technology. For example, in arduino we can use mouse.move() to simulate real mouse moving.

Or we need insert a data stream before system send msg to valorant.

But of course, it maybe also the problem that I didn't find the real HWND of valorant. Because the window of Valorant named as "Unreal" valorant window.

yolov5_fps_aicheatprinciple's People

Contributors

duguyifei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.