face-recognition

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

How to do python .exe file with face_recognition module

大兔子大兔子 提交于 2020-03-23 04:26:11
问题 I did programm using face_recognition module and when I try to make .exe file for Windows it doesn't work. May be smb can tell me what to do? 回答1: Download the file shape_predictor_68_face_landmarks.dat from here http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 and extract it and place in C:\Users\YOUR_NAME\PycharmProjects\test_exe\dist\face_recognition_models\shape_predictor_68_face_landmarks.dat That needed file is a trained model for Dlib! 来源: https://stackoverflow.com

TypeError: stat: path should be string, bytes, os.PathLike or integer, not cv2.VideoCapture ,detect using neural network using mtcnn?

蹲街弑〆低调 提交于 2020-03-05 02:58:47
问题 i've tried to detect faces from my webcam , but it was only detect the first face which appeared in the first frame , then it will crush , i have used mtcnn to detection operation import cv2 i = 0 capture = cv2.VideoCapture(0) while(True): ret, frame = capture.read() frames_tracked = [] print('\rTracking frame: {}'.format(i + 1), end='') frame_pil = cv2.cvtColor(frame,cv2.COLOR_BGR2RGB) frame_pil = Image.fromarray(frame_pil) boxes,_ = mtcnn.detect(frame_pil) frame_draw = frame_pil.copy() draw

TypeError: stat: path should be string, bytes, os.PathLike or integer, not cv2.VideoCapture ,detect using neural network using mtcnn?

浪尽此生 提交于 2020-03-05 02:52:06
问题 i've tried to detect faces from my webcam , but it was only detect the first face which appeared in the first frame , then it will crush , i have used mtcnn to detection operation import cv2 i = 0 capture = cv2.VideoCapture(0) while(True): ret, frame = capture.read() frames_tracked = [] print('\rTracking frame: {}'.format(i + 1), end='') frame_pil = cv2.cvtColor(frame,cv2.COLOR_BGR2RGB) frame_pil = Image.fromarray(frame_pil) boxes,_ = mtcnn.detect(frame_pil) frame_draw = frame_pil.copy() draw

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

How to solve issue related to installation of dlib on Windows 10?

不羁岁月 提交于 2020-01-25 04:17:49
问题 I am trying to install dlib for face-recognition for python 3.7 on windows 10, I explored few ways but I am getting errors.I tried below steps- Installed cmake using 'pip install cmake'. This worked. Downloaed the Dlib source(.tar.gz) from the Python Package Index : https://pypi.org/project/dlib/#files extract it and enter into the folder. Ran the installation: python setup.py install I am getting below error. * *C:\Program Files\dlib-19.18.0>python setup.py install running install running

How to solve issue related to installation of dlib on Windows 10?

假装没事ソ 提交于 2020-01-25 04:17:37
问题 I am trying to install dlib for face-recognition for python 3.7 on windows 10, I explored few ways but I am getting errors.I tried below steps- Installed cmake using 'pip install cmake'. This worked. Downloaed the Dlib source(.tar.gz) from the Python Package Index : https://pypi.org/project/dlib/#files extract it and enter into the folder. Ran the installation: python setup.py install I am getting below error. * *C:\Program Files\dlib-19.18.0>python setup.py install running install running

Human face, emotion and voice recognition

别等时光非礼了梦想. 提交于 2020-01-22 08:33:23
问题 I am looking for a good face, emotion and voice recognition method in C# . For face recognition I was early using Emgu CV which is not accurate and performance is very low in low light conditions. Also I need to find user's emotion. Whether sad or happy like that. But I found its not easy with Emgu CV. Also for voice recognition I am not able to find any solutions yet, I found speech recognition but it is not what I need. I don't want to use any online API's. Can anybody suggest me any SDKs

Human face, emotion and voice recognition

折月煮酒 提交于 2020-01-22 08:31:19
问题 I am looking for a good face, emotion and voice recognition method in C# . For face recognition I was early using Emgu CV which is not accurate and performance is very low in low light conditions. Also I need to find user's emotion. Whether sad or happy like that. But I found its not easy with Emgu CV. Also for voice recognition I am not able to find any solutions yet, I found speech recognition but it is not what I need. I don't want to use any online API's. Can anybody suggest me any SDKs

specifying bounding boxes when adding faces to large_person_group_person in cognitive Face API

别等时光非礼了梦想. 提交于 2020-01-17 18:11:32
问题 What I'm trying to do is to use only face recognition without detection because I already have ground truth bounding box information. So I want to add faces to my large_person_group_person with my own bounding box information. Is there a way to specify bounding box information when using face add function? or other functions that supports this? The link below is the reference of face add function. https://westus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations