Skip to main content

Regula's Face Recognition python client

Project description

Regula Face Recognition web API Python 3.5+ client

OpenAPI documentation live

Face recognition as easy as reading two bytes.

If you have any problems with or questions about this client, please contact us through a GitHub issue. You are invited to contribute new features, fixes, or updates, large or small; We are always thrilled to receive pull requests, and do our best to process them as fast as we can. See dev guide

Install package

regula.facerecognition.webclient is on the Python Package Index (PyPI):

pip install regula.facerecognition.webclient

Or using pipenv

pipenv install regula.facerecognition.webclient

Example

Performing request:

from regula.facerecognition.webclient import *

with open("face1.jpg", "rb") as f:
    face_1_bytes = f.read()

with open("face2.jpg", "rb") as f:
    face_2_bytes = f.read()


with MatchingApi(host="http://0.0.0.0:41101/api") as api:
    images = [
        CompareImage(index=1, data=face_1_bytes, type=ImageSource.LIVE),
        CompareImage(index=2, data=face_1_bytes, type=ImageSource.DOCUMENT_RFID),
        CompareImage(index=3, data=face_2_bytes)
    ]
    compare_request = CompareRequest(images=images)
    compare_response = api.compare(compare_request)

    detect_request = DetectRequest(face_1_bytes)
    detect_response = api.detect(detect_request)

You can find more detailed guide and run this sample in example folder.

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

regula.facerecognition.webclient-1.3.0b0.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file regula.facerecognition.webclient-1.3.0b0.tar.gz.

File metadata

  • Download URL: regula.facerecognition.webclient-1.3.0b0.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.5

File hashes

Hashes for regula.facerecognition.webclient-1.3.0b0.tar.gz
Algorithm Hash digest
SHA256 04bba0915ac2cd29ed647dd110dd1ff63321634394f174ac32cf4c70cac44d77
MD5 54f3699b6ed1304c283f8c813445cd9d
BLAKE2b-256 405c350cccc36c0a4a3c4dde63927c46d31f3e5d380e7f775d50856a915e977a

See more details on using hashes here.

File details

Details for the file regula.facerecognition.webclient-1.3.0b0-py3-none-any.whl.

File metadata

  • Download URL: regula.facerecognition.webclient-1.3.0b0-py3-none-any.whl
  • Upload date:
  • Size: 53.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.5

File hashes

Hashes for regula.facerecognition.webclient-1.3.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 6dff8f1f343443c2c5ada84776fa7e42509aa1fe663ee845d697380c0710a236
MD5 96b364a45d46f1e6350c69cb0cbbc8c1
BLAKE2b-256 41b053ef5549628c0feaaac2193c16c01dc0c167d9e0d1855d9bfe80f8c4d277

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