检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
通过可视化工具(如curl、Postman)发送请求调用图像识别服务API。 如果您是开发工程师,熟悉代码编写,熟悉HTTP请求与API调用,您可以通过postman调用、调试API。使用方法请参见如何使用Postman调用华为云Image服务。 通过软件开发工具包(SDK)调用图像识别服务API。
body.setThreshold(60); body.setLanguage("zh"); body.setImage("输入图片,使用base64编码"); request.setBody(body); std::cout << "-----begin
threshold=0, url="https://XXX.jpg" //此处替换为公网可以访问的图片地址 ) response = client.run_celebrity_recognition(request)
threshold=30, url="https://XXX.jpg" //替换为公网可以访问的图片地址 ) response = client.run_image_main_object_detection(request)
Req:= "zh" urlImageTaggingReq:= "https://XXX.jpg" //此处替换为公网可以访问的图片地址 request.Body = &model.ImageTaggingReq{ Limit: &limitImageTaggingReq
language="zh", url="https://XXX.jpg" //此处替换为公网可以访问的图片地址 ) response = client.run_image_tagging(request)
Threshold = 30, Url = "https://XXX.jpg" //替换为公网可以访问的图片地址 }; try { var resp
name.obs.cn-north-4.myhuaweicloud.com/image/test1.jpg"); //替换为公网可以访问的图片地址 request.withBody(body); try { RunRecaptureDetectResponse
"https://bucketname.obs.cn-north-4.myhuaweicloud.com/image/test1.jpg"//替换为公网可以访问的图片地址 }; try { var
48) urlCelebrityRecognitionReq:= "https://XXX.jpg" //此处替换为公网可以访问的图片地址 request.Body = &model.CelebrityRecognitionReq{ Threshold:
Threshold = 0.48, Url = "https://XXX.jpg" //此处替换为公网可以访问的图片地址 }; try { var resp
urlImageMainObjectDetectionReq:= "https://XXX.jpg" //此处替换为公网可以访问的图片地址 request.Body = &model.ImageMainObjectDetectionReq{ Threshold:
$body->setThreshold(60); $body->setLanguage("zh"); $body->setImage("输入图片,使用base64编码"); $request->setBody($body); try { $response = $client-
withLanguage("zh"); body.withUrl("https://XXX.jpg"); //此处替换为公网可以访问的图片地址 request.withBody(body); try { RunImageTaggingResponse
Language = "zh", Url = "https://XXX.jpg" //此处替换为公网可以访问的图片地址 }; try { var resp
withThreshold(30f); body.withUrl("https://XXX.jpg"); //替换为公网可以访问的图片地址 request.withBody(body); try { RunImage
withThreshold(0f); body.withUrl("https://XXX.jpg"); //此处替换为公网可以访问的图片地址 request.withBody(body); try { RunCeleb
oken”。 登录我的凭证,查询隶属于“华北-北京四”的项目ID,替换URI中的{project_id} 单击“Body”配置项,将获取的图片的base64编码填写到“image”参数中。关于body体中其他参数说明,请参考图像标签API。 图2 修改参数 单击右上角“Send”按钮发送请求,查看识别结果。
body.setThreshold(60); body.setLanguage("zh"); body.setImage("输入图片,使用base64编码"); request.setBody(body); std::cout << "-----begin
language="zh", url="https://XXX.jpg" //此处替换为公网可以访问的图片地址 ) response = client.run_image_media_tagging(request)