public class TAipImageClassify extends BaseClient
app_id, app_key| 构造器和说明 |
|---|
TAipImageClassify(String app_id,
String app_key) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
flowersAndPlant(byte[] image)
花草识别接口
识别出图片中的花草信息
|
String |
flowersAndPlant(String filePath)
花草识别接口
根识别出图片中的花草信息
|
String |
imageFood(byte[] image)
美食图片识别
识别一个图像是否为美食图像
|
String |
imageFood(String filePath)
美食图片识别
识别一个图像是否为美食图像
|
String |
imageFuzzy(byte[] image)
模糊图片检测
判断一个图像的模糊程度
|
String |
imageFuzzy(String filePath)
模糊图片检测
判断一个图像的模糊程度
|
String |
imageTag(byte[] image)
图像标签识别接口
识别一个图像的标签信息,对图像分类
|
String |
imageTag(String filePath)
图像标签识别接口
识别一个图像的标签信息,对图像分类
|
String |
vehicle(byte[] image)
车辆识别接口
识别出图片中的车辆信息
|
String |
vehicle(String filePath)
车辆识别接口
识别出图片中的车辆信息
|
String |
visionImgidentify(byte[] image,
int scene)
花草/车辆识别接口
根据用户选择的场景,识别出图片中的花草或车辆信息
|
String |
visionImgidentify(String filePath,
int scene)
花草/车辆识别接口
根据用户选择的场景,识别出图片中的花草或车辆信息
|
String |
visionImgtotext(byte[] image,
String session_id)
看图说话
用一句话描述图片
|
String |
visionImgtotext(String filePath,
String session_id)
看图说话
用一句话描述图片
|
String |
visionObjectr(byte[] image,
int format,
int topk)
物体识别接口
对图片进行物体识别,快速找出图片中包含的物体信息
|
String |
visionObjectr(String filePath,
int format,
int topk)
物体识别接口
对图片进行物体识别,快速找出图片中包含的物体信息
|
String |
visionScener(byte[] image,
int format,
int topk)
场景识别接口
对图片进行场景识别,快速找出图片中包含的场景信息
|
String |
visionScener(String filePath,
int format,
int topk)
场景识别接口
对图片进行场景识别,快速找出图片中包含的场景信息
|
public String visionScener(byte[] image, int format, int topk) throws Exception
image - - 二进制图像数据format - 图片格式topk - 返回结果个数Exceptionpublic String visionScener(String filePath, int format, int topk) throws Exception
filePath - - 本地路径图像文件format - 图片格式topk - 返回结果个数Exceptionpublic String visionObjectr(byte[] image, int format, int topk) throws Exception
image - - 二进制图像数据format - 图片格式topk - 返回结果个数Exceptionpublic String visionObjectr(String filePath, int format, int topk) throws Exception
filePath - - 本地路径图像文件format - 图片格式topk - 返回结果个数Exceptionpublic String imageTag(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String imageTag(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String visionImgidentify(byte[] image, int scene) throws Exception
image - - 二进制图像数据scene - 识别场景,1-车辆识别,2-花草识别Exceptionpublic String visionImgidentify(String filePath, int scene) throws Exception
filePath - - 本地路径图像文件scene - 识别场景,1-车辆识别,2-花草识别Exceptionpublic String flowersAndPlant(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String flowersAndPlant(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String vehicle(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String vehicle(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String visionImgtotext(byte[] image, String session_id) throws Exception
image - - 二进制图像数据session_id - 一次请求IDExceptionpublic String visionImgtotext(String filePath, String session_id) throws Exception
filePath - - 本地路径图像文件session_id - 一次请求IDExceptionpublic String imageFuzzy(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String imageFuzzy(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String imageFood(byte[] image) throws Exception
image - - 二进制图像数据ExceptionCopyright © 2018. All rights reserved.