public class DetectFaceSimilarityRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
DetectFaceSimilarityRequest() |
DetectFaceSimilarityRequest(DetectFaceSimilarityRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getImageA()
Get A image base64 data.
|
String |
getImageB()
Get B image base64 data.
|
Long |
getQualityControl()
Get Image quality control.
|
String |
getUrlA()
Get A URL for the image.
|
String |
getUrlB()
Get B The URL of the image.
|
void |
setImageA(String ImageA)
Set A image base64 data.
|
void |
setImageB(String ImageB)
Set B image base64 data.
|
void |
setQualityControl(Long QualityControl)
Set Image quality control.
|
void |
setUrlA(String UrlA)
Set A URL for the image.
|
void |
setUrlB(String UrlB)
Set B The URL of the image.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public DetectFaceSimilarityRequest()
public DetectFaceSimilarityRequest(DetectFaceSimilarityRequest source)
public String getImageA()
public void setImageA(String ImageA)
ImageA
- A image base64 data.
- The size after base64 encoding cannot exceed 5M.
- The long side pixels of jpg format cannot exceed 4000, and the long side pixels of pictures in other formats cannot exceed 2000. The short side of images in all formats must be no less than 64 pixels.
- If the picture contains multiple faces, only the face with the highest confidence is selected. - Supports PNG, JPG, JPEG, BMP, but does not support GIF images.public String getImageB()
public void setImageB(String ImageB)
ImageB
- B image base64 data.
- The size after base64 encoding cannot exceed 5M.
- The long side pixels of jpg format cannot exceed 4000, and the long side pixels of pictures in other formats cannot exceed 2000. The short side of images in all formats must be no less than 64 pixels.
- If the picture contains multiple faces, only the face with the highest confidence is selected. - Supports PNG, JPG, JPEG, BMP, but does not support GIF images.public String getUrlA()
public void setUrlA(String UrlA)
UrlA
- A URL for the image.
- The size of the corresponding image after base64 encoding cannot exceed 5M.
- The long side pixels of jpg format cannot exceed 4000, and the long side pixels of pictures in other formats cannot exceed 2000. The short side of images in all formats must be no less than 64 pixels.
- A The URL and Image of the picture must be provided. If both are provided, only the Url will be used.
- Images stored in Tencent Cloud's Url can ensure higher download speed and stability. It is recommended that images be stored in Tencent Cloud.
- The URL speed and stability of non-Tencent cloud storage may be affected to a certain extent.
- If the picture contains multiple faces, only the face with the largest face area is selected.
- Supports PNG, JPG, JPEG, BMP, but does not support GIF images.public String getUrlB()
public void setUrlB(String UrlB)
UrlB
- B The URL of the image.
- The size of the corresponding image after base64 encoding cannot exceed 5M.
- The long side pixels of jpg format cannot exceed 4000, and the long side pixels of pictures in other formats cannot exceed 2000. The short side of images in all formats must be no less than 64 pixels.
- B The URL and Image of the picture must be provided. If both are provided, only the Url will be used.
- Images stored in Tencent Cloud's Url can ensure higher download speed and stability. It is recommended that images be stored in Tencent Cloud.
- The URL speed and stability of non-Tencent cloud storage may be affected to a certain extent.
- If the picture contains multiple faces, only the face with the largest face area is selected.
- Supports PNG, JPG, JPEG, BMP, but does not support GIF images.public Long getQualityControl()
public void setQualityControl(Long QualityControl)
QualityControl
- Image quality control.
- Value range: 0: No control; 1: Lower quality requirements, the image is very blurry, and the eyes, nose, and mouth cover at least one or more of them; 2: General quality requirements, the image is bright, Dark, blurry or generally blurred, eyebrows covered, cheeks covered, chin covered, at least three of them; 3: High quality requirements, the image may be brighter, darker, generally blurry, eyebrows blocked, cheeks blocked, chin blocked, one or two of them; 4: Very high quality requirements, all dimensions are the best or the most , there is a slight problem in one dimension; default is 0.
- If the image quality does not meet the requirements, the returned result will prompt that the image quality test does not meet the requirements.Copyright © 2025. All rights reserved.