Skip to main content

Python SDK for the YooniK BiometricInThings API.

Project description

https://yk-website-images.s3.eu-west-1.amazonaws.com/LogoV4_TRANSPARENT.png

YooniK BiometricInThings API: Python SDK & Sample

PyPi Version License

This repository contains the Python Module of the YooniK BiT API, an offering within YooniK Services

Getting started

Installing from the source code:

python setup.py install

Use it:

Make sure you have added the environment key-values (YK_BIT_BASE_URL and YK_BIT_X_API_KEY). Machine restart could be required.

from os import getenv
import yk_bit as YKB


# BiometricInThings API Environment Variables
EV_BASE_URL = getenv('YK_BIT_BASE_URL')
EV_API_KEY = getenv('YK_BIT_X_API_KEY')

YKB.BaseUrl.set(EV_BASE_URL)
YKB.Key.set(EV_API_KEY)

# Verifies the camera availability status
if YKB.bit.status() == YKB.BiTStatus.Available:
    
    captured = YKB.capture(capture_timeout=10, anti_spoofing=True, live_quality_analysis=True)
    print(captured)
    
    verified = YKB.verify(reference_image=captured.image, capture_time_out=10, matching_score_threshold=0.8)
    print(verified)
    
    verified_images = YKB.verify_images(probe_image=verified.verified_image, reference_image=captured.image, matching_score_threshold=0.8)
    print(verified_images)

If you're interested in using YooniK.BiometricInThings API for identification purposes, please contact us.

Running the sample

A sample python script is also provided in 'sample' folder.

Run:

python run_bit_sample.py

YooniK BiT API Details

For a complete specification of our BiT API please check the swagger file.

Contact & Support

For more information and trial licenses please contact us or join us at our discord community.

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

yk_bit-1.1.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

yk_bit-1.1.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file yk_bit-1.1.1.tar.gz.

File metadata

  • Download URL: yk_bit-1.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for yk_bit-1.1.1.tar.gz
Algorithm Hash digest
SHA256 a4da24e955b2b60d25cb88843cbc893447ba22fbbdb1074f26dbf37074afa705
MD5 8a2845f61ba2550a0eed1b55d35f2876
BLAKE2b-256 cb02478406f9920a10191cf08cd7aaf4f49308112b3e321ccb8af0111c852b7a

See more details on using hashes here.

File details

Details for the file yk_bit-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: yk_bit-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for yk_bit-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f0919d607f6d0c0e458b4b45be35a6c82c27373c82f17c5e532c068091da4de
MD5 34e65d7557188d50a91ca25ede697586
BLAKE2b-256 84ca6bcba724cf26b12162a4c5bc9cd44da520574c2b7e67acd0ba141fe9e0d4

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