Skip to main content
v1.0.3Apache-2.0Python 3.8+IEEE ECCE 2024

SafeLicensing

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

quickstart.py
# install from PyPI
$ pip install safelicensing

import safelicensing as sl
from PIL import Image

model = sl.load_model()   # bundled 6 MB model
image = Image.open("car.jpg")

result = sl.protect_image(image, seed=0.42, model=model)
result.encrypted.save("protected.jpg")
6 MBBundled Model
YOLOv8Detection
Dual-PassEncryption
Apache-2.0License

Everything you need

From quick one-liners to deep research-grade control

🎯

One-Call API

protect_image() and protect_video() handle detection and encryption end-to-end in a single function call.

🤖

Bundled YOLOv8 Model

6 MB best.pt weights ship with the package — no separate download needed, works offline immediately.

🔐

Chaotic Encryption

Dual-pass XOR scheme using the logistic map at r=3.9. Deterministic, auditable, and seed-reproducible.

🎬

Video Support

Frame-by-frame license plate detection and encryption with original audio preservation via MoviePy.

🖥️

Streamlit UI

Launch a full browser interface with a single command. Upload, tune the seed, and download results.

🔬

Research API

Low-level building blocks exposed for research: logistic_map, generate_key, shuffle_pixels, and more.

Start in 30 seconds

Install from PyPI and protect your first image

$pip install safelicensing