public class ImageMainObjectDetectionReq extends Object
| Constructor and Description |
|---|
ImageMainObjectDetectionReq() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getImage()
与url二选一 图像数据,base64编码,要求base64编码后大小不超过10M,最短边至少15px,最长边最大4096px,支持JPG/PNG/BMP格式。
|
Float |
getThreshold()
置信度的阈值(0~100),低于此置信数的检测结果,将不会返回。 默认值:30。 最小值:0。 最大值:100。
minimum: 0
maximum: 1E+2
|
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() |
ImageMainObjectDetectionReq |
withImage(String image) |
ImageMainObjectDetectionReq |
withThreshold(Float threshold) |
ImageMainObjectDetectionReq |
withUrl(String url) |
public ImageMainObjectDetectionReq withImage(String image)
public String getImage()
public void setImage(String image)
public ImageMainObjectDetectionReq withUrl(String url)
public String getUrl()
public void setUrl(String url)
public ImageMainObjectDetectionReq withThreshold(Float threshold)
public Float getThreshold()
public void setThreshold(Float threshold)
Copyright © 2022. All rights reserved.