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 🚀
- 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.
- Framework: Next.js (React-based)
- Styling: Tailwind CSS and shadcn
- Language: TypeScript
- Framework: FastAPI
- Language: Python
- API Integration: The backend is used for image analysis and is integrated with the frontend via
/api/predict/route.ts
.
- Upload an Image: Drag and drop or select an image to analyze.
- 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.
- Results: The tool provides a detailed report on whether the image is authentic or manipulated.
- Node.js or Bun with their package manager installed.
- Python 3.10.13 installed.
- Uvicorn for running the FastAPI server.
-
Clone the repository:
git clone https://github.com/ankittchaurasia/fakeimagedetector.git cd fakeimagedetector
-
Install dependencies:
npm install
-
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
andTURNSTILE_SECRET_KEY
are testing keys provided by Cloudflare Turnstile. - Replace
BACKEND_URL
with the local URL of your FastAPI server.
- The
-
Start the development server:
npm run dev
- Navigate to the
/fastapi
folder:cd fastapi
- Install dependencies:
pip install -r requirements.txt
- Start the FastAPI server:
uvicorn main:app --reload
- Ensure the backend URL matches the
BACKEND_URL
in your.env.local
file.
- Open your browser and navigate to
http://localhost:3000
to access the frontend. - The backend will be running at
http://localhost:8000
.
- Deploy the FastAPI backend to platforms like AWS, Google Cloud, or Heroku.
- In production, replace the testing keys with your actual Cloudflare Turnstile keys to prevent abuse.
This project is licensed under the MIT License. See the LICENSE file for details.
- Inspired by tools like FotoForensics.
- Built with love by Ankit Chaurasiya. ❤️
🧠 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.