检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
thresholdRecaptureDetectReq:= float32(0) urlRecaptureDetectReq:= "https://bucketname.obs.cn-north-4.myhuaweicloud.com/image/test1.jpg"//替换为公网可以访问的图片地址
CelebrityRecognitionReq( threshold=0, url="https://XXX.jpg" //此处替换为公网可以访问的图片地址 ) response = client
thresholdCelebrityRecognitionReq:= float32(0.48) urlCelebrityRecognitionReq:= "https://XXX.jpg" //此处替换为公网可以访问的图片地址 request.Body = &model.CelebrityRecognitionReq{
ImageMainObjectDetectionReq( threshold=30, url="https://XXX.jpg" //替换为公网可以访问的图片地址 ) response = client.r
float32(95) languageImageTaggingReq:= "zh" urlImageTaggingReq:= "https://XXX.jpg" //此处替换为公网可以访问的图片地址 request.Body = &model.ImageTaggingReq{
threshold=95, language="zh", url="https://XXX.jpg" //此处替换为公网可以访问的图片地址 ) response = client.
ctDetectionReq:= float32(30) urlImageMainObjectDetectionReq:= "https://XXX.jpg" //此处替换为公网可以访问的图片地址 request.Body = &model.ImageM
Explorer,在“代码示例”中选择“Python”。 图3 代码示例 填写请求Body参数: 输入数据可选image或url,本示例使用url,例如https://support.huaweicloud.com/productdesc-image/zh-cn_image_0000001382844041
error_msg String 调用失败时的错误信息。 调用成功时无此字段。 示例 请求示例(图片文件为BASE64字符串) POST https://image.cn-north-1.myhuaweicloud.com/v1.0/vision/dark-enhance Request
threshold=10, language="zh", url="https://XXX.jpg" //此处替换为公网可以访问的图片地址 ) response = client.
languageImageMediaTaggingReq:= "zh" urlImageMediaTaggingReq:= "https://XXX.jpg" //此处替换为公网可以访问的图片地址 request.Body = &model.ImageMediaTaggingReq{