Skip to main content

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-images

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) 2.5 – 4 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.


Metadata

Release files for privylayer-images 1.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for privylayer-images 1.3.5
File Size Uploaded Provenance Actions
privylayer_images-1.3.5.tar.gz 4.9 kB Without provenance Details for privylayer_images-1.3.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for privylayer-images 1.3.5
File Interpreter ABI Platform Actions
privylayer_images-1.3.5-py3-none-any.whl Python 3 none any Details for privylayer_images-1.3.5-py3-none-any.whl

Total release size: 10.2 kB

Release files / privylayer_images-1.3.5.tar.gz

Download URL privylayer_images-1.3.5.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b96e4178ae58abf43943a3f86622e5eed2b9a8d0db3f82b95ca113b4b5a0306b
BLAKE2b-256 checksum
How to use checksums
7fe3c85326be84d71220cf18c0257685229c5c804c2c5f5bdec5c7ce85c0e10a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / privylayer_images-1.3.5-py3-none-any.whl

Download URL privylayer_images-1.3.5-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6fb9344773c0669a8f7787faed24c55e80c4aa61e8f86893d2dd2155225c29a
BLAKE2b-256 checksum
How to use checksums
b17d0f395173210555ab2be2013b91e6774f6ee9d427aebef0de981361c15f29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for privylayer-images 1.3.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page