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-3.0.0b0.tar.gz (26.8 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-3.0.0b0.tar.gz.

File metadata

  • Download URL: regula.facerecognition.webclient-3.0.0b0.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.8

File hashes

Hashes for regula.facerecognition.webclient-3.0.0b0.tar.gz
Algorithm Hash digest
SHA256 b3e4f631af9a36f01e9dec01e562914b37fee6ab5337a4cfa02de6ec139c9164
MD5 fe18adfd8772c3c01ba73ba37a7a01f0
BLAKE2b-256 d696c83cd1d6a765bce312fc56e294e3cacc79abdec1d4733fb1faf947757a1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: regula.facerecognition.webclient-3.0.0b0-py3-none-any.whl
  • Upload date:
  • Size: 50.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.8

File hashes

Hashes for regula.facerecognition.webclient-3.0.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 d04db245bd8f5d9968828883d9a917ab59a0d1335bfc9e932fdbeaffd9a229fc
MD5 c23315c5af5a0d8de80fc153b7afb0c6
BLAKE2b-256 5c135236ed4b61a6e379869beba87a8a24467ea9115f753fa2392532d549ed89

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