LivenessResponseBody Class
The response body of detect liveness API call.
- Inheritance
-
azure.ai.vision.face._model_base.ModelLivenessResponseBody
Constructor
LivenessResponseBody(*args: Any, **kwargs: Any)
Variables
Name | Description |
---|---|
liveness_decision
|
The liveness classification for the target face. Known values are: "uncertain", "realface", and "spoofface". |
target
|
Specific targets used for liveness classification. |
model_version_used
|
str or
LivenessModel
The model version used for liveness classification. Known values are: "2020-02-15-preview.01", "2021-11-12-preview.03", "2022-10-15-preview.04", and "2023-03-02-preview.05". |
verify_result
|
The face verification output. Only available when the request is liveness with verify. |
Methods
as_dict |
Return a dict that can be JSONify using json.dump. |
clear | |
copy | |
get | |
items | |
keys | |
pop | |
popitem | |
setdefault | |
update | |
values |
as_dict
Return a dict that can be JSONify using json.dump.
as_dict(*, exclude_readonly: bool = False) -> Dict[str, Any]
Keyword-Only Parameters
Name | Description |
---|---|
exclude_readonly
|
Whether to remove the readonly properties. |
Returns
Type | Description |
---|---|
A dict JSON compatible object |
clear
clear() -> None
Keyword-Only Parameters
Name | Description |
---|---|
exclude_readonly
|
Whether to remove the readonly properties. |
copy
copy() -> Model
Keyword-Only Parameters
Name | Description |
---|---|
exclude_readonly
|
Whether to remove the readonly properties. |
get
get(key: str, default: Any = None) -> Any
Parameters
Name | Description |
---|---|
key
Required
|
|
default
|
Default value: None
|
Keyword-Only Parameters
Name | Description |
---|---|
exclude_readonly
|
Whether to remove the readonly properties. |
items
items() -> ItemsView[str, Any]
Keyword-Only Parameters
Name | Description |
---|---|
exclude_readonly
|
Whether to remove the readonly properties. |
keys
keys() -> KeysView[str]
Keyword-Only Parameters
Name | Description |
---|---|
exclude_readonly
|
Whether to remove the readonly properties. |
pop
pop(key: str, default: ~typing.Any = <object object>) -> Any
Parameters
Name | Description |
---|---|
key
Required
|
|
default
|
|
Keyword-Only Parameters
Name | Description |
---|---|
exclude_readonly
|
Whether to remove the readonly properties. |
popitem
popitem() -> Tuple[str, Any]
Keyword-Only Parameters
Name | Description |
---|---|
exclude_readonly
|
Whether to remove the readonly properties. |
setdefault
setdefault(key: str, default: ~typing.Any = <object object>) -> Any
Parameters
Name | Description |
---|---|
key
Required
|
|
default
|
|
Keyword-Only Parameters
Name | Description |
---|---|
exclude_readonly
|
Whether to remove the readonly properties. |
update
update(*args: Any, **kwargs: Any) -> None
Keyword-Only Parameters
Name | Description |
---|---|
exclude_readonly
|
Whether to remove the readonly properties. |
values
values() -> ValuesView[Any]
Keyword-Only Parameters
Name | Description |
---|---|
exclude_readonly
|
Whether to remove the readonly properties. |
Attributes
liveness_decision
"uncertain", "realface", and "spoofface".
liveness_decision: str | _models.FaceLivenessDecision | None
model_version_used
The model version used for liveness classification. Known values are: "2020-02-15-preview.01", "2021-11-12-preview.03", "2022-10-15-preview.04", and "2023-03-02-preview.05".
model_version_used: str | _models.LivenessModel | None
target
Specific targets used for liveness classification.
target: _models.LivenessOutputsTarget | None
verify_result
The face verification output. Only available when the request is liveness with verify.
verify_result: _models.LivenessWithVerifyOutputs | None
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for