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-2.1.0.tar.gz (26.5 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-2.1.0.tar.gz.

File metadata

  • Download URL: regula.facerecognition.webclient-2.1.0.tar.gz
  • Upload date:
  • Size: 26.5 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.7

File hashes

Hashes for regula.facerecognition.webclient-2.1.0.tar.gz
Algorithm Hash digest
SHA256 6a0755bbafb6f0a3ef7542e7c4fc74c053caf821b41d0e2d8ccdfb61015a57b2
MD5 5d759e18df478df5295b7315a4fb6ea6
BLAKE2b-256 fa15691630c2dc39955b6d3f410a8eeafc1cd85cbb6fb1b8e0a7d2ed67fe1b6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: regula.facerecognition.webclient-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 50.2 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.7

File hashes

Hashes for regula.facerecognition.webclient-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a334024aa532ef64c561f73a9dc638271361aa8629c21a74102eacff2c5d11d
MD5 9eb01853f9ce13e6e7578c8c883988e4
BLAKE2b-256 db12679fe58a9a32bd920e1269c4464b348a70f94b6514d9e8684ea14d359f58

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