Questions tagged [face-api]

Face API is a cloud-based service that provides advanced algorithm for face detection, verification, identification, and more.

Microsoft Face API is a cloud-based service that provides face algorithms.

Face API has two main functions:

  1. Face detection: detects up to 64 human faces with high precision face location in an image.

  2. Face recognition: provides functionality related to face verification, finding similar faces, face grouping, and person identification.

262 questions
3
votes
1 answer

Missing attribute types in Microsoft Face API (with Android). How can I use the Emotion attribute?

I am attempting to use Microsoft's Face API with Android Studio to make an app. For now, I'm just playing around with the API, but I am having an issue. Of the face attribute types that should be available (see on this page), the only attribute…
2
votes
0 answers

source map error in face api.js while running react app to detect face in webcam

I am trying to make a react js face recognition application using face-api.js for a client. but i keep getting the same error no matter what i do the code in App.js import * as faceapi from 'face-api.js'; import React from 'react'; function App()…
2
votes
1 answer

problem with importing @tensorflow/tfjs-node while working with face-api.js package (node.js)

i use @tensorflow/tfjs-node package for face-api.js package to speed up things (as they said ) that is my code : // import nodejs bindings to native tensorflow, // not required, but will speed up things drastically (python…
2
votes
0 answers

Web cam video doesn't start in browser. Rails 5

Hello I have a application in rails5 with face-api.js library for face recognition. But in my browser the video of webcam doesnt work and in my console doesnt show anywere errors. I'm not understand whats is happennig. This is my code of the…
theeplayer
  • 33
  • 5
2
votes
0 answers

TypeError: 'DetectedFace' object is not subscriptable AZURE COGNITIVE FACE

ERROR: File "identify.py", line 57, in faceIds.append(face['faceId']) TypeError: 'DetectedFace' object is not subscriptable CODE (Below is the code block) from msrest.authentication import CognitiveServicesCredentials from…
Arun Soorya
  • 447
  • 2
  • 9
2
votes
0 answers

How to precisely compute pitch, roll and yaw out of the 68 landmarks returned by face-api.js?

I am using face-api.js to extract facial landmarks from a video stream. Now I am trying to compute the head rotation based on these landmarks. I have been already able to estimate the roll and yaw. I have also tried the opencv.js solvePnP way, but…
Melkis H.
  • 179
  • 2
  • 10
2
votes
3 answers

Face API Python SDK "Image Size too Small" (PersonGroupPerson add_face_from_stream)

First things first, the documentation here says "JPEG, PNG, GIF (the first frame), and BMP format are supported. The allowed image file size is from 1KB to 6MB." I am sending a .jpg that is ~1.4 MB In my search, others who had this issue were custom…
2
votes
1 answer

Error Detecting Faces with Face-api.js Expected media to be of type HTMLImageElement | HTMLVideoElement | HTMLCanvasElement

I do not understand how I should send an HTMLImageElement to the detection routine of face-api.js.. I'm using node-red for this implementation.. I have this error : UnhandledPromiseRejectionWarning: Error: toNetInput - expected media to be of…
2
votes
1 answer

face api with Nodejs

I am using azure face api using node js, below is the code. However instead of the image hosted some where i want to use my local image and post it. i tried different options but it is not recognizing the image format or invalid image url below are…
SandeshR
  • 203
  • 2
  • 11
2
votes
2 answers

face-api.js load image file from disk

I tried the following to load an image from disk using face-api.js: faceapi.fetchImage(path.resolve(INPUT_DIR, 'input1.jpg'); It throws the following error: Error: fetch - missing fetch implementation for nodejs environment Is there any other way…
Abrar Hossain
  • 2,594
  • 8
  • 29
  • 54
2
votes
1 answer

Create FaceListId FaceAPI Microsoft Azure

What I'm using FaceAPI, AngularFire2, FireStore, Angular v6 What I'm trying to do I want Find similar faces with photo in Firebase Storage, I have the DownloadURL to compare. Issue I do not know how to create the FaceListId, I do not understand the…
2
votes
2 answers

"InvalidImageSize", "message": "Image size is too small."

Trying to use Microsoft's Face API in Node.js but I am not able to load local images. What am I doing wrong? Thanks I'm interfacing with a webcam and drawing the video out onto a canvas tag. var canvas = document.getElementById("myCanvas"); // get…
lemonlime
  • 21
  • 2
2
votes
1 answer

Rate limit exceeded in Face API

What should I do when i encountered rate limit exceeded for face api other than using Task.Delay(1000)? I have about 50 records and detect/identify/verify in 2 seconds. For the identifyasync, I set the confidence threshold to be 0.0f and the max…
Milky
  • 73
  • 1
  • 4
  • 12
2
votes
1 answer

Microsoft-cognitive Face API invalid subscription key

I tried both 'Key 1' and 'Key 2' of Face API from https://azure.microsoft.com/en-us/try/cognitive-services/my-apis/ in this. But am getting the following error. How can I get a new API key? or how can I fix this problem? { "error": { …
Ahmad.SA
  • 21
  • 3
2
votes
3 answers

Does Azure face api record person's face?

In azure face api we create a person and add face to person and we can identify same person. My question is when we add face to person does azure upload and save image on azure or just it stores mathematical attributes of person'a face.
Cozdemir
  • 177
  • 2
  • 19
1
2
3
17 18