Menu
Docs
Feedback
Login
You are viewing a section of Superface that will be
deprecated in Q4 2023
. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit
superface.ai/docs/migrate
.
Face Detection
computer-vision/face-detection@1.0.2
1 provider
Face Detection
FaceDetection
Detects faces on publicly-accessible image URL
Input
Image URL
Result
faces
Integrate
1.
Choose a provider
Mock implementation
google-apis-computer-vision
Request a missing provider
2.
Use
FaceDetection
with
mock
in your code
Below instructions are for our Node.js SDK.
Use OneService for other languages.
npm
i
@superfaceai/one-sdk
Copy
Copied!
Copy
Copied!
Structure details
Input (object)
imageUrl
required
Publicly-accessible image URL
string
Example
Copy
Copied!
Result (list of objects)
faces
required
list
faceRectangle
required
object
topLeft
required
object
x
optional
number
y
optional
number
topRight
required
object
x
optional
number
y
optional
number
bottomLeft
required
object
x
optional
number
y
optional
number
bottomRight
required
object
x
optional
number
y
optional
number
landmarks
required
list
kind
required
enum
leftPupil
eyeLeftOuter
eyeLeftTop
eyeLeftBottom
eyeLeftInner
rightPupil
eyeRightOuter
eyeRightTop
eyeRightBottom
eyeRightInner
eyebrowLeftOuter
eyebrowLeftInner
eyebrowRightInner
eyebrowRightOuter
noseTip
noseRootLeft
noseRootRight
mouthLeft
mouthRight
x
required
number
y
required
number
emotions
required
object
happiness
required
enum
unknown
veryUnlikely
unlikely
possible
likely
veryLikely
anger
required
enum
unknown
veryUnlikely
unlikely
possible
likely
veryLikely
sadness
required
enum
unknown
veryUnlikely
unlikely
possible
likely
veryLikely
surprise
required
enum
unknown
veryUnlikely
unlikely
possible
likely
veryLikely
Example
Copy
Copied!
Implementation details
Provider
mock
Use case
FaceDetection
Author
@superface
Source
View source
Verified