Questions tagged [deepface]
56 questions
3
votes
0 answers
Wave2Lip usage and performance
The actual Question:
Currently opencv is used to write video frames in a single file. Can you append the audio as well directly or is there some other way so you can create small video snippets which can than be broadcastet via rtp protocoll or…

A.J
- 41
- 2
2
votes
0 answers
Camera does not open when attempting to run a face recognition program (opencv-python, deepface)
I am following a youtube tutorial (https://www.youtube.com/watch?v=pQvkoaevVMk), My camera isn't activating once the code is run, i tried googling answer but cant seem to figure it out. I am new to deepface and opencv-python.
here is my code
import…

hakopian_
- 21
- 2
1
vote
1 answer
How to disable the progress bar in DeepFace library?
I am using the DeepFace library to analyze emotions in a video. Here is the relevant code:
import cv2
from deepface import DeepFace
cap = cv2.VideoCapture("video.mp4")
prev_emotion = None
prev_time = 0
while True:
ret, frame = cap.read()
…

obk
- 23
- 5
1
vote
1 answer
Face identification on Google Cloud Function
I want to test if two pictures belong to the same person using Google Cloud Function. The function would recieve the images in base64 format. During runtime, these images would be converted to JPEG format and would be stored in a temporary folder.
I…

AbdullahHabib
- 43
- 9
1
vote
0 answers
DeepFace: Checking file extensions
I would like to use serengil/deepface library to process a bunch of images. However, some of the extensions are not processed by deepface such as CR2 files. Some of the files in the db_path are also videos or misc files. Is there a way to check the…

fobik35911
- 109
- 7
1
vote
2 answers
deepface: Don't print logs from MTCNN backend
I have a very simple code that I use for face detection from an image, for example:
from deepface.commons import functions
import numpy as np
random_image = np.random.randint(
0, 255, size=(360, 360, 3)
)
detected_face =…

Jaroslav Bezděk
- 6,967
- 6
- 29
- 46
1
vote
1 answer
DeepFace analyze function rises serialization issue
i would like to use deepface algorithm for detection human's emotion from the image, here is my code :
import cv2
from deepface import DeepFace
import numpy as np
import json
image =cv2.imread('emotion.jpg')
#json.dumps(image)
analyze…

Machine_Learning
- 35
- 5
1
vote
2 answers
Best image format for face detection and face recognition with the DeepFace library
I'm using the DeepFace library for face recognition and detection.
I was wondering if there is a better format (png, jpg, etc) than others to get better results.
Is there a preferred image format for face recognition and face detection generally?…

idan ahal
- 707
- 8
- 21
1
vote
0 answers
I am getting an OS Error while running deepface. analyse function
I am running Deepface Analyze on images and getting below error, please assist.
OSError: Unable to open file (truncated file: eof = 49623168, sblock->base_addr = 0, stored_eof = 538771776)

Nitin Arora
- 21
- 2
1
vote
0 answers
Deep face gives error saying ValueError: ('Confirm that ', 'Just Me.png', ' exists')
Ok so I am trying to make a face recognition login system but I keep on getting the same error.
Here is my code:
import cv2
import pyttsx3
from deepface import DeepFace
def take_picture():
print("Scanning Face...")
cap =…

F2Playz
- 11
- 2
1
vote
3 answers
What is the best approach for storing multiple vectors per person for face recognition
I want to make a face recognition for employees as work. I already have system that gets image from cameras and outputs face embeddings (128-dimensional vectors). So my next step, as far as I understand, is to compare these embeddings with the one…

NIKITOS
- 23
- 3
1
vote
0 answers
how to use multi-threading for optimizing face detection in django view?
this is my code and I want to optimize the performance how can I do this stuff parallel thread in python? any idea? i am useing this models :
"DEEPFACE_MODELS": "VGG-Face;DeepFace",
"DEEPFACE_BACKENDS": "opencv;ssd;dlib"
any suggestion about…

sina jamshidi
- 43
- 3
1
vote
1 answer
how to enforce deepface to generate embeddings for multiple faces in single image( assuming there are more than one face in given image)
I tried adding the following code, but I end up with the error from represent function saying :
TypeError: stat: path should be string, bytes, os.PathLike or integer, not dict
I understand that the first argument to represent function should be…

VISIONEST
- 11
- 1
- 2
1
vote
1 answer
ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context' import error on Raspi-pi 4
I'm getting the import error when trying to run a deepface code for a project I'm working on
Traceback (most recent call last):
File "face.py", line 3, in
from deepface import DeepFace
File…

Sa'ad
- 11
- 2
1
vote
2 answers
How to use DeepFace.detectFace() to actually detect a several faces in an image?
I am using deep face library in order to get several faces in one picture, DeepFace.detectFace(), only detect one face, but if I use the backends separately without use DeepFace I can extract all faces, is it possible to use DeepFace.detectFace() in…

Tlaloc-ES
- 4,825
- 7
- 38
- 84