Questions tagged [facial-identification]

115 questions
12
votes
1 answer

Customize biometricPrompt

I have problem with customization biometricPrompt in android devices. I use only authorization with fingerprint, but some devices with android 9.0 (for example Samsung Galaxy S10+) for authorization use fingerprint if allowed but the same with…
9
votes
7 answers

OpenCV 4.0.0 SystemError: returned a result with an error set

Hello I am trying to create a facial recognition program but I have a peculiar error: here is my code: import cv2 as cv gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY) face_cascade = cv.CascadeClassifier("lbpcascade_frontalface.xml") faces =…
Tyler Strouth
  • 753
  • 3
  • 8
  • 14
5
votes
1 answer

OpenCV 4 TypeError: Expected cv::UMat for argument 'labels'

I am writing a facial recognition program and I keep getting this error when I try to train my recognizer TypeError: Expected cv::UMat for argument 'labels' my code is def detect_face(img): gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) …
Tyler Strouth
  • 753
  • 3
  • 8
  • 14
4
votes
3 answers

How do I fix "RuntimeError: Unable to open shape_predictor_68_face_landmarks.dat" while using google colab?

I am writing the following Python code in Google Colaboratory and get an error: Code: import cv2 import dlib cap = cv2.VideoCapture(0) hog_face_detector = dlib.get_frontal_face_detector() dlib_facelandmark =…
4
votes
3 answers

Using MTCNN with a webcam via OpenCV

I wish to be able to use a webcam and utilize MTCNN as the primary facial detector. Just as one can use Haar Cascades, I want to use MTCNN to find faces on my webcam This video is about breaking MTCNN, but nonetheless provides insight into my goal:…
4
votes
2 answers

Streaming webcam video to AWS Kinesis?

I know this might be a relatively generic question, but I'm trying to see how I can get pointed in the right direction... I'm trying to build a live face recognition app, using AWS Rekognition. I'm pretty comfortable with the API, and using static…
nukalov
  • 1,309
  • 13
  • 18
3
votes
1 answer

Can I load and train a Keras model again with new targets?

I am aware that that after training a Neural Network model already, I could save it and in the future load the model to train again. However, what if I would like to incorporate new targets into the model to train? For instance, I am building a face…
3
votes
0 answers

"Windows fatal exception: access violation" error on running Python app

the full error is: Windows fatal exception: access violation Current thread 0x0000160c (most recent call first): File "E:\ml\projects\face swap\New folder\app.py", line 36 in File…
vIvId_gOat
  • 358
  • 2
  • 13
3
votes
1 answer

BiometricManager on Android 9

Android 9/Android P (API 28) is said to support facial recognition via BiometricPrompt. All of the tutorials that I've read use BiometricManager for detecting Facial recognition support - but this class wasn't added until API 29 (Android 10/Android…
3
votes
1 answer

How to get the face position detection inside video using face-api?

I am using face-api library. https://github.com/justadudewhohacks/face-api.js I am trying to get the face position inside the video. I would like to make an application. It can set my face first position. And then it can give info how much my face…
Nao
  • 1,363
  • 2
  • 7
  • 8
3
votes
2 answers

Facial recognition with color images?

In many examples across the web of facial recognition with OpenCV, i see images being converted to grayscale as part of the "pre-processing" for the facial recognition functionality. What would happen if a color image was used for facial…
user1431072
  • 1,272
  • 2
  • 13
  • 32
3
votes
0 answers

Choosing LBP sampling points and radius for good facial features

I am trying to do some feature engineering on facial images using Python and OpenCV. The idea is to use those features for unsupervised learning to group images of the same person together. The pipeline is as follows: Choose one of several OpenCV…
2
votes
1 answer

How to remove background and video from facial landmarks

Im using this code to detect teh 468 facial landmarks from a face: import cv2 import mediapipe as mp import time cap = cv2.VideoCapture(0) pTime = 0 mpDraw = mp.solutions.drawing_utils mpFaceMesh = mp.solutions.face_mesh faceMesh =…
2
votes
1 answer

I am working on a facial recognition and attendance system which writes the name and time in a CSV file, but the same person is logged multiple times

I am working on a facial recognition and attendance system which writes the name and time in a CSV file.In order to avoid logging the same person for multiple 'in' times i am writtng a logic which checks if the name is present in the attendance log…
2
votes
1 answer

Unable to import a keras application

I am trying to use a keras application in pycharm. I start my script off with the following imports: from keras_vggface.vggface import VGGFace from keras_vggface.utils import preprocess_input from keras_vggface.utils import decode_predictions Upon…
Alex Jun
  • 29
  • 1
  • 1
  • 4
1
2 3 4 5 6 7 8