检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
或图片信息。 调用接口时,需要您填写图片地址(或利用图片的BASE64编码)。服务会根据您提供的url进行识别功能,例如: POST https://{endpoint}/v2.0/image/tagging { "image" : "", "url" : "XXXX",
//image.cn-north-4.myhuaweicloud.com替换为您开通服务区域的终端节点 $endpoint = "https://image.cn-north-4.myhuaweicloud.com"; $projectId = ""; $credentials
RecaptureDetectReq(); body.withThreshold(0f); body.withUrl("https://bucketname.obs.cn-north-4.myhuaweicloud.com/image/test1.jpg"); //替换为公网可以访问的图片地址
登录后,“X-Auth-Token”和“project_id”参数会自动填充,无需填写。 填写待检测图片数据。 输入数据可选image或url,本示例使用url,例如https://support.huaweicloud.com/productdesc-image/zh-cn_image_0000001382844041
如果您想使用购买套餐包的计费方式使用本服务,单击“购买套餐包”列的“购买”按钮,会跳转到对应的购买页面,购买完成后使用即可。 如果您需要对OBS中的数据进行图像识别,请开启“对象存储服务OBS授权”按钮。 图1 服务列表 主体识别当前仅支持按需计费的方式。 lmage不支持跨区域私有权限的OBS,OBS的区域需要和服务保持一致。
//image.cn-north-4.myhuaweicloud.com替换为您开通服务区域的终端节点 $endpoint = "https://image.cn-north-4.myhuaweicloud.com"; $projectId = ""; $credentials
ImageMainObjectDetectionReq(); body.withThreshold(30f); body.withUrl("https://XXX.jpg"); //替换为公网可以访问的图片地址 request.withBody(body);
withThreshold(95f); body.withLanguage("zh"); body.withUrl("https://XXX.jpg"); //此处替换为公网可以访问的图片地址 request.withBody(body);
cn-north-4.myhuaweicloud.com替换为您开通服务区域的终端节点,详情请查看地区和终端节点. $endpoint = "https://image.cn-north-4.myhuaweicloud.com"; $projectId = ""; $credentials
Request”,设置Request name并单击“Save”。 请求方式修改为"POST",输入URL。 例如,以cn-north-4为例,URL为“https://iam.cn-north-4.myhuaweicloud.com/v3/auth/tokens”。 在“Headers”列表中添加
withThreshold(10f); body.withLanguage("zh"); body.withUrl("https://XXX.jpg"); //此处替换为公网可以访问的图片地址 request.withBody(body);
body = RecaptureDetectReq( threshold=0, url="https://bucketname.obs.cn-north-4.myhuaweicloud.com/image/test1.jpg"//替换为公网可以访问的图片地址
thresholdRecaptureDetectReq:= float32(0) urlRecaptureDetectReq:= "https://bucketname.obs.cn-north-4.myhuaweicloud.com/image/test1.jpg"//替换为公网可以访问的图片地址
CelebrityRecognitionReq( threshold=0, url="https://XXX.jpg" //此处替换为公网可以访问的图片地址 ) response = client
ImageMainObjectDetectionReq( threshold=30, url="https://XXX.jpg" //替换为公网可以访问的图片地址 ) response = client.r
thresholdCelebrityRecognitionReq:= float32(0.48) urlCelebrityRecognitionReq:= "https://XXX.jpg" //此处替换为公网可以访问的图片地址 request.Body = &model.CelebrityRecognitionReq{
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