new FaceApiTranslator(config)
Constructor for the Azure FaceApi
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
object | Initial global configuration for the library, will be default values for some internal calls unless overwritten. Properties
|
Methods
addImageToPerson(image) → {AxiosPromise}
Adds a face picture to a person
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
image |
object | The image that you want to send to the API Properties
|
Returns:
- Type
- AxiosPromise
createNewPerson(person) → {AxiosPromise}
Creates a new person inside a person group
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
person |
object | The person object that you want to send to the api Properties
|
Returns:
- Type
- AxiosPromise
createPersonGroup(personGroup) → {AxiosPromise}
This creates a group of persons, it cointains nothing more than a descriptive name, a description for the group and persons. The person group is the element that you are going to train when you want to be able to identify pictures in a group of people.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
personGroup |
The person group details Properties
|
Returns:
- Type
- AxiosPromise
detectAFace(face) → {AxiosPromise}
Gets a faceid that you can use later based on the image that you send
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
face |
object | The face that you want to detect. You need to send either faceUrl or faceBlob Properties
|
Returns:
- Type
- AxiosPromise
getPersonDetails(candidate) → {AxiosPromise}
Gets the person details from a person id in a group
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
candidate |
object | Contains the candidate that has been found from the identification Properties
|
Returns:
- Type
- AxiosPromise
getPersonGroup(opts) → {AxiosPromise}
Get a list of the person groups that you have in your account
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object | The search options Properties
|
Returns:
- Type
- AxiosPromise
getTrainingStatus(optsopt) → {AxiosPromise}
Gets the status in which the training is
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
<optional> |
The search options Properties
|
Returns:
- Type
- AxiosPromise
identifyAPicture(dataopt, picture) → {AxiosPromise}
Gets the person id that matches the face that we detected
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data |
object |
<optional> |
The payload that you send to the indentify endpoint |
|||||||||||||||||||||||||
picture |
object | Contains the properties from the picture that you want to analise, mostly the faceId Properties
|
Returns:
- Type
- AxiosPromise
trainPersonGroup(optsopt) → {AxiosPromise}
Trains the group to recognise it's faces
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
object |
<optional> |
The search options Properties
|
Returns:
- Type
- AxiosPromise