Hypervision is a realtime object detection system, utilized for target autoaiming.
In other words, it is neural network based aimbot, capturing screen region, detecting targets and performing mouse actions if needed.
- π Production-Ready Project: A fully functional, out-of-the-box solution for real-time object detection and auto-aiming.
- π§ ONNX β TensorRT Conversion Script: Easily convert your ONNX models to TensorRT for optimized performance.
- βοΈ Basic Configuration: Simple YAML-based setup to get you started in minutes.
- π§ Pre-Trained YOLOv11 Model: Jumpstart your project with a state-of-the-art, pre-trained detection model.
- π Extensions:
- π» C Foreign Function Interfaces (FFI): Direct
Windows.hintegration for advanced, low-latency aiming techniques. - π Custom Fused CUDA Kernel: Zero-copy GPU operations for maximum efficiency and minimal overhead.
- π» C Foreign Function Interfaces (FFI): Direct
Check out Hypervision in action:
Figure 1: Hypervision detecting targets in real-time. Figure 2: Hypervision eliminating targets with precision.- π YOLOv11 Powered: Built on the robust YOLOv11 architecture for high accuracy and speed.
- π Optimized Performance: Utilizes TensorRT, kernel fusion, and vectorized operations for lightning-fast processing.
- π Easy Adaptability: No darknet or other "magical" libraries! Just pure YOLOv11 from Ultralytics. Train a different model and seamlessly integrate it into the existing script.
- πΆ All-in-One Visualization: A dedicated window displays FPS, detections, confidences, and a central aim dot for enhanced user experience.
- βοΈ Out-of-the-Box Usage: Leverage a simple YAML configuration system for quick setup and customization.
β οΈ Disclaimer:
This software is for educational and experimental purposes only. Use it only where you have explicit permission. Misuse may violate terms of service or laws. The author is not responsible for any consequences.
- Model was trained on 2x NVIDIA A100 80GB GPU for 100 epochs on a custom dataset (training time: approx. 30 min)
- Inference/Total script time - NVIDIA RTX 4060, Intel Core i5 9600KF:
Inference: 5-8ms
Total: 20-30ms
FPS: 35-40
# screen configuration
screen_width: 1920
screen_height: 1080
# neural network configuration
activation_range: 640 # <- how far from the center we want to detect
confidence_threshold: 0.2 # <- what is minimal confidence to consider detection a target
nms_threshold: 0.45 # <- threshold for non-maximum suppression
model_path: "models/trt/yolov11.engine" # <- self-explainatory
enable_aim: False # <- whether to enable autoaiming
display: True # <- whether to display separate window with detector info (can be slightly slower)
toggle_button: 'ctrl' # <- what button to use for aiming to target
mouse: 'rel' # <- mouse movement directive (support for: relative (rel) and absolute (abs))To get started with Hypervision, follow these steps:
- Obtain
CUDAandCUDNNdrivers by following NVIDIA links. - Obtain and build
OpenCVfrom source (v4.12-dev used by author), linking against CUDA library to enable CUDA processing within OpenCV. - Syncronize dependancies in UV venv:
uv sync- Check the configuration in config.yaml (you can provide your own by passing an argument to the main):
python main.py <path-to-your-config.yaml>- Run the script by
uv run main.pyTo get started with adapting Hypervision to your specific task, the following steps needed:
pip install ultralyticsNow you will have access not only to the library itself, but also to the yolo CLI.
yolo detect train data=<path-to-your-data.yaml> model=<desired-model> epochs=100 imgsz=640yolo export model=<path-to-your-best.pt> format=ONNX# hypervision/scripts/build_engine.py
# --- \\ ---
python build_engine.py --onnx ../models/onnx/yolov11.onnx --engine ../models/temp/yolov11.engineYou can also try use the following test extensions of the Hypervision if you are really curious:
- Extern C function calls: in the
./libcsection there is rewritten mouse aim function calls which utilize direct windows api.
You can build those extensions and speed the aim up or use more precise aim processing:
cd hypervision/libc/aim && python ./setup.py build_ext --inplaceNote:
When building C extension, the compiler will scream for reinterpret_casts, but no worries, everything is alright.
After that, you can use the module in the main Hypervision logic sections.
- Custom CUDA kernels: We built
custom CUDA kernelsto minimize CPU-GPU overhead and provide GPU zero-copy operations.
You can build custom cuda kernel using NVCC:
nvcc -o fusion.o -c -arch=<your-GPU-architectuse> --use_fast_math rtFusion.cuTo obtain your gpu architecture, please navigate to NVIDIA website.

