A powerful tool for detecting and analyzing deepfake images and videos.
Project description
DeepTracer
DeepTracer is a powerful Python tool designed to detect and analyze deepfake images and videos. Utilizing state-of-the-art deep learning techniques, it provides reliable predictions to identify manipulated media.
Installation
You can install DeepTracer using pip:
pip install deeptracer
Usage
here's how you can use the deeptracer package to detect deepfakes in images and videos.
Import the DeepFakeDetector
To begin using DeepTracer, simply import the DeepFakeDetector class:
from deeptracer import DeepFakeDetector
Image Prediction
You can detect whether an image is a deepfake using the predict_image method. Here's an example:
detector = DeepFakeDetector()
image_result = detector.predict_image('path\image.jpg')
print(image_result)
Video Prediction
Similarly, you can analyze videos for deepfake detection using the predict_video method:
detector = DeepFakeDetector()
video_result = detector.predict_video('path\video.mp4')
print(video_result)
Expected Output
The output of both predict_image and predict_video methods will be in a format that indicates whether the media is likely to be real or fake, along with a confidence score. For example:
{
"label": "fake", # or "real"
"confidence": 0.95 # Confidence score in percentage
}
Requirements
The following dependencies are required and automatically installed when using the package:
torchfacenet-pytorchPillowopencv-pythonnumpygdown
These libraries are critical for the deep learning models and image/video processing.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Author
Developed by Vishwa. For any inquiries or suggestions, feel free to reach out at jvishu06@gmail.com.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deeptracer-0.1.3.tar.gz.
File metadata
- Download URL: deeptracer-0.1.3.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e45599b7ab5bd31a5656345b58b2a389e81ff6aed844f7ac76035cd862a4bda4
|
|
| MD5 |
ceab3dc1d81ac9da3d198644cec251a9
|
|
| BLAKE2b-256 |
8394f06bd1e87981e16fd7d2e5d713abeaf13e127f92f5317b1fc419e456f7a3
|
File details
Details for the file deeptracer-0.1.3-py3-none-any.whl.
File metadata
- Download URL: deeptracer-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
892905852d11273c6f7c33654a65d2b1879b644b185effda77acc9af15653710
|
|
| MD5 |
ba3bd9d97780c7e8aadcd1e5b4b2f113
|
|
| BLAKE2b-256 |
1949020a9f65c6e3e0a602a39a5602af52423fb6a162f89e4310fc853dddee6c
|