user-face
Add a user-face
This method allows to create a user-face object. User-face is an object that contains source photo, thumbnail, etc
post/user-face/
Request body
create_fromstring
This field can contain one of the following references:
- detection:<detection id>: use a Detection object (obtained with the POST /detect) to select a object on source_photo. (source_photo must contain the same image that was used for POST /detect)
- {face, body, or car}event:<event id>: create new Object from an Event (source_photo must be empty)
- {face, body, or car}object:<object id>: use another Object as a template for this object (source_photo must be empty)
detect_idstring
This parameter is left only for compatibility reasons. Do not use it.
mf_selector'biggest' | 'reject'
source_photostring binary
Source photo (required when create_from points to a Detection or empty)
frame_coords_leftinteger
Left border of object's bounding box
frame_coords_topinteger
Top border of object's bounding box
frame_coords_rightinteger
Right border of object's bounding box
frame_coords_bottominteger
Bottom border of object's bounding box
userinteger required
Related User ID
Response
idstring required
created_datestring date-time required
Object creation date
modified_datestring date-time required
Object modification date
source_photo_namestring required
Filename supplied for source_photo on object creation
frame_coords_leftinteger
Left border of object's bounding box
frame_coords_topinteger
Top border of object's bounding box
frame_coords_rightinteger
Right border of object's bounding box
frame_coords_bottominteger
Bottom border of object's bounding box
thumbnailstring uri required
Object thumbnail
featuresobject required
userinteger required
Related User ID