public static class CompareFacesResponseBody.CompareFacesResponseBodyData
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
confidenceThresholds
Confidence thresholds for face comparison.
|
Float |
similarityScore
The degree of similarity between the faces in the two images.
|
| 构造器和说明 |
|---|
CompareFacesResponseBodyData() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CompareFacesResponseBody.CompareFacesResponseBodyData |
build(Map<String,?> map) |
String |
getConfidenceThresholds() |
Float |
getSimilarityScore() |
CompareFacesResponseBody.CompareFacesResponseBodyData |
setConfidenceThresholds(String confidenceThresholds) |
CompareFacesResponseBody.CompareFacesResponseBodyData |
setSimilarityScore(Float similarityScore) |
@NameInMap(value="ConfidenceThresholds") public String confidenceThresholds
Confidence thresholds for face comparison. The returned content is a JSON Object, with the specific structure being "key":"value".
key represents the false acceptance rate, which is the probability of misidentifying someone else as the specified person.value is the corresponding threshold.Regarding the confidence thresholds (confidenceThresholds) in the example:
"0.0001": "90.07" indicates that the threshold is 90.07 when the false acceptance rate is 0.01%."0.001": "80.01" indicates that the threshold is 80.01 when the false acceptance rate is 0.1%."0.01": "70.02" indicates that the threshold is 70.02 when the false acceptance rate is 1%.Confidence thresholds are dynamically provided based on different images and algorithms, so do not persist these thresholds.
example:{"0.0001":"90.07","0.001":"80.01","0.01":"70.02"}
@NameInMap(value="SimilarityScore") public Float similarityScore
The degree of similarity between the faces in the two images. The value range is [0, 100], with higher values indicating greater similarity.
example:98.7913
public static CompareFacesResponseBody.CompareFacesResponseBodyData build(Map<String,?> map) throws Exception
Exceptionpublic CompareFacesResponseBody.CompareFacesResponseBodyData setConfidenceThresholds(String confidenceThresholds)
public String getConfidenceThresholds()
public CompareFacesResponseBody.CompareFacesResponseBodyData setSimilarityScore(Float similarityScore)
public Float getSimilarityScore()
Copyright © 2025. All rights reserved.