Skip to main content

This is a work in progress and sudden, dramatic changes are expected!

FreeLens tag generator

FreeLens

This project provides a reference implementation of NaviLens and ddTag for educational or personal use. Commercial use is at your own risk as NaviLens and ddTag may attempt to enforce their IP.

Documentation

Quickstart

Installation

pip install freelens

Generating Tags

Freelens generates deployed-CRC tags only at the independently verified 5×5 size.

from freelens import Tag

message = "101010101011000000001011"

tag = Tag.from_message(message, n=5)

tag_img = tag.to_image()

tag_img.save("tag.png")

Detecting Tags

from freelens import detect_tags
from PIL import Image

img = Image.open("dataset/positives/0001.jpg")

tags_list = detect_tags(
    img,
    n=5,
    validate_crc=True,
    require_valid_crc=True,
)

for tag in tags_list:
    print(tag.message)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freelens-0.0.3.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

freelens-0.0.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file freelens-0.0.3.tar.gz.

File metadata

  • Download URL: freelens-0.0.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for freelens-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1a21275b63c3a4b661524080302ccd45d475ee6e980237a3fa68f967b7c65a8b
MD5 4b02ce73e3bfbd665cc20e7b646b7fa8
BLAKE2b-256 153396bee3b2292167a3dbe417757cd15c037ee950ed8eac6a5bbacadcc6d259

See more details on using hashes here.

Provenance

The following attestation bundles were made for freelens-0.0.3.tar.gz:

Publisher: release.yml on sjtrny/freelens

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file freelens-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: freelens-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for freelens-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 689ee5320a8298cb03fd309228ce1160dce7b136fa79a01277b6c2ab192ab329
MD5 707c865ff4e8067103d67f965e1ec6dd
BLAKE2b-256 f77fc8059dd53f6b570b320d38f520cfbdfb01ecc8648959b77941da2fc077ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for freelens-0.0.3-py3-none-any.whl:

Publisher: release.yml on sjtrny/freelens

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.0.5

2 files

0.0.4

2 files

This release

0.0.3 This release

2 files

0.0.2

2 files

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