face-api

face api with Nodejs

烈酒焚心 提交于 2021-01-27 18:11:31
问题 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 the things i have tried 1) var stream = fs.createReadStream('local image url'); 2) var imageAsBase64 = fs.readFileSync('image.jpg','base64'); below is the code 'use strict'; const request = require('request'); // Replace <Subscription Key> with

Using Azure Face Api in Python, How to Return a single faceId or a group of FaceIds if the same person is detected in Video Stream?

爷,独闯天下 提交于 2021-01-25 03:58:33
问题 I am using Azure Face APi to detect faces in video stream, but for each detected face Azure returns a unique faceId( which is exactly what the documentation says). The problem is, Let's say Mr.ABC appears in 20 video frames, 20 unique faceIds gets generated. I want something that Azure Face should return me a single faceId or a group of FaceIds generated particularly for Mr.ABC so that I can know that its the same person that stays in front of camera for x amount of time. I have read the

Cognitive Services - How to add multiple Faces from a Live Stream to Azure FaceList ? (Python)

安稳与你 提交于 2021-01-01 09:22:24
问题 Problem Background: I have created an Azure FaceList and I am using my webcam to capture live feed and: sending the stream to Azure Face Detect getting Face Rectangle returned by Face Detect using the returned Face rectangle to add Face Detected from Live Video Stream to my FaceList. (I need to create Face List in order to solve the problem I explained in my other question which is answered by Nicolas, which is what I am following) Problem Details: According to Azure FaceList documentation at

“InvalidImageSize”, “message”: “Image size is too small.”

痞子三分冷 提交于 2020-06-28 06:27:28
问题 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 the canvas from the page var ctx = canvas.getContext("2d"); I have checked that I am getting an image using var filename = new Date(); var imgData = canvas.toDataURL('image/jpeg'); var link = document.getElementById('saveImg'); link.href = imgData;

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

倖福魔咒の 提交于 2020-03-23 08:19:15
问题 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 forming packets and ran into issues chunk transfering images. however unlike the others I am not forming my own API call, just passing a jpg to the python sdk. What is going wrong/what am I missing? The error is: getting image, start time opening

APIErrorException: (BadArgument) 'recognitionModel' is incompatible :AZURE COGNITIVE FACE

眉间皱痕 提交于 2020-03-05 00:34:33
问题 I'm creating an attendance system using AZURE COGNITIVE FACE API. I am storing the attendance in an excel sheet. But there occurs an error " 'recognitionModel' is incompatible." From the documentation I have come to know that there are two recognition models(recognition_01 , recognition_02). Is it required to mention the type? If so how to do it in python? ERROR: File "identify.py", line 58, in <module> res = face_client.face.identify(faceIds, global_var.personGroupId) File "C:\Python

face-api.js load image file from disk

喜你入骨 提交于 2020-01-16 08:14:07
问题 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 of load image from disk and displaying using nodejs? 回答1: The reason it fails because you need to implements the fetch function for it to work. FetchImage should be used when you are trying to retrieve the image from online. If you are using the

Access denied due to invalid subscription key (Face API)

ε祈祈猫儿з 提交于 2019-12-29 06:44:09
问题 I am having trouble using Microsoft Face API. Below is my sample request: curl -v -X POST "https://westus.api.cognitive.microsoft.com/face/v1.0/detect?returnFaceId=true&returnFaceLandmarks=false&returnFaceAttributes=age,gender" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: 1xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxd" --data-ascii "{\"url\":\"http://www.mrbeantvseries.co.uk/bean3.jpg\"}" I use the subscription id from my cognitive services account and I got below response: {

Unable to find Subscription Key for Microsoft Cognitive Services

我怕爱的太早我们不能终老 提交于 2019-12-21 04:51:27
问题 I need to work on Microsoft Cognitive Services (Face API). I downloaded the code from https://github.com/Microsoft/Cognitive-face-android. Now I am unable to generate the Subscription Key for it. No matter whatever I do I get stuck in this page From where else I can find the Subscription Key. Thanks 回答1: The interface you are using is for testing-purposes. Consequently, it is not meant to be used for more than a month. Here's how you can generate an API key the proper way: Newer Edit: The

Unable to find Subscription Key for Microsoft Cognitive Services

怎甘沉沦 提交于 2019-12-21 04:51:24
问题 I need to work on Microsoft Cognitive Services (Face API). I downloaded the code from https://github.com/Microsoft/Cognitive-face-android. Now I am unable to generate the Subscription Key for it. No matter whatever I do I get stuck in this page From where else I can find the Subscription Key. Thanks 回答1: The interface you are using is for testing-purposes. Consequently, it is not meant to be used for more than a month. Here's how you can generate an API key the proper way: Newer Edit: The