图像标签识别-imageTag
返回内容介绍
public static String sample(TAipImageClassify client) throws Exception {
// 参数为本地图片路径 一次请求ID
String imagePath = "./User/xiaoshaui/kj.jpg";
String result = client.imageTag(imagePath);
// 参数为本地图片二进制数组 一次请求ID
byte[] image = FileUtil.readFileByBytes(imagePath);
String result = client.imageTag(image);
return result;
}