public class TAipFace extends BaseClient
app_id, app_key, config| 限定符和类型 | 方法和说明 |
|---|---|
String |
detect(byte[] image)
人脸检测与分析
识别上传图像上面的人脸信息
|
String |
detect(String filePath)
人脸检测与分析
识别上传图像上面的人脸信息
|
String |
detectByUrl(String url)
已过时。
|
String |
detectCrossage(byte[] source_image,
byte[] target_image)
跨年龄人脸识别
上传两张人脸照,返回最相似的两张人脸及相似度。
|
String |
detectCrossage(String source_imagefilePath,
String target_imagefilePath)
跨年龄人脸识别
上传两张人脸照,返回最相似的两张人脸及相似度。
|
String |
detectMulti(byte[] image)
多人脸检测
识别上传图像上面的人脸位置,支持多人脸识别。
|
String |
detectMulti(String filePath)
多人脸检测
识别上传图像上面的人脸位置,支持多人脸识别。
|
String |
faceAddfaceByFilePath(List<String> filePaths,
String person_id,
String tag)
增加人脸(图片路径)
将一组人脸(Face)加入到一个个体(Person)中
|
String |
faceAddfaceByte(List<byte[]> images,
String person_id,
String tag)
增加人脸(byte图片数据)
将一组人脸(Face)加入到一个个体(Person)中
|
String |
faceCompare(byte[] image_a,
byte[] image_b)
人脸对比
对请求图片进行人脸对比
|
String |
faceCompare(String filePathA,
String filePathB)
人脸对比
对请求图片进行人脸对比
|
String |
faceDelFace(String person_id,
String face_ids)
删除人脸
从一个个体(Person)中删除一组人脸(Face)
|
String |
faceDelperson(String person_id)
删除个体
删除一个个体(Person)
|
String |
faceGetInfo(String person_id)
获取信息
获取一个个体(Person)的信息
|
String |
faceIdentify(byte[] image,
String group_id,
int topn)
人脸识别
对请求图片中的人脸进行识别
|
String |
faceIdentify(String filePath,
String group_id,
int topn)
人脸识别
对请求图片中的人脸进行识别
|
String |
faceNewperson(byte[] image,
String group_ids,
String person_id,
String person_name)
个体创建(必填参数)
创建一个个体(Person)
|
String |
faceNewperson(byte[] image,
String group_ids,
String person_id,
String person_name,
String tag)
个体创建(全部参数)
创建一个个体(Person)
|
String |
faceNewperson(String filePath,
String group_ids,
String person_id,
String person_name)
个体创建(必填参数)
创建一个个体(Person)
|
String |
faceNewperson(String filePath,
String group_ids,
String person_id,
String person_name,
String tag)
个体创建(全部参数)
创建一个个体(Person)
|
String |
faceSetInfo(String person_id,
String person_name,
String tag)
设置信息
设置个体(Person)的名字或备注
|
String |
faceShape(byte[] image)
五官定位
对请求图片进行五官定位
|
String |
faceShape(String filePath)
五官定位
对请求图片进行五官定位
|
String |
faceVerify(byte[] image,
String person_id)
人脸验证
对请求图片进行人脸验证
|
String |
faceVerify(String filePath,
String person_id)
人脸验证
对请求图片进行人脸验证
|
String |
getFaceIds(String person_id)
获取人脸列表
根据个体(Person)ID 获取人脸(Face)ID列表
|
String |
getFaceInfo(String face_id)
获取人脸信息
根据人脸(Face)ID 获取人脸(Face)信息
|
String |
getGroupIds()
获取组列表
获取应用下所有的组(Group)ID列表 获取一个AppId下所有Group ID
|
String |
getPersonIds(String group_id)
获取个体列表
获取一个组(Group)中的所有个体(Person)ID
|
requestServer, setConnectionTimeoutInMillis, setHttpProxy, setSocketProxy, setSocketTimeoutInMillispublic String detect(byte[] image) throws Exception
image - - 二进制图像数据Exception@Deprecated public String detectByUrl(String url) throws Exception
url - - 图像网络地址Exceptionpublic String detect(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String detectMulti(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String detectMulti(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String faceCompare(byte[] image_a, byte[] image_b) throws Exception
image_a - - 二进制图像数据Aimage_b - - 二进制图像数据BExceptionpublic String faceCompare(String filePathA, String filePathB) throws Exception
filePathA - - 本地路径图像文件AfilePathB - - 本地路径图像文件BExceptionpublic String detectCrossage(byte[] source_image, byte[] target_image) throws Exception
source_image - - 二进制待比较图片图像数据target_image - - 二进制待比较图片图像数据Exceptionpublic String detectCrossage(String source_imagefilePath, String target_imagefilePath) throws Exception
source_imagefilePath - - 本地路径待比较图片图像文件target_imagefilePath - - 本地路径待比较图片图像文件Exceptionpublic String faceShape(byte[] image) throws Exception
image - - 二进制图像数据Exceptionpublic String faceShape(String filePath) throws Exception
filePath - - 本地路径图像文件Exceptionpublic String faceIdentify(byte[] image, String group_id, int topn) throws Exception
image - 二进制图像数据group_id - 候选人组ID(个体创建时设定)topn - 返回的候选人个数Exceptionpublic String faceIdentify(String filePath, String group_id, int topn) throws Exception
filePath - 本地路径图像文件group_id - 候选人组ID(个体创建时设定)topn - 返回的候选人个数Exceptionpublic String faceVerify(byte[] image, String person_id) throws Exception
image - 二进制图像数据person_id - 待验证的个体Exceptionpublic String faceVerify(String filePath, String person_id) throws Exception
filePath - 本地路径图像文件person_id - 待验证的个体Exceptionpublic String faceNewperson(byte[] image, String group_ids, String person_id, String person_name, String tag) throws Exception
image - 二进制图像数据group_ids - 组id 可以是多个 eg:group01|group02person_id - 指定的个体idperson_name - 个体名字tag - 备注信息Exceptionpublic String faceNewperson(String filePath, String group_ids, String person_id, String person_name, String tag) throws Exception
filePath - 本地路径图像文件group_ids - 组id 可以是多个 eg:group01|group02person_id - 指定的个体idperson_name - 个体名字tag - 备注信息Exceptionpublic String faceNewperson(byte[] image, String group_ids, String person_id, String person_name) throws Exception
image - 二进制图像数据group_ids - 组id 可以是多个 eg:group01|group02person_id - 指定的个体idperson_name - 个体名字Exceptionpublic String faceNewperson(String filePath, String group_ids, String person_id, String person_name) throws Exception
filePath - 本地路径图像文件group_ids - 组id 可以是多个 eg:group01|group02person_id - 指定的个体idperson_name - 个体名字Exceptionpublic String faceDelperson(String person_id) throws Exception
person_id - 需要删除的个体(Person)IDExceptionpublic String faceAddfaceByte(List<byte[]> images, String person_id, String tag) throws Exception
images - 多个|单个图片的byte数据person_id - 指定的个体(Person)IDtag - 备注信息Exceptionpublic String faceAddfaceByFilePath(List<String> filePaths, String person_id, String tag) throws Exception
filePaths - 多个|单个图片本地路径person_id - 指定的个体(Person)IDtag - 备注信息Exceptionpublic String faceDelFace(String person_id, String face_ids) throws Exception
person_id - 需要删除的个体(Person)IDface_ids - 需要删除的人脸(Face)ID(多个之间用“\Exceptionpublic String faceSetInfo(String person_id, String person_name, String tag) throws Exception
person_id - 需要设置的个体(Person)IDperson_name - 新的名字tag - 备注信息Exceptionpublic String faceGetInfo(String person_id) throws Exception
person_id - 需要查询的个体(Person)IDExceptionpublic String getGroupIds() throws Exception
Exceptionpublic String getPersonIds(String group_id) throws Exception
group_id - 组(Group)IDExceptionpublic String getFaceIds(String person_id) throws Exception
person_id - 个体(Person)IDExceptionCopyright © 2018. All rights reserved.