Question about faceapi.detectAllFaces return

68 views Asked by At

I'm using faceapi.detectAllFaces.

I need to know if, indeed, a face was detected or if the video was without any face.

When I return the content of faceapi.detectAllFaces, it only returns {objectct Object].

But I just need to know if a face was detected or not.

How can I access this return?

1

There are 1 answers

0
Akin Zeman On
const faces = await faceapi.detectAllFaces(...
if (!faces.length) {
//...
}