public class CelebrityRecognitionReq extends Object
| Constructor and Description |
|---|
CelebrityRecognitionReq() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getImage()
与url二选一 图片文件Base64编码字符串。要求base64编码后大小不超过10M。 政治人物检测人脸部分不小于40*40像素。 支持JPG/PNG/BMP格式。
|
Float |
getThreshold()
置信度的阈值(0~1),低于此置信数的标签,将不会返回。 默认值:0.48。
|
String |
getUrl()
与image二选一 图片的URL路径,目前支持: - 公网HTTP/HTTPS URL -
华为云OBS提供的URL,使用OBS数据需要进行授权。包括对服务授权、临时授权、匿名公开授权。详请参见[配置OBS服务的访问权限](https://support.huaweicloud.com/api-moderation/moderation_03_0020.html)。
> - 接口响应时间依赖于图片的下载时间,如果图片下载时间过长,会返回接口调用失败。 > - 请保证被检测图片所在的存储服务稳定可靠,建议您使用华为云OBS存储。
|
int |
hashCode() |
void |
setImage(String image) |
void |
setThreshold(Float threshold) |
void |
setUrl(String url) |
String |
toString() |
CelebrityRecognitionReq |
withImage(String image) |
CelebrityRecognitionReq |
withThreshold(Float threshold) |
CelebrityRecognitionReq |
withUrl(String url) |
public CelebrityRecognitionReq withImage(String image)
public String getImage()
public void setImage(String image)
public CelebrityRecognitionReq withUrl(String url)
public String getUrl()
public void setUrl(String url)
public CelebrityRecognitionReq withThreshold(Float threshold)
public Float getThreshold()
public void setThreshold(Float threshold)
Copyright © 2021. All rights reserved.