Recognizing closest face to the web camera?

Open
#876 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by reviewing the face_recognition API and the webcam-related examples, then examine how face_locations and compare_faces are used. The issue asks whether closest-face detection is implemented, but it does not identify a file, entry point, or acceptance criteria, so the intended change needs clarification before implementation.

Written by the indexing model from the issue text.

Description

  • face_recognition version: latest
  • Python version: 3.7
  • Operating System: win 10
Description

I want to recognize only the closest face to the webcam.
How can I implement the same without calling compare_face() each time? until if another person detected OR cur_face_count != prev_face_count is TRUE.

What I Did

I found the closest face by finding max w*h value of the face_locaitons values.

IS there any implemented method available in the face_recog library to detect the closest face?

please advise.

Dominant language
Python
Stars
56.8k
Forks
13.7k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ageitgey/face_recognition

All issues in ageitgey/face_recognition

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.