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.0.0.tar.gz (25.1 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.0.0.tar.gz.

File metadata

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

File hashes

Hashes for regula.facerecognition.webclient-2.0.0.tar.gz
Algorithm Hash digest
SHA256 04ed1d50bb9839e8abe28f05b23e6cea44754beeffbb0ec1760471e4f08f39ff
MD5 e9a448bf992775c2bf34a4a690c792a7
BLAKE2b-256 491408bb8cc66b89387a7daaac5f270693071f79d359dd3b7a859520b9a98707

See more details on using hashes here.

File details

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

File metadata

  • Download URL: regula.facerecognition.webclient-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 46.2 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/51.0.0 requests-toolbelt/0.9.1 tqdm/4.50.1 CPython/3.8.6

File hashes

Hashes for regula.facerecognition.webclient-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 629ace1909b001417e7baad1ad6bd8ca91f67b50efa9c705d138184302071935
MD5 bc9504fcb25fa11636a64cdd69a3214e
BLAKE2b-256 037810f7e61658a6814dc22bc2d95b4c8994a1e59cc7260c1a655de0b12069ac

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