FaceLists Interface
public interface FaceLists
An instance of this class provides access to all the operations defined in FaceLists.
Method Summary
Modifier and Type | Method and Description |
---|---|
FaceListsAddFaceFromStreamDefinitionStages.WithFaceListId |
addFaceFromStream()
Add a face to a face list. The input face is specified as an image with a targetFace rectangle. It returns a persistedFaceId representing the added face, and persistedFaceId will not expire. |
Persisted |
addFaceFromStream(String faceListId, byte[] image, AddFaceFromStreamOptionalParameter addFaceFromStreamOptionalParameter)
Add a face to a face list. The input face is specified as an image with a targetFace rectangle. It returns a persistedFaceId representing the added face, and persistedFaceId will not expire. |
Observable<Persisted |
addFaceFromStreamAsync(String faceListId, byte[] image, AddFaceFromStreamOptionalParameter addFaceFromStreamOptionalParameter)
Add a face to a face list. The input face is specified as an image with a targetFace rectangle. It returns a persistedFaceId representing the added face, and persistedFaceId will not expire. |
FaceListsAddFaceFromUrlDefinitionStages.WithFaceListId |
addFaceFromUrl()
Add a face to a face list. The input face is specified as an image with a targetFace rectangle. It returns a persistedFaceId representing the added face, and persistedFaceId will not expire. |
Persisted |
addFaceFromUrl(String faceListId, String url, AddFaceFromUrlOptionalParameter addFaceFromUrlOptionalParameter)
Add a face to a face list. The input face is specified as an image with a targetFace rectangle. It returns a persistedFaceId representing the added face, and persistedFaceId will not expire. |
Observable<Persisted |
addFaceFromUrlAsync(String faceListId, String url, AddFaceFromUrlOptionalParameter addFaceFromUrlOptionalParameter)
Add a face to a face list. The input face is specified as an image with a targetFace rectangle. It returns a persistedFaceId representing the added face, and persistedFaceId will not expire. |
FaceListsCreateDefinitionStages.WithFaceListId |
create()
Create an empty face list. Up to 64 face lists are allowed to exist in one subscription. |
void |
create(String faceListId, CreateFaceListsOptionalParameter createOptionalParameter)
Create an empty face list. Up to 64 face lists are allowed to exist in one subscription. |
Observable<Void> |
createAsync(String faceListId, CreateFaceListsOptionalParameter createOptionalParameter)
Create an empty face list. Up to 64 face lists are allowed to exist in one subscription. |
void |
delete(String faceListId)
Delete an existing face list according to faceListId. Persisted face images in the face list will also be deleted. |
Observable<Void> |
deleteAsync(String faceListId)
Delete an existing face list according to faceListId. Persisted face images in the face list will also be deleted. |
void |
deleteFace(String faceListId, UUID persistedFaceId)
Delete an existing face from a face list (given by a persisitedFaceId and a faceListId). Persisted image related to the face will also be deleted. |
Observable<Void> |
deleteFaceAsync(String faceListId, UUID persistedFaceId)
Delete an existing face from a face list (given by a persisitedFaceId and a faceListId). Persisted image related to the face will also be deleted. |
Face |
get(String faceListId)
Retrieve a face list's information. |
Observable<Face |
getAsync(String faceListId)
Retrieve a face list's information. |
List<Face |
list()
Retrieve information about all existing face lists. Only faceListId, name and userData will be returned. |
Observable<List<Face |
listAsync()
Retrieve information about all existing face lists. Only faceListId, name and userData will be returned. |
FaceListsUpdateDefinitionStages.WithFaceListId |
update()
Update information of a face list. |
void |
update(String faceListId, UpdateFaceListsOptionalParameter updateOptionalParameter)
Update information of a face list. |
Observable<Void> |
updateAsync(String faceListId, UpdateFaceListsOptionalParameter updateOptionalParameter)
Update information of a face list. |
Method Details
addFaceFromStream
public FaceListsAddFaceFromStreamDefinitionStages.WithFaceListId addFaceFromStream()
Add a face to a face list. The input face is specified as an image with a targetFace rectangle. It returns a persistedFaceId representing the added face, and persistedFaceId will not expire.
Returns:
addFaceFromStream
public PersistedFace addFaceFromStream(String faceListId, byte[] image, AddFaceFromStreamOptionalParameter addFaceFromStreamOptionalParameter)
Add a face to a face list. The input face is specified as an image with a targetFace rectangle. It returns a persistedFaceId representing the added face, and persistedFaceId will not expire.
Parameters:
Returns:
Throws:
addFaceFromStreamAsync
public Observable
Add a face to a face list. The input face is specified as an image with a targetFace rectangle. It returns a persistedFaceId representing the added face, and persistedFaceId will not expire.
Parameters:
Returns:
Throws:
addFaceFromUrl
public FaceListsAddFaceFromUrlDefinitionStages.WithFaceListId addFaceFromUrl()
Add a face to a face list. The input face is specified as an image with a targetFace rectangle. It returns a persistedFaceId representing the added face, and persistedFaceId will not expire.
Returns:
addFaceFromUrl
public PersistedFace addFaceFromUrl(String faceListId, String url, AddFaceFromUrlOptionalParameter addFaceFromUrlOptionalParameter)
Add a face to a face list. The input face is specified as an image with a targetFace rectangle. It returns a persistedFaceId representing the added face, and persistedFaceId will not expire.
Parameters:
Returns:
Throws:
addFaceFromUrlAsync
public Observable
Add a face to a face list. The input face is specified as an image with a targetFace rectangle. It returns a persistedFaceId representing the added face, and persistedFaceId will not expire.
Parameters:
Returns:
Throws:
create
public FaceListsCreateDefinitionStages.WithFaceListId create()
Create an empty face list. Up to 64 face lists are allowed to exist in one subscription.
Returns:
create
public void create(String faceListId, CreateFaceListsOptionalParameter createOptionalParameter)
Create an empty face list. Up to 64 face lists are allowed to exist in one subscription.
Parameters:
Throws:
createAsync
public Observable
Create an empty face list. Up to 64 face lists are allowed to exist in one subscription.
Parameters:
Returns:
Throws:
delete
public void delete(String faceListId)
Delete an existing face list according to faceListId. Persisted face images in the face list will also be deleted.
Parameters:
Throws:
deleteAsync
public Observable
Delete an existing face list according to faceListId. Persisted face images in the face list will also be deleted.
Parameters:
Returns:
Throws:
deleteFace
public void deleteFace(String faceListId, UUID persistedFaceId)
Delete an existing face from a face list (given by a persisitedFaceId and a faceListId). Persisted image related to the face will also be deleted.
Parameters:
Throws:
deleteFaceAsync
public Observable
Delete an existing face from a face list (given by a persisitedFaceId and a faceListId). Persisted image related to the face will also be deleted.
Parameters:
Returns:
Throws:
get
public FaceList get(String faceListId)
Retrieve a face list's information.
Parameters:
Returns:
Throws:
getAsync
public Observable
Retrieve a face list's information.
Parameters:
Returns:
Throws:
list
public List
Retrieve information about all existing face lists. Only faceListId, name and userData will be returned.
Returns:
Throws:
listAsync
public Observable> listAsync()
Retrieve information about all existing face lists. Only faceListId, name and userData will be returned.
Returns:
Throws:
update
public FaceListsUpdateDefinitionStages.WithFaceListId update()
Update information of a face list.
Returns:
update
public void update(String faceListId, UpdateFaceListsOptionalParameter updateOptionalParameter)
Update information of a face list.
Parameters:
Throws:
updateAsync
public Observable
Update information of a face list.
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java