ageitgey / ageitgey/face_recognition

K_NN Example takes a long time for recognition

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

Nobody has claimed this yet.

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

Description

  • face_recognition version: Latest
  • Python version: 2.7
  • Operating System: MacOSX
Description

Trying to do real-time recognition with this library to scale up to almost 4000 people.

What I Did

I've tried to run the knn example, but it seems to pretty slow and takes almost 1 second for any image. This is not ideal because I want to be able to recognize faces coming in from a webcam in real time, like the other examples.

Is this an issue with KNN or how the example was set up?

Any advice for this problem? SVMs? Simple nparrays?

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.

Research direction

Start by running the KNN example described in the issue on the stated Python 2.7 and MacOSX setup, using the reported nearly 1-second-per-image behavior as the baseline. Investigate whether the delay comes from KNN or the example setup, and define completion as identifying the bottleneck and determining whether real-time recognition for roughly 4,000 people is feasible.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning, performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.