Skip to main content

NBIS/WSQ lib Python wrapper for Pillow

Project description

CeCILL-C Python 3.x v?.? Github action 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.

Installation

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

pip install -U wsq

To install from source code:

pip install build
python -m 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 = Image.open("my_image.wsq")

To save a WSQ images, use one of:

image.save(f,'WSQ')
# or
image.save('test.wsq')

To convert from another format:

from PIL import Image
import wsq

img = Image.open("test.png")
# Convert to grayscale image (important)
img = img.convert("L")
img.save("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.8.tar.gz (139.1 kB view details)

Uploaded Source

Built Distributions

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

wsq-0.8-cp314-cp314-win_amd64.whl (77.0 kB view details)

Uploaded CPython 3.14Windows x86-64

wsq-0.8-cp314-cp314-manylinux_2_28_x86_64.whl (306.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

wsq-0.8-cp313-cp313-win_amd64.whl (75.5 kB view details)

Uploaded CPython 3.13Windows x86-64

wsq-0.8-cp313-cp313-manylinux_2_28_x86_64.whl (300.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

wsq-0.8-cp312-cp312-win_amd64.whl (75.5 kB view details)

Uploaded CPython 3.12Windows x86-64

wsq-0.8-cp312-cp312-manylinux_2_28_x86_64.whl (300.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

wsq-0.8-cp311-cp311-win_amd64.whl (75.5 kB view details)

Uploaded CPython 3.11Windows x86-64

wsq-0.8-cp311-cp311-manylinux_2_28_x86_64.whl (300.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

wsq-0.8-cp310-cp310-win_amd64.whl (75.5 kB view details)

Uploaded CPython 3.10Windows x86-64

wsq-0.8-cp310-cp310-manylinux_2_28_x86_64.whl (300.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

Details for the file wsq-0.8.tar.gz.

File metadata

  • Download URL: wsq-0.8.tar.gz
  • Upload date:
  • Size: 139.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wsq-0.8.tar.gz
Algorithm Hash digest
SHA256 f1dd3f3827793a6841ac30dd04f1e0868043f107c281b50c0d8bbc54ea0d519a
MD5 1885c6dfc40b59e25922f12f853ef724
BLAKE2b-256 af1ff97d08f499a4c1a75418ba0489a158b1ac85f04f0efafa5c07c1977fd962

See more details on using hashes here.

File details

Details for the file wsq-0.8-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: wsq-0.8-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 77.0 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wsq-0.8-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 17269811f1afc29ccc43c50e69c0d77e22da7153e92a0a63a16f573d02c87be8
MD5 c9b5ccabbce6dfb1eec9fae70bfb9d83
BLAKE2b-256 75030f9ffe8878b9d7ada3c6b0a2a0702d5f35926a880dcaf4d282014ce55a5e

See more details on using hashes here.

File details

Details for the file wsq-0.8-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: wsq-0.8-cp314-cp314-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 306.4 kB
  • Tags: CPython 3.14, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wsq-0.8-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b7882ceede60fb5fc5c94305d7ff6b81b869790d7aec1ab9a407c6fefdf4fb36
MD5 9fd01f89ccd16c1534ca681dd053abfd
BLAKE2b-256 a0c050c69192d805a61aea3db85ab1e2c898ae0c46c0c60d15740464ef3a86ac

See more details on using hashes here.

File details

Details for the file wsq-0.8-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: wsq-0.8-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 75.5 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wsq-0.8-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ac07443a1b42927e80970de72faaaa04ed49f20267d2622c184fe7f68c64eb34
MD5 2e9e5f45e519a906c631382b4519ab47
BLAKE2b-256 f657c2b9b4ff963008712cd3261707841ae137508f24f60e365e72bd24a09fe5

See more details on using hashes here.

File details

Details for the file wsq-0.8-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: wsq-0.8-cp313-cp313-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 300.8 kB
  • Tags: CPython 3.13, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wsq-0.8-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2794ffab47c944fb7dd4ef3b8d185af9deeb413e387b3d594a20acde9c71bfda
MD5 fa456b68c18c7c2748bd5eeebe923350
BLAKE2b-256 98fbbbc52dcba4c0475dbb5f58fbeb4c9d62e4c2714d174bc417b5daaeb73b79

See more details on using hashes here.

File details

Details for the file wsq-0.8-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: wsq-0.8-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 75.5 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wsq-0.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7b2c3f8fd82de36333f793066da4d6028c02f51cabe0aa60e292e294af28c906
MD5 82fcd80fa33cd24b0dd512bb7de148f4
BLAKE2b-256 6095d8947a5bb7c876ab18185c328caf979083e82a228ec1135a3dd3317d0742

See more details on using hashes here.

File details

Details for the file wsq-0.8-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: wsq-0.8-cp312-cp312-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 300.8 kB
  • Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wsq-0.8-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2312a9662173ee4648828cecc1150623c29ec8849b517eed2f82954af72047f5
MD5 73b842fe119654c956d02e576ad996c0
BLAKE2b-256 786ba472a358f8355e95f60ff9b5d8157baf11a251f33ea7782b198c3dae5bf4

See more details on using hashes here.

File details

Details for the file wsq-0.8-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: wsq-0.8-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 75.5 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wsq-0.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7c3fd148dc1038cef56f6c452ebb5328a60182a267021ffa17f20bb8517feb48
MD5 383d41564057f550ef6eb15080bcc40a
BLAKE2b-256 de423a9b48f842fcdac66b3c04942863308255d08f7ee66342d73e665aa251e8

See more details on using hashes here.

File details

Details for the file wsq-0.8-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: wsq-0.8-cp311-cp311-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 300.6 kB
  • Tags: CPython 3.11, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wsq-0.8-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f2aa4d351990954611f9683974603a0f5d3f86826dc7a9acbb06abd5dfda68bd
MD5 67cecb9a4c51f2771bdcaccfadc0f7fb
BLAKE2b-256 cb3bc1866daeaefc01f81ba38e56e52b220fe4670ea8d31998ea8dc8bd90cec2

See more details on using hashes here.

File details

Details for the file wsq-0.8-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: wsq-0.8-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 75.5 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wsq-0.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e49be547e080e26ed5445b17b09438bf9d9fcb55e294ad285185c74eba2eba0d
MD5 ec14fa47fa0e43a67f4061c8b0ec188b
BLAKE2b-256 df2415334a7ba7c4f9f0a057b7c2a782316a0c2ef0da48c2ff5e072a13783e12

See more details on using hashes here.

File details

Details for the file wsq-0.8-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: wsq-0.8-cp310-cp310-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 300.6 kB
  • Tags: CPython 3.10, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for wsq-0.8-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4447b0ef1253acb98bc089c3001bae38c4c7b995efe4c737b082c5af4a30e3c5
MD5 3297afdbfe50720b784982fe0981e805
BLAKE2b-256 52c1687a307e312406b89827018a1a25dfc4101bcca1277c57bf128f959f4155

See more details on using hashes here.

Supported by

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