Skip to main content

A Zero-Exposure Visual Privacy Buffer for VLMs.

Project description

PrivyLayer-Images

A Seperate Upgraded Feature from Privylayer (text based masking)

A Zero-Exposure Visual Privacy Buffer for Vision-Language Models (VLMs).

PrivyLayer is a high-performance, lightweight Python library designed to intercept, detect, and permanently mask sensitive visual data before it ever leaves your local host machine. Built for modern AI workflows, it ensures developers can leverage advanced external VLMs without compromising data sovereignty.


🚀 Features

  • Zero Data Exposure: Raw sensitive visual data never leaves your local environment.
  • Targeted Document Detection: Specialized computer vision models to identify highly sensitive identity documents like Aadhaar cards, PAN cards, and Passports.
  • Irreversible Masking: Applies permanent black-box overlays to confidential regions. Once processed, the original image cannot be reconstructed.
  • Hardware Optimized: Designed to leverage dedicated GPUs for parallel processing and real-time inference.
  • Typo-Protected Installation: Safely alias-protected on PyPI to prevent typosquatting and accidental wrong installs.

📦 Installation

PrivyLayer requires Python 3.x and a dedicated GPU environment for optimal performance.

Install the official package via pip:

pip install privylayer-img

Note: We also maintain the alias pip install privylayer-image to catch typos. Both commands will safely install the official library.


💻 Quick Start & Usage

Using PrivyLayer requires minimal code to integrate into your existing pipeline. use (privyimage) for importing

import privyimage as pi

# Define the path to your raw, sensitive image
#(supported types: .JPG , .PNG , .WEBP)

img_file_path = "example_aadhaar.jpg"

# Execute the irreversible visual mask
# This will detect the document, apply the black box, and save/return the safe image
pi.mask_img(img_file_path)

⚙️ Core Workflow

PrivyLayer operates on a strict, four-stage localized pipeline:

  1. Input: The system locally intercepts raw visual data (image uploads, document scans) prior to network transmission.
  2. Targeted Detect: The engine scans the input to isolate confidential document structures and sensitive identity layouts.
  3. Images are Irreversible: The visual sanitization process is strictly a one-way pipeline. Once masked, the original visual state cannot be reconstructed.
  4. Masks: Permanent black box overlays are applied directly onto the detected confidential information, completely obscuring the sensitive pixels before the image is sent out. The masked image is saved in your folder / server to send to the LLM

📊 Performance Benchmarks

PrivyLayer is engineered for speed and compliance, requiring zero external network calls for the sanitization process.

Hardware Configuration Latency Performance
NVIDIA T4 GPU (Baseline) 3 – 5 seconds
Higher-Tier GPUs (Enterprise) < 2 seconds

Infrastructure Impact: Minimal operational overhead. Executes fast, localized pattern matching in real-time.


🛠️ Technical Requirements

To maintain low-latency localized processing and handle real-time computer vision workloads, the host system must meet the following infrastructure criteria:

  • GPU Acceleration: Requires dedicated graphics hardware optimized for parallel image processing and computer vision workloads.
  • Minimum Requirement: An NVIDIA T4 GPU (or equivalent) to ensure reliable, real-time document detection and instant black-box masking before data transmission.

🧑‍💻 About the Developer

Engineered by Nithish, a solo developer focused on programming, AI, and data security. PrivyLayer was created as an Atmanirbhar (indigenous) open-source privacy shield to dynamically detect and mask sensitive information, ensuring strict compliance for modern software stacks.


License

This project is licensed under the MIT License.


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

privylayer_images-1.3.4.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

privylayer_images-1.3.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file privylayer_images-1.3.4.tar.gz.

File metadata

  • Download URL: privylayer_images-1.3.4.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for privylayer_images-1.3.4.tar.gz
Algorithm Hash digest
SHA256 6b5a9e1766e9109e293d7a5155d121d37c6833ef42a25c1d6745433e191ed965
MD5 4b287e43ccb0ec9d6e84e7f934cc429c
BLAKE2b-256 2615a90d9a50b2cfd51c4cd5cb9c173f86f511a2b22d736c402fbddcecdb0328

See more details on using hashes here.

File details

Details for the file privylayer_images-1.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for privylayer_images-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0543f0ddeeff4e2d49ee3efa225e09f56bc541819d5d15840b4a2c6ab5f54501
MD5 0fd0dfad8da8401efe071b5c65b076cb
BLAKE2b-256 c358682fa48421724105f9013f3ac23f2c47cae8e6135a5001db44a187f1b217

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