How to place overlay over a specified face
I have an image with a number of people’s faces. I want to be able to specify which face I place an overlay on. Is there an index given by face detection I.e face 1, face 2, face 3 etc?
-
Hi James,
You can use our face parameter on upload to get the face coordinates. When set to true, the coordinates of faces contained in an uploaded image (automatically detected or manually defined). Each face is specified by the X & Y coordinates of the top left corner and the width & height of the face. The coordinates for each face are returned as an array (using the SDKs) or a comma-separated list (for direct API calls), and individual faces are separated with a pipe (
❘). For example:10,20,150,130❘213,345,82,61You can then use these coordinates to apply the overlay on the desired area.
0
Post is closed for comments.
Comments
1 comment