Skip to main content

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:

  • torch
  • facenet-pytorch
  • Pillow
  • opencv-python
  • numpy
  • gdown

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

deeptracer-0.1.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deeptracer-0.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file deeptracer-0.1.2.tar.gz.

File metadata

  • Download URL: deeptracer-0.1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for deeptracer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2ef71175c71cb0d1b4c0da766627adc036dbe22395bcf2358a9ceb0c61f46369
MD5 f23a7e6d80a415788d24b480434bea5f
BLAKE2b-256 1ce7401d777ae31c26c6bfa323c01800de194aa88533d6e27c975bfc899d52f1

See more details on using hashes here.

File details

Details for the file deeptracer-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: deeptracer-0.1.2-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

Hashes for deeptracer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ece73de5066afd18b436664f8ea9ce151173ed07e5f87b41deada59876332d6d
MD5 8ab8fd1012e463f6cb3c0c9fa8c15160
BLAKE2b-256 7f4a4336408c4b2c22d76ef6e582c8327374bc82560ec0754b73aee8e68c142f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page