Deep Fake Detection Tool
Welcome to the Deep Fake Detection Tool! This project aims to provide a robust and user-friendly web application for detecting deepfake images. Leveraging the power of deep learning, our tool helps users identify whether an image is real or a deepfake.
User Authentication: Secure login and signup pages to manage user access. Deep Fake Detection: Upload an image to determine whether it is real or a deepfake using our trained model. Face Recognition Tool: An additional tool to recognize faces in images. History Logging: Keep track of all scans performed with timestamps and results. Intuitive UI: A clean and modern interface for seamless user experience.
- Clone the repository:
$ git clone https://github.com/minura99/deep-fake-detection-tool.git
-
cd deepfake-detection-tool
- Create and activate a virtual environment:
$ python -m venv venv $ venv\Scripts\activate # On Windows Users $ source venv/bin/activate # On Linux Users
- Install the required packages:
$ pip install -r requirements.txt
- Collect the Dataset
- Train the model using dataset
$ python train_model.py "Dataset Image path" "Training model Directory"
- Run the Flask application:
$ flask run # Open your web browser and navigate to http://127.0.0.1:5000/.
-
Sign Up: Click the signup and Create a new account
-
Login: Log in using your credentials.
-
Deep Fake Detection: Navigate to the Deep Fake Detection Tool
-
upload an image, and click "Scan" to get the prediction.
-
History: View your scan history by clicking the "History" button.
- deepfake-detection-tool/
│ deepfake-detection-tool/ ├── app.py # Main application script ├── dfscanner.py # Deep fake detection logic ├── setup_db.py # Script to initialize the database ├── static/ │ ├── dfstyle.css # CSS for the deep fake detection page │ ├── index_style.css # CSS for the index page │ ├── style.css # CSS for the login and signup pages ├── templates/ │ ├── base.html # Base template │ ├── index.html # Index page │ ├── login.html # Login page │ ├── signup.html # Signup page │ ├── dfscanner.html # Deep fake detection page │ ├── history.html # History page └── requirements.txt └── README.md # Project introduction and setup instructions
We welcome contributions! Please fork the repository and submit a pull request for any features, bug fixes, or improvements.
This project is licensed under the MIT License. See the LICENSE file for details.
Thank you to the contributors of TensorFlow, Keras, Flask, and OpenCV for providing the tools and libraries that make this project possible.