Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I can create a separate encoding for each face in an image #1613

Open
Aljamimi-dev opened this issue Oct 5, 2024 · 0 comments
Open

How I can create a separate encoding for each face in an image #1613

Aljamimi-dev opened this issue Oct 5, 2024 · 0 comments

Comments

@Aljamimi-dev
Copy link

Aljamimi-dev commented Oct 5, 2024

  • face_recognition version: 1.3.0
  • Python version: 3.7.6
  • Operating System: windows 10

Description

I'm using these two lines to create the encoding of the faces in the webcam frame:
face_locations = face_recognition.face_locations(rgb_frame)
face_encodings = face_recognition.face_encodings(rgb_frame, face_locations)

but what I'm getting if there are more than one face in the frame:
for face_locations : [(167, 373, 322, 218)]
for face_encodings : one 128d array.

what I'm trying to get is for example if there are two faces in the frame, I want two 128d array for each face.
I will include the full file of the code.
inside.txt

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant