regula.facesdk.webclient 8.3.706.dev0__py3-none-any.whl → 8.3.707.dev0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -347,7 +347,7 @@ class MatchApi:
347
347
  ) -> MatchResponse:
348
348
  """compare faces (1:1)
349
349
 
350
- To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It's possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> Note that no more than two images of the same `type` are allowed for comparison.<br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
350
+ To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It's possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> Note that no more than two images of the same `type` are allowed for comparison.<br><br> It's also possible to perform matching by using the face captured during the liveness check as one of the comparison inputs. In this case, pass `livenessTransactionId` instead of one of the images.<br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
351
351
 
352
352
  :param match_request: (required)
353
353
  :type match_request: MatchRequest
@@ -419,7 +419,7 @@ class MatchApi:
419
419
  ) -> ApiResponse[MatchResponse]:
420
420
  """compare faces (1:1)
421
421
 
422
- To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It's possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> Note that no more than two images of the same `type` are allowed for comparison.<br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
422
+ To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It's possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> Note that no more than two images of the same `type` are allowed for comparison.<br><br> It's also possible to perform matching by using the face captured during the liveness check as one of the comparison inputs. In this case, pass `livenessTransactionId` instead of one of the images.<br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
423
423
 
424
424
  :param match_request: (required)
425
425
  :type match_request: MatchRequest
@@ -491,7 +491,7 @@ class MatchApi:
491
491
  ) -> RESTResponseType:
492
492
  """compare faces (1:1)
493
493
 
494
- To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It's possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> Note that no more than two images of the same `type` are allowed for comparison.<br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
494
+ To perform a comparison of faces in the same image or in two different images, use POST `/api/match`. It's possible to compare faces in the same image or in two different images, this is defined by the `images.type` parameter. <br><br> Note that no more than two images of the same `type` are allowed for comparison.<br><br> It's also possible to perform matching by using the face captured during the liveness check as one of the comparison inputs. In this case, pass `livenessTransactionId` instead of one of the images.<br><br> The face detection result is displayed in the `detections` field. Each face is identified by two parameters: `faceIndex` (the index number of the face) and `imageIndex` (the index number of the image on which the face is detected). So, if there are two images each of which has two faces in them, the parameters will be the following: - First face in the first image: `faceIndex: 0`, `imageIndex: 0` - Second face in the first image: `faceIndex: 1`, `imageIndex: 0` - First face of the second image: `faceIndex: 0`, `imageIndex: 1` - Second face in the second image: `faceIndex: 1`, `imageIndex: 1`
495
495
 
496
496
  :param match_request: (required)
497
497
  :type match_request: MatchRequest
@@ -12,7 +12,7 @@ from typing_extensions import Self
12
12
 
13
13
  class LivenessType(int, Enum):
14
14
  """
15
- Liveness detection can be performed in two modes: active `0` and passive `1`. [Learn more](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/liveness/#active-and-passive-modes)
15
+ Liveness detection can be performed in three modes: active `0`, passive `1`, and passive with blink `2`. [Learn more](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/usage/liveness/#active-and-passive-modes)
16
16
  """
17
17
 
18
18
  """
@@ -20,6 +20,7 @@ class LivenessType(int, Enum):
20
20
  """
21
21
  ACTIVE = 0
22
22
  PASSIVE = 1
23
+ PASSIVE_WITH_BLINK = 2
23
24
 
24
25
  @classmethod
25
26
  def from_json(cls, json_str: str) -> Self:
@@ -23,7 +23,8 @@ class MatchAndSearchRequestImagesItem(BaseModel):
23
23
  content: SkipValidation[Optional[bytearray]] = Field(alias="content", default=None, description="Base64-encoded image.")
24
24
  image_url: SkipValidation[Optional[str]] = Field(alias="imageUrl", default=None, description="Image URL.")
25
25
  type: SkipValidation[Optional[ImageSource]] = Field(alias="type", default=None)
26
- __properties: ClassVar[List[str]] = ["content", "imageUrl", "type"]
26
+ liveness_transaction_id: SkipValidation[Optional[str]] = Field(alias="livenessTransactionId", default=None, description="Identifier of the completed liveness transaction whose captured face is used as one of the comparison inputs. If this parameter is provided, it replaces one of the images in the matching request.")
27
+ __properties: ClassVar[List[str]] = ["content", "imageUrl", "type", "livenessTransactionId"]
27
28
 
28
29
  model_config = ConfigDict(
29
30
  populate_by_name=True,
@@ -80,7 +81,8 @@ class MatchAndSearchRequestImagesItem(BaseModel):
80
81
  _obj = cls.model_validate({
81
82
  "content": obj.get("content"),
82
83
  "imageUrl": obj.get("imageUrl"),
83
- "type": obj.get("type")
84
+ "type": obj.get("type"),
85
+ "livenessTransactionId": obj.get("livenessTransactionId")
84
86
  })
85
87
  return _obj
86
88
 
@@ -24,7 +24,8 @@ class MatchImage(BaseModel):
24
24
  type: SkipValidation[Optional[ImageSource]] = Field(alias="type", default=None)
25
25
  data: SkipValidation[bytearray] = Field(alias="data", description="Base64-encoded image.")
26
26
  detect_all: SkipValidation[Optional[bool]] = Field(alias="detectAll", default=None, description="Whether to detect all faces in the image. If set to `false`, only the most central face is detected.")
27
- __properties: ClassVar[List[str]] = ["index", "type", "data", "detectAll"]
27
+ liveness_transaction_id: SkipValidation[Optional[str]] = Field(alias="livenessTransactionId", default=None, description="Identifier of the completed liveness transaction whose captured face is used as one of the comparison inputs. If this parameter is provided, it replaces one of the images in the matching request.")
28
+ __properties: ClassVar[List[str]] = ["index", "type", "data", "detectAll", "livenessTransactionId"]
28
29
 
29
30
  model_config = ConfigDict(
30
31
  populate_by_name=True,
@@ -82,7 +83,8 @@ class MatchImage(BaseModel):
82
83
  "index": obj.get("index"),
83
84
  "type": obj.get("type"),
84
85
  "data": obj.get("data"),
85
- "detectAll": obj.get("detectAll") if obj.get("detectAll") is not None else False
86
+ "detectAll": obj.get("detectAll") if obj.get("detectAll") is not None else False,
87
+ "livenessTransactionId": obj.get("livenessTransactionId")
86
88
  })
87
89
  return _obj
88
90
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: regula_facesdk_webclient
3
- Version: 8.3.706.dev0
3
+ Version: 8.3.707.dev0
4
4
  Summary: Regula's FaceSDK web python client
5
5
  Home-page: https://regulaforensics.com
6
6
  Author: Regula Forensics, Inc.
@@ -24,7 +24,7 @@ regula/facesdk/webclient/gen/api/__init__.py,sha256=gnY2i-_BEnVreU1B2Dw4SNqXTN1i
24
24
  regula/facesdk/webclient/gen/api/group_api.py,sha256=mb8fm64m7MpB04q4Zzs-pOAw6neafgDyLJ8ORoKXAf4,82470
25
25
  regula/facesdk/webclient/gen/api/healthcheck_api.py,sha256=IdiaRFLYVY2qdvCYUx9HIVWJt4BE0EVMcpgXIdxLz18,22270
26
26
  regula/facesdk/webclient/gen/api/liveness20_api.py,sha256=NabQq55iKONlEin8_XZA-yT3ofopoo_7zyiPkZxxon0,27238
27
- regula/facesdk/webclient/gen/api/match_api.py,sha256=BPodqOxk4iwT7OIo-8FYTofz33nooe1Jka62MFrtqEo,43764
27
+ regula/facesdk/webclient/gen/api/match_api.py,sha256=V2U2gpL5vhiveIJV_7dE0Cxn_pJJ0fsrdmvjmgJ_XLI,44382
28
28
  regula/facesdk/webclient/gen/api/person_api.py,sha256=xKwjEGZGcIP9yZ5vxh3kbu9k6AzgqLNdpK-uB4E2TXQ,106803
29
29
  regula/facesdk/webclient/gen/api/search_api.py,sha256=UKjDm2-RC7lrbkXejrDsHlK0VWJFLDZpVTWJZxnaZfg,14260
30
30
  regula/facesdk/webclient/gen/models/__init__.py,sha256=MXSv97KC0kClBlz8hz00zUBkJ_FHh0yrXnbggst9rjE,15993
@@ -75,13 +75,13 @@ regula/facesdk/webclient/gen/models/image_fields_image.py,sha256=91BhuufdjiV39l3
75
75
  regula/facesdk/webclient/gen/models/image_page.py,sha256=x-I9BW32rqk0EhzbSg5Y0z0eBxmFgH1FBTld9_z28Ok,3207
76
76
  regula/facesdk/webclient/gen/models/image_page_items.py,sha256=ufNKog-a_bl_W9VDWPWUyeySiVOaD-eBZ-c6VWBiNBQ,2862
77
77
  regula/facesdk/webclient/gen/models/image_source.py,sha256=Un_vs8avKypBWla5r9KaWc5KYtZA_25YhJD3s47kTiY,706
78
- regula/facesdk/webclient/gen/models/liveness_type.py,sha256=l2JtUi_9ZF7LEewIXVn7BEb7o1Vmp-f0Mf_M7ui7j-Y,687
78
+ regula/facesdk/webclient/gen/models/liveness_type.py,sha256=J2yr0Mbto42biZXEu0d3GebN70uhmlu7YDw16eq4V2w,742
79
79
  regula/facesdk/webclient/gen/models/match_and_search_request.py,sha256=daeR7dXjsB5p3_r--sKYz01qaYDbCgXg-XlwhQsvKYU,4402
80
- regula/facesdk/webclient/gen/models/match_and_search_request_images_item.py,sha256=N5ym9hBXtm5jwulWBZiDYOSjrrxNz1-Z5arc_7RYNo4,2928
80
+ regula/facesdk/webclient/gen/models/match_and_search_request_images_item.py,sha256=dLqck8u0zfGJUYXhb-3CcQt1HNtrriBaftWV65-HFv0,3347
81
81
  regula/facesdk/webclient/gen/models/match_and_search_response.py,sha256=nGLrfADgPflcsZWLfytZBjnXtyvYdfPNLdujwpMDMVg,4636
82
82
  regula/facesdk/webclient/gen/models/match_and_search_response_data.py,sha256=21M-w9i1u_AkzC6tb9L5dZXcqMoie1x3exIchtksAcg,4454
83
83
  regula/facesdk/webclient/gen/models/match_and_search_response_data_detections_item.py,sha256=5dzFaFUV3QYtBmInQgFNURfedY7BniGvT6Z34Lt9KhE,3625
84
- regula/facesdk/webclient/gen/models/match_image.py,sha256=mSt2en5txGAj52lP_FN7hK87EjfPL_8wMHft7ARybl4,3282
84
+ regula/facesdk/webclient/gen/models/match_image.py,sha256=kL-elLpGqLjDKvHKXbCl-8vJCI2Lp6mjZVFULnfw8aE,3701
85
85
  regula/facesdk/webclient/gen/models/match_image_detection.py,sha256=BJo1FbwfKuVCaLrJUaLWK--ix5anC6rN8lXGlQlqFJg,3493
86
86
  regula/facesdk/webclient/gen/models/match_image_result.py,sha256=DmCV8x6PM4pke22MXBT9bQG0ZNBu2mp9hKtxLb0Tnps,4258
87
87
  regula/facesdk/webclient/gen/models/match_request.py,sha256=8DRFsmzNPq2l-nsExbV34h81ExNNI0UwgB9udh0lRU8,4167
@@ -119,7 +119,7 @@ regula/facesdk/webclient/gen/models/search_result.py,sha256=lxcCJ8EzUuwfEowZpZU7
119
119
  regula/facesdk/webclient/gen/models/transaction_info.py,sha256=XQ7-n8muZ3TxR88MyWr8pK83SG5hqF1YtrIeLxG51tE,4495
120
120
  regula/facesdk/webclient/gen/models/transaction_labels.py,sha256=A9ZDFAIjiuMNd4lbmVTtgntr4Kp2f9ntpK82cmzHAbY,2728
121
121
  regula/facesdk/webclient/gen/models/update_group.py,sha256=A6qjz_WTmJy_9xsdc4O1-Wj4LA-7EfRTJBqQM8VMV58,2658
122
- regula_facesdk_webclient-8.3.706.dev0.dist-info/METADATA,sha256=tyeQHMraks-YGDPX_jaYtDjMYnvQj6sYH1z1GNicQsc,3182
123
- regula_facesdk_webclient-8.3.706.dev0.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
124
- regula_facesdk_webclient-8.3.706.dev0.dist-info/top_level.txt,sha256=SFSSVn4j8QDivd3307s97NtpIJ8zOjiWZloAxZIClJY,7
125
- regula_facesdk_webclient-8.3.706.dev0.dist-info/RECORD,,
122
+ regula_facesdk_webclient-8.3.707.dev0.dist-info/METADATA,sha256=as0QN9xLY7Z63rDRynur1726GClgwGbLj7tQoR9LL4o,3182
123
+ regula_facesdk_webclient-8.3.707.dev0.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
124
+ regula_facesdk_webclient-8.3.707.dev0.dist-info/top_level.txt,sha256=SFSSVn4j8QDivd3307s97NtpIJ8zOjiWZloAxZIClJY,7
125
+ regula_facesdk_webclient-8.3.707.dev0.dist-info/RECORD,,