Skip to content

White-Devil04/PlayPulseAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Valorant Gameplay Analyzer

Python Node.js YOLOv8 OpenCV

A computer vision-based tool for analyzing Valorant gameplay videos, focusing on kill feed detection and weapon tracking using YOLO models.

โœจ Core Features

๐ŸŽฏ Kill Feed Analysis

  • ๐Ÿ” Detects and parses kill events from gameplay footage
  • ๐Ÿ‘ฅ Tracks killer, victim, weapon used, and special events (headshots, wallbangs)
  • ๐Ÿ“Š Generates detailed scoreboard statistics
  • ๐ŸŽจ Supports team color detection and character identification

๐Ÿ”ซ Weapon Tracking

  • ๐Ÿ“ˆ Tracks weapon usage throughout the game
  • ๐ŸŽฏ Identifies 19 different weapons including:
    • ๐Ÿน Primary weapons (Vandal, Phantom, Operator, etc.)
    • ๐Ÿ”ซ Secondary weapons (Classic, Shorty, Sheriff, etc.)
    • โš”๏ธ Melee weapons
  • ๐Ÿ“Š Generates weapon usage statistics and patterns

๐Ÿ› ๏ธ Technical Implementation

๐Ÿ”ง Backend (Python)

  • Computer Vision: OpenCV for video processing
  • Object Detection: YOLO models for:
    • Kill feed detection
    • Weapon identification
    • Character recognition
  • Data Processing:
    • Kill event parsing
    • Weapon tracking
    • Scoreboard generation
  • API: Flask server for video upload and analysis

๐ŸŽจ Frontend (Next.js)

  • Video upload interface
  • Results visualization
  • Real-time processing status

๐Ÿ“ Project Structure

โ”œโ”€โ”€ server/
โ”‚   โ”œโ”€โ”€ models/            # YOLO model files
โ”‚   โ”œโ”€โ”€ killlfeed.py      # Kill feed detection and parsing
โ”‚   โ”œโ”€โ”€ weapon_tracker.py # Weapon usage tracking
โ”‚   โ”œโ”€โ”€ color_detection.py # Team color detection
โ”‚   โ”œโ”€โ”€ constants.py      # Game constants and mappings
โ”‚   โ””โ”€โ”€ app.py           # Flask API server
โ”‚
โ””โ”€โ”€ client/
    โ”œโ”€โ”€ app/             # Next.js application
    โ”œโ”€โ”€ lib/             # Utility functions
    โ””โ”€โ”€ public/          # Static assets

โš™๏ธ Setup

  1. Install Dependencies

    # Backend
    cd server
    pip install -r requirements.txt
    
    # Frontend
    cd client
    npm install
  2. Configure Models

    • Place YOLO model files in server/models/
    • Ensure correct model paths in config.py
  3. Start Servers

    # Backend
    python app.py
    
    # Frontend
    npm run dev

๐Ÿ“ Usage

  1. Upload a Valorant gameplay video through the web interface
  2. The system will:
    • Process the video frame by frame
    • Detect and parse kill events
    • Track weapon usage
    • Generate statistics
  3. View the analysis results including:
    • Kill feed events
    • Weapon usage patterns
    • Player statistics

๐Ÿ“‹ Requirements

  • Python 3.8+
  • Node.js 18+
  • FFmpeg
  • CUDA-capable GPU (recommended for faster processing)
  • YOLO model files for:
    • Kill feed detection
    • Weapon identification
    • Character recognition

๐Ÿ’ป Development

The project uses:

  • YOLOv8 for object detection
  • OpenCV for video processing
  • Flask for API server
  • Next.js for frontend
  • TypeScript for type safety

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published