Skip to main content

NBIS/WSQ lib Python wrapper for Pillow

Project description

CeCILL-C Python 3.x v?.? Build Status (Travis CI) AppVeyor CI build status (Windows) Code Coverage Status (Codecov)

A Python library extending Pillow to support WSQ images.

This library is a simple wrapper on the NIST Biometric Image Software (NBIS) version 5.0.0 made available by the National Institute of Standards and Technology (NIST).

For the convenience of the build, the source code of NBIS (or to be more accurate, the part related to WSQ) is included in this repository. Apart from minor changes to make possible the build (like removal of some include directives) the NBIS source code is not changed.


wsq is published on PyPI and can be installed from there:

pip install -U wsq

To install from source code:

python build

The Python development library and C compiler must be available. For instance, for Ubuntu:

sudo apt install python3-dev

Quick Start

To open a WSQ image:

from PIL import Image
import wsq

img ="my_image.wsq")

To save a WSQ images, use one of:,'WSQ')
# or'test.wsq')

To convert from another format:

from PIL import Image
import wsq

img ="test.png")
# Convert to grayscale image (important)
img = img.convert("L")"test.wsq")

Project details

Download files

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

Source Distribution

wsq-0.5.tar.gz (139.2 kB view hashes)

Uploaded source

Built Distributions

wsq-0.5-cp310-cp310-win_amd64.whl (50.9 kB view hashes)

Uploaded cp310

wsq-0.5-cp39-cp39-win_amd64.whl (50.9 kB view hashes)

Uploaded cp39

wsq-0.5-cp38-cp38-win_amd64.whl (50.9 kB view hashes)

Uploaded cp38

wsq-0.5-cp37-cp37m-win_amd64.whl (50.9 kB view hashes)

Uploaded cp37

wsq-0.5-cp36-cp36m-win_amd64.whl (53.7 kB view hashes)

Uploaded cp36

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page