Skip to content

ankittchaurasia/fakeimagedetector

Repository files navigation

Fake Image Detector Online 🖼️

Fake Image Detector Online is a powerful tool designed to help users identify forged, tampered, or photoshopped images with industry-leading accuracy. The project combines a modern Next.js frontend with a FastAPI backend to deliver a seamless and efficient image analysis experience.

Demo -> Fake Image Detector 🚀

Features

  • Lightning Fast Detection: Results in milliseconds with an optimized detection engine ⚡.
  • Highly Accurate: 99.7% accuracy in detecting photo manipulation and forgeries.
  • Easy to Use: Drag & drop interface with detailed analysis reports.
  • Privacy Focused: Images are analyzed privately and never stored on servers 🔒.
  • Completely Free: No account creation or hidden fees.

Tech Stack

Frontend

Backend

  • Framework: FastAPI
  • Language: Python
  • API Integration: The backend is used for image analysis and is integrated with the frontend via /api/predict/route.ts.

How It Works

  1. Upload an Image: Drag and drop or select an image to analyze.
  2. Analysis: The backend processes the image using advanced detection techniques:
    • Pattern Analysis: Detects unnatural textures, inconsistent lighting, and peculiar artifacts.
    • Metadata Inspection: Extracts and analyzes EXIF data for signs of manipulation.
    • Noise Analysis: Identifies noise patterns that differ from authentic photos.
  3. Results: The tool provides a detailed report on whether the image is authentic or manipulated.

Running the Project Locally

Prerequisites

  • Node.js or Bun with their package manager installed.
  • Python 3.10.13 installed.
  • Uvicorn for running the FastAPI server.

Frontend Setup

  1. Clone the repository:

    git clone https://github.com/ankittchaurasia/fakeimagedetector.git
    cd fakeimagedetector
  2. Install dependencies:

    npm install
  3. Add a .env.local file with the following content:

    NEXT_PUBLIC_TURNSTILE_SITE_KEY=1x00000000000000000000AA
    NEXT_PUBLIC_TURNSTILE_SECRET_KEY=1x00000000000000000000BB
    BACKEND_URL=http://localhost:8000
    • The TURNSTILE_SITE_KEY and TURNSTILE_SECRET_KEY are testing keys provided by Cloudflare Turnstile.
    • Replace BACKEND_URL with the local URL of your FastAPI server.
  4. Start the development server:

    npm run dev

Backend Setup

  1. Navigate to the /fastapi folder:
    cd fastapi
  2. Install dependencies:
    pip install -r requirements.txt
  3. Start the FastAPI server:
    uvicorn main:app --reload
  4. Ensure the backend URL matches the BACKEND_URL in your .env.local file.

Access the Application

  • Open your browser and navigate to http://localhost:3000 to access the frontend.
  • The backend will be running at http://localhost:8000.

Deployment

Frontend

  • Deploy the Next.js application to platforms like Vercel or Netlify.

Backend

Turnstile Integration

  • In production, replace the testing keys with your actual Cloudflare Turnstile keys to prevent abuse.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments


🧠 This README was generated with the help of AI. If you notice any errors or have suggestions, feel free to open an issue or contact me.

Releases

No releases published

Packages

No packages published