aditya-raj-arora/Lucid-TRACE

Lucid TRACE is a forensic video analysis tool designed to detect AI-generated content in digital evidence. It utilizes stochastic frame extraction and the Sightengine API to identify deepfakes, providing a detailed risk assessment based on both average and maximum confidence scores.

Python

2

17 commits

updated Feb 10, 2026

See the code

README

πŸ” Lucid TRACE

Technological Review of Artificial Content in Evidence

Python React FastAPI Status

Lucid TRACE is a forensic video analysis tool designed to verify the authenticity of digital evidence. It uses a FastAPI backend to extract frames and run AI detection (via Sightengine/TruthScan), and a React frontend to provide a clean, user-friendly interface for investigators.


πŸš€ Key Features

  • Full-Stack Architecture: Decoupled React frontend and Python backend for scalability.
  • Stochastic Sampling: Extracts random frames to prevent temporal overfitting.
  • Dual-Metric Analysis: Calculates both Average Confidence and Max Spike to catch subtle deepfake edits.
  • Evidence Hashing: Generates SHA-256 hashes for chain-of-custody verification.

πŸ› οΈ Installation & Setup

1. Backend (Python/FastAPI)

  1. Navigate to the backend folder:
    cd backend
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Start the Server:
    • Standard Command:
      uvicorn main:app --reload
      
    • If "uvicorn" is not recognized (Windows):
      python -m uvicorn main:app --reload
      
    The API will start at: http://127.0.0.1:8000

2. Frontend (React/Vite)

  1. Open a new terminal and navigate to the frontend folder:
    cd frontend
    
  2. Install Node dependencies:
    npm install
    
  3. Start the UI:
    npm run dev
    
    Open your browser to the link provided (usually http://localhost:5173).

πŸ“‚ Project Structure

lucid-trace/
β”œβ”€β”€ backend/                 # Python Logic
β”‚   β”œβ”€β”€ main.py              # API Entry Point
β”‚   β”œβ”€β”€ video_processor.py   # OpenCV Frame Extraction
β”‚   β”œβ”€β”€ detector.py          # AI Detection Logic
β”‚   └── requirements.txt     # Python Dependencies
└── frontend/                # React UI
    β”œβ”€β”€ src/
    β”‚   β”œβ”€β”€ App.jsx          # Main Interface
    β”‚   └── App.css          # Dark Mode Styling
    └── package.json         # Node Dependencies

aditya-raj-arora/Lucid-TRACE

Lucid TRACE is a forensic video analysis tool designed to detect AI-generated content in digital evidence. It utilizes stochastic frame extraction and the Sightengine API to identify deepfakes, providing a detailed risk assessment based on both average and maximum confidence scores.

Python

2

17 commits

updated Feb 10, 2026

See the code

README

πŸ” Lucid TRACE

Technological Review of Artificial Content in Evidence

Python React FastAPI Status

Lucid TRACE is a forensic video analysis tool designed to verify the authenticity of digital evidence. It uses a FastAPI backend to extract frames and run AI detection (via Sightengine/TruthScan), and a React frontend to provide a clean, user-friendly interface for investigators.


πŸš€ Key Features

  • Full-Stack Architecture: Decoupled React frontend and Python backend for scalability.
  • Stochastic Sampling: Extracts random frames to prevent temporal overfitting.
  • Dual-Metric Analysis: Calculates both Average Confidence and Max Spike to catch subtle deepfake edits.
  • Evidence Hashing: Generates SHA-256 hashes for chain-of-custody verification.

πŸ› οΈ Installation & Setup

1. Backend (Python/FastAPI)

  1. Navigate to the backend folder:
    cd backend
    
  2. Install dependencies:
    pip install -r requirements.txt
    
  3. Start the Server:
    • Standard Command:
      uvicorn main:app --reload
      
    • If "uvicorn" is not recognized (Windows):
      python -m uvicorn main:app --reload
      
    The API will start at: http://127.0.0.1:8000

2. Frontend (React/Vite)

  1. Open a new terminal and navigate to the frontend folder:
    cd frontend
    
  2. Install Node dependencies:
    npm install
    
  3. Start the UI:
    npm run dev
    
    Open your browser to the link provided (usually http://localhost:5173).

πŸ“‚ Project Structure

lucid-trace/
β”œβ”€β”€ backend/                 # Python Logic
β”‚   β”œβ”€β”€ main.py              # API Entry Point
β”‚   β”œβ”€β”€ video_processor.py   # OpenCV Frame Extraction
β”‚   β”œβ”€β”€ detector.py          # AI Detection Logic
β”‚   └── requirements.txt     # Python Dependencies
└── frontend/                # React UI
    β”œβ”€β”€ src/
    β”‚   β”œβ”€β”€ App.jsx          # Main Interface
    β”‚   └── App.css          # Dark Mode Styling
    └── package.json         # Node Dependencies