Skip to main content

Advanced image fingerprinting and scam detection library

Project description

Xcedl-Image-Detection

A professional-grade Python library implementing advanced image fingerprinting and similarity detection algorithms, utilizing perceptual hashing techniques and multi-signal verification for robust content analysis and moderation.

Key Features

  • Enterprise-Level Fingerprinting: Simulates Discord's compression pipeline for consistent hash generation
  • Multi-Signal Verification: Combines perceptual hashing, wavelet hashing, difference hashing, and color histogram analysis
  • Production-Ready: Optimized for high-performance content moderation and duplicate detection
  • Configurable Parameters: Tunable thresholds for accuracy optimization across different use cases

Installation

pip install Xcedl-Image-Detection

For development and testing:

pip install Xcedl-Image-Detection[dev]

Usage

from PIL import Image
from xcedl_image_detection import MilitaryGradeFingerprinter, find_matching_scam

# Generate comprehensive image fingerprint
img = Image.open('target_image.jpg')
fingerprint = MilitaryGradeFingerprinter.generate_nuclear_fingerprint(img)

# Perform database matching against known content
database_entries = load_content_database()  # Your database loading function
match = find_matching_scam(fingerprint, database_entries)

if match:
    print(f"Content match detected: {match['reason']}")

API Reference

MilitaryGradeFingerprinter

  • nuclear_normalize(img): Normalize image through compression simulation pipeline
  • generate_nuclear_fingerprint(img): Generate complete multi-dimensional fingerprint

Core Functions

  • verify_multisignal(test_fp, db_fp): Execute multi-signal similarity verification
  • find_matching_scam(test_fp, database): Perform optimized database search and matching

Technical Specifications

  • Dependencies: Pillow, imagehash, numpy
  • Python Support: 3.8+
  • License: MIT
  • Architecture: Modular design for enterprise integration

Performance Characteristics

  • Optimized for high-throughput content processing
  • Memory-efficient fingerprint generation
  • Configurable accuracy vs. performance trade-offs
  • Comprehensive error handling and logging

Use Cases

  • Content moderation and spam detection
  • Duplicate image identification
  • Digital asset management
  • Copyright infringement detection
  • Social media content analysis

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

xcedl_image_detection-0.1.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

xcedl_image_detection-0.1.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file xcedl_image_detection-0.1.1.tar.gz.

File metadata

  • Download URL: xcedl_image_detection-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for xcedl_image_detection-0.1.1.tar.gz
Algorithm Hash digest
SHA256 86c01b799bfbf799cacd3442be7ace026f28a096fc498f9ae9f244870548c9a0
MD5 1dd39306f35289cb3b5123bda3aa945d
BLAKE2b-256 8c33693033525d123adb951ff6aeb912feefcee22c78a719c263ec773f8510ab

See more details on using hashes here.

File details

Details for the file xcedl_image_detection-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for xcedl_image_detection-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0f24cb578a55b8dd86139019965b831e80708741d08aeab74d8fadb85a213de
MD5 6037f42b12d5ae73e4e021db56cdd9a7
BLAKE2b-256 fc3f61856f0ad02d909600f72fc1c78323452cf8cfc398f364a13c89a1627488

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