Skip to main content

SafeLicensing

License plate detection and chaotic-map encryption for images and videos.

SafeLicensing detects vehicle license plates using a bundled YOLOv8 model and encrypts only the sensitive regions using a dual-pass chaotic XOR scheme, leaving the rest of the image or video completely intact.

How it works

Input image / video frame
|
v
YOLOv8 detection -> bounding boxes around every license plate
|
v
Chaotic XOR -> each plate region encrypted in-place
|
v
Output -> plates unreadable, everything else untouched
  1. Detect: a fine-tuned YOLOv8 model locates every license plate
  2. Encrypt: each detected region is scrambled with a logistic-map dual-pass XOR cipher

The same seed always produces the same output, making the process deterministic and auditable.

Key capabilities

CapabilityDetail
One-call APIprotect_image() and protect_video() end-to-end
Bundled model6 MB best.pt ships with the package, no download needed
Video supportFrame-by-frame with original audio preservation
Streamlit UIBrowser interface launched via safelicensing command
Research APIlogistic_map, generate_key, shuffle_pixels exposed
Python 3.8+Fully typed, runs on Windows / macOS / Linux

When to use SafeLicensing

  • Privacy-preserving datasets: anonymise vehicle footage before sharing
  • Regulatory compliance: GDPR/CCPA footage redaction pipelines
  • Encryption research: study chaotic-map schemes on real-world imagery
  • Surveillance footage: encrypt plates before storage or sharing

Research background

SafeLicensing implements the scheme published at IEEE ECCE 2024:

Vehicle Number Plate Detection and Encryption in Digital Images Using YOLOv8 and Chaotic-Based Encryption Scheme Md. Fahim Bin Amin & Israt Jahan Khan, IEEE 2024

View on IEEE Xplore


Ready to get started? Head to Installation