检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
在Maven 项目的 pom.xml 文件加入相应的依赖项即可。 以引入最新版本的图像识别SDK为例,请在SDK中心获取最新的sdk包版本,替换代码中版本。
下载完毕后,单击exe文件,开始安装。 安装过程中选择工作负荷ASP.NET和Web开发,安装完成后启动即可。
SDK列表及指导文档(通用版) API Explorer能根据需要动态生成SDK代码功能,降低您使用SDK的难度,推荐使用。 SDK中心 https://sdkcenter.developer.huaweicloud.com/zh-cn提供服务SDK依赖引入的方式。 表1 提供了各个云服务支持的
认证用的 ak 和sk 硬编码到代码中或者明文存储都有很大的安全风险,建议在配置文件或者环境变量中密文存放,使用时解密,确保安全。
exceptions.ClientRequestException as e: print(e.status_code) print(e.request_id) print(e.error_code) print(e.error_msg) 执行示例代码文件
e.getRequestId()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg()); } } } 执行示例代码文件
connectionException) { Console.WriteLine(connectionException.ErrorMessage); } } } } 执行示例代码文件
public class RunCelebrityRecognitionSolution { public static void main(String[] args) { // 认证用的ak和sk硬编码到代码中或者明文存储都有很大的安全风险,建议在配置文件或者环境变量中密文存放
exceptions.ClientRequestException as e: print(e.status_code) print(e.request_id) print(e.error_code) print(e.error_msg) 执行示例代码文件
connectionException) { Console.WriteLine(connectionException.ErrorMessage); } } } } 执行示例代码文件
region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/image/v2/region" ) func main() { // 认证用的ak和sk硬编码到代码中或者明文存储都有很大的安全风险,建议在配置文件或者环境变量中密文存放
region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/image/v2/region" ) func main() { // 认证用的ak和sk硬编码到代码中或者明文存储都有很大的安全风险,建议在配置文件或者环境变量中密文存放
exceptions.ClientRequestException as e: print(e.status_code) print(e.request_id) print(e.error_code) print(e.error_msg) 执行示例代码文件
connectionException) { Console.WriteLine(connectionException.ErrorMessage); } } } } 执行示例代码文件
"\n"; } 执行示例代码文件,控制台输出媒资图像标签结果即表示程序执行成功。相关参数说明请参考媒资图像标签API。
client.RunImageMediaTagging(request) if err == nil { fmt.Printf("%+v\n", response) } else { fmt.Println(err) } } 执行示例代码文件
exceptions.ClientRequestException as e: print(e.status_code) print(e.request_id) print(e.error_code) print(e.error_msg) 执行示例代码文件
connectionException) { Console.WriteLine(connectionException.ErrorMessage); } } } } 执行示例代码文件
e.getHttpStatusCode()); System.out.println(e.getErrorCode()); System.out.println(e.getErrorMsg()); } } } 执行示例代码文件
region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/image/v2/region" ) func main() { // 认证用的ak和sk硬编码到代码中或者明文存储都有很大的安全风险,建议在配置文件或者环境变量中密文存放