网页端检测到有人摔倒后app会直接跳转到这个界面
连接阿里云api
package com.example.teamapplication.controller; import com.aliyun.facebody20191230.models.RecognizeActionResponse; import com.aliyun.tea.TeaModel; import java.io.File; import java.io.FileInputStream; import com.aliyun.com.viapi.FileUtils; import java.io.InputStream; import java.net.URL; import java.nio.file.Files; public class ActionController { public static com.aliyun.facebody20191230.Client createClient(String accessKeyId, String accessKeySecret) throws Exception { /* 初始化配置对象com.aliyun.teaopenapi.models.Config Config对象存放 AccessKeyId、AccessKeySecret、endpoint等配置 */ com.aliyun.teaopenapi.models.Config config = new com.aliyun.teaopenapi.models.Config() .setAccessKeyId(accessKeyId) .setAccessKeySecret(accessKeySecret); // 访问的域名 config.endpoint = "facebody.cn-shanghai.aliyuncs.com"; return new com.aliyun.facebody20191230.Client(config); } }
标签:java,models,Config,冲刺,aliyun,import,第二阶段,com From: https://www.cnblogs.com/azure011328/p/18247457