Python SDK for the YooniK BiometricInThings API.
Project description
YooniK BiometricInThings API: Python SDK & Sample
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
Built Distribution
File details
Details for the file yk_bit-1.1.0.tar.gz
.
File metadata
- Download URL: yk_bit-1.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4ffb3971b3ee1a839bc2f4249b730788f61a65a902a438e27b8b6aebdf313d8 |
|
MD5 | b412fe640edf7143007594ad8666a34d |
|
BLAKE2b-256 | e78d33bd6bcf643e18b88175b6cf940cb0d3d8f2da40b87f1dc3680e7d61974c |
File details
Details for the file yk_bit-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: yk_bit-1.1.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4ae7176cecbcf7ecbeb7e67b6028d91e4553e0f75a1ca6e594aee72ca34854d |
|
MD5 | ff8e4bedd439e4947953df09c5cbc167 |
|
BLAKE2b-256 | cf5fcd7ef02e9743d97792d53b5f3fe832ba8a081812c4d02a0f36e87ea000f5 |