luxcem / vizhash

Python Visual Hash, generate a visual random image associated with a string.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vizhash

Python Visual Hash, calculate a visual random image associated with a string.

Install

Vizhash is available for python >= 3.2

Build Status codecov PyPI version

pip install vizhash

How it works ?

It uses a maze generation algorithm, at each steps it changes the color of the block with a slightly random change from the previous block.

The idea was to provide a beautiful (?) unique image, I can’t guarantee the security (in terms of collisions) of the function.

Usage

usage: vizhash.py [-h] [-s SEED] [-n N] [-S SIZE] [-f FILENAME]

optional arguments:
  -h, --help            show this help message and exit
  -s SEED, --seed SEED  String to use as a seed
  -n N                  Number of blocks (default : 16)
  -S SIZE, --size SIZE  Block size (default :16)
  -f FILENAME, --filename Output filename, by default will show the image

Examples

truc-13 truc-34 truc-32 truc-26 truc-16 truc-48

Licence

VizHash is distributed under the terms of the LGPL-3.0.

About

Python Visual Hash, generate a visual random image associated with a string.

License:GNU Lesser General Public License v3.0


Languages

Language:Python 100.0%