public class IaiClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
Constructor and Description |
---|
IaiClient(Credential credential,
String region) |
IaiClient(Credential credential,
String region,
ClientProfile profile) |
Modifier and Type | Method and Description |
---|---|
AnalyzeFaceResponse |
AnalyzeFace(AnalyzeFaceRequest req)
This API is used to perform facial feature localization (aka facial keypoint localization) on a given image and calculate 90 facial keypoints that make up the contour of the face, including eyebrows (8 points on the left and 8 on the right), eyes (8 points on the left and 8 on the right), nose (13 points), mouth (22 points), face contour (21 points), and eyeballs or pupils (2 points).
|
CheckSimilarPersonResponse |
CheckSimilarPerson(CheckSimilarPersonRequest req)
This API is used to check a specified group for suspected duplicate persons and list their information.
|
CompareFaceResponse |
CompareFace(CompareFaceRequest req)
This API is used to calculate the similarity of faces in two images and return the face similarity score.
|
CopyPersonResponse |
CopyPerson(CopyPersonRequest req)
This API is used to copy a person in a group to another group (without copying the description).
|
CreateFaceResponse |
CreateFace(CreateFaceRequest req)
This API is used to add a set of face images to a person.
|
CreateGroupResponse |
CreateGroup(CreateGroupRequest req)
This API is used to create an empty group.
|
CreatePersonResponse |
CreatePerson(CreatePersonRequest req)
This API is used to create a person and add face, name, gender, and other related information.
|
DeleteFaceResponse |
DeleteFace(DeleteFaceRequest req)
This API is used to delete the face images of a person.
|
DeleteGroupResponse |
DeleteGroup(DeleteGroupRequest req)
This API is used to delete a group and all persons in it.
|
DeletePersonResponse |
DeletePerson(DeletePersonRequest req)
This API is used to delete a person from all groups.
|
DeletePersonFromGroupResponse |
DeletePersonFromGroup(DeletePersonFromGroupRequest req)
This API is used to remove a person from a specified group.
|
DetectFaceResponse |
DetectFace(DetectFaceRequest req)
This API is used to detect the position, attributes, and quality information of a face in the given image.
|
DetectLiveFaceResponse |
DetectLiveFace(DetectLiveFaceRequest req)
This API is used to detect the liveness of a user with a user-uploaded image.
|
EstimateCheckSimilarPersonCostTimeResponse |
EstimateCheckSimilarPersonCostTime(EstimateCheckSimilarPersonCostTimeRequest req)
This API is used to get the estimated duration of a duplicate person check task.
|
GetCheckSimilarPersonJobIdListResponse |
GetCheckSimilarPersonJobIdList(GetCheckSimilarPersonJobIdListRequest req)
This API is used to get the list of duplicate person check tasks and sort them in reverse order by task creation time (i.e., the newest one is at the top)
Only data in the past year is retained.
|
GetGroupInfoResponse |
GetGroupInfo(GetGroupInfoRequest req)
This API is used to get the group information.
|
GetGroupListResponse |
GetGroupList(GetGroupListRequest req)
This API is used to get the list of groups.
|
GetPersonBaseInfoResponse |
GetPersonBaseInfo(GetPersonBaseInfoRequest req)
This API is used to get the information of a specified person, including name, gender, face, etc.
|
GetPersonGroupInfoResponse |
GetPersonGroupInfo(GetPersonGroupInfoRequest req)
This API is used to get the information of a specified person, including group, description, etc.
|
GetPersonListResponse |
GetPersonList(GetPersonListRequest req)
This API is used to get the list of persons in a specified group.
|
GetPersonListNumResponse |
GetPersonListNum(GetPersonListNumRequest req)
This API is used to get the number of persons in a specified group.
|
GetSimilarPersonResultResponse |
GetSimilarPersonResult(GetSimilarPersonResultRequest req)
This API is used to get the result of the `CheckSimilarPerson` API.
|
ModifyGroupResponse |
ModifyGroup(ModifyGroupRequest req)
This API is used to modify the name, tag, and custom description field of a group.
|
ModifyPersonBaseInfoResponse |
ModifyPersonBaseInfo(ModifyPersonBaseInfoRequest req)
This API is used to modify the information of a person, including name, gender, etc.
|
ModifyPersonGroupInfoResponse |
ModifyPersonGroupInfo(ModifyPersonGroupInfoRequest req)
This API is used to modify the description of a specified person in a group.
|
SearchFacesResponse |
SearchFaces(SearchFacesRequest req)
This API is used to recognize top K persons in one or more groups who are similar to the person in a given image and rank the similarity in a descending order.
|
SearchFacesReturnsByGroupResponse |
SearchFacesReturnsByGroup(SearchFacesReturnsByGroupRequest req)
This API is used to recognize top K persons in one or more groups who are similar to the person in a given image, display the results **by group**, and rank the similarity within each group in a descending order.
|
SearchPersonsResponse |
SearchPersons(SearchPersonsRequest req)
This API is used to recognize top K persons in one or more groups who are similar to the person in a given image and rank the similarity in a descending order.
|
SearchPersonsReturnsByGroupResponse |
SearchPersonsReturnsByGroup(SearchPersonsReturnsByGroupRequest req)
This API is used to recognize top K persons in one or more groups who are similar to the person in a given image, display the results **by group**, and rank the similarity within each group in a descending order.
|
VerifyFaceResponse |
VerifyFace(VerifyFaceRequest req)
This API is used to judge whether a person in an image corresponds to a given `PersonId`.
|
VerifyPersonResponse |
VerifyPerson(VerifyPersonRequest req)
This API is used to judge whether a person in an image corresponds to a given `PersonId`.
|
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegion
public IaiClient(Credential credential, String region)
public IaiClient(Credential credential, String region, ClientProfile profile)
public AnalyzeFaceResponse AnalyzeFace(AnalyzeFaceRequest req) throws TencentCloudSDKException
req
- AnalyzeFaceRequestTencentCloudSDKException
public CheckSimilarPersonResponse CheckSimilarPerson(CheckSimilarPersonRequest req) throws TencentCloudSDKException
req
- CheckSimilarPersonRequestTencentCloudSDKException
public CompareFaceResponse CompareFace(CompareFaceRequest req) throws TencentCloudSDKException
req
- CompareFaceRequestTencentCloudSDKException
public CopyPersonResponse CopyPerson(CopyPersonRequest req) throws TencentCloudSDKException
req
- CopyPersonRequestTencentCloudSDKException
public CreateFaceResponse CreateFace(CreateFaceRequest req) throws TencentCloudSDKException
req
- CreateFaceRequestTencentCloudSDKException
public CreateGroupResponse CreateGroup(CreateGroupRequest req) throws TencentCloudSDKException
req
- CreateGroupRequestTencentCloudSDKException
public CreatePersonResponse CreatePerson(CreatePersonRequest req) throws TencentCloudSDKException
req
- CreatePersonRequestTencentCloudSDKException
public DeleteFaceResponse DeleteFace(DeleteFaceRequest req) throws TencentCloudSDKException
req
- DeleteFaceRequestTencentCloudSDKException
public DeleteGroupResponse DeleteGroup(DeleteGroupRequest req) throws TencentCloudSDKException
req
- DeleteGroupRequestTencentCloudSDKException
public DeletePersonResponse DeletePerson(DeletePersonRequest req) throws TencentCloudSDKException
req
- DeletePersonRequestTencentCloudSDKException
public DeletePersonFromGroupResponse DeletePersonFromGroup(DeletePersonFromGroupRequest req) throws TencentCloudSDKException
req
- DeletePersonFromGroupRequestTencentCloudSDKException
public DetectFaceResponse DetectFace(DetectFaceRequest req) throws TencentCloudSDKException
req
- DetectFaceRequestTencentCloudSDKException
public DetectLiveFaceResponse DetectLiveFace(DetectLiveFaceRequest req) throws TencentCloudSDKException
req
- DetectLiveFaceRequestTencentCloudSDKException
public EstimateCheckSimilarPersonCostTimeResponse EstimateCheckSimilarPersonCostTime(EstimateCheckSimilarPersonCostTimeRequest req) throws TencentCloudSDKException
req
- EstimateCheckSimilarPersonCostTimeRequestTencentCloudSDKException
public GetCheckSimilarPersonJobIdListResponse GetCheckSimilarPersonJobIdList(GetCheckSimilarPersonJobIdListRequest req) throws TencentCloudSDKException
req
- GetCheckSimilarPersonJobIdListRequestTencentCloudSDKException
public GetGroupInfoResponse GetGroupInfo(GetGroupInfoRequest req) throws TencentCloudSDKException
req
- GetGroupInfoRequestTencentCloudSDKException
public GetGroupListResponse GetGroupList(GetGroupListRequest req) throws TencentCloudSDKException
req
- GetGroupListRequestTencentCloudSDKException
public GetPersonBaseInfoResponse GetPersonBaseInfo(GetPersonBaseInfoRequest req) throws TencentCloudSDKException
req
- GetPersonBaseInfoRequestTencentCloudSDKException
public GetPersonGroupInfoResponse GetPersonGroupInfo(GetPersonGroupInfoRequest req) throws TencentCloudSDKException
req
- GetPersonGroupInfoRequestTencentCloudSDKException
public GetPersonListResponse GetPersonList(GetPersonListRequest req) throws TencentCloudSDKException
req
- GetPersonListRequestTencentCloudSDKException
public GetPersonListNumResponse GetPersonListNum(GetPersonListNumRequest req) throws TencentCloudSDKException
req
- GetPersonListNumRequestTencentCloudSDKException
public GetSimilarPersonResultResponse GetSimilarPersonResult(GetSimilarPersonResultRequest req) throws TencentCloudSDKException
req
- GetSimilarPersonResultRequestTencentCloudSDKException
public ModifyGroupResponse ModifyGroup(ModifyGroupRequest req) throws TencentCloudSDKException
req
- ModifyGroupRequestTencentCloudSDKException
public ModifyPersonBaseInfoResponse ModifyPersonBaseInfo(ModifyPersonBaseInfoRequest req) throws TencentCloudSDKException
req
- ModifyPersonBaseInfoRequestTencentCloudSDKException
public ModifyPersonGroupInfoResponse ModifyPersonGroupInfo(ModifyPersonGroupInfoRequest req) throws TencentCloudSDKException
req
- ModifyPersonGroupInfoRequestTencentCloudSDKException
public SearchFacesResponse SearchFaces(SearchFacesRequest req) throws TencentCloudSDKException
req
- SearchFacesRequestTencentCloudSDKException
public SearchFacesReturnsByGroupResponse SearchFacesReturnsByGroup(SearchFacesReturnsByGroupRequest req) throws TencentCloudSDKException
req
- SearchFacesReturnsByGroupRequestTencentCloudSDKException
public SearchPersonsResponse SearchPersons(SearchPersonsRequest req) throws TencentCloudSDKException
req
- SearchPersonsRequestTencentCloudSDKException
public SearchPersonsReturnsByGroupResponse SearchPersonsReturnsByGroup(SearchPersonsReturnsByGroupRequest req) throws TencentCloudSDKException
req
- SearchPersonsReturnsByGroupRequestTencentCloudSDKException
public VerifyFaceResponse VerifyFace(VerifyFaceRequest req) throws TencentCloudSDKException
req
- VerifyFaceRequestTencentCloudSDKException
public VerifyPersonResponse VerifyPerson(VerifyPersonRequest req) throws TencentCloudSDKException
req
- VerifyPersonRequestTencentCloudSDKException
Copyright © 2020. All rights reserved.