ageitgey / ageitgey/face_recognition

face_encodings make the code slow

Open
#705 2 comments 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: 1.2.3
  • Python version: 3.7
  • Operating System: win10
    cpu is i5-7300HQ
Description

when detection face in the use camera
face_encodings will make the cv2.imshow() show the frame slow.
and how can i make the code quick.
i test to use the model='cnn', it is also slow

i test to cut some line to know what make it slow, and cause by face_encodings

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 reproducing the camera path described in the issue with Python 3.7 on Windows 10, comparing frame timing with and without face_encodings. Inspect the interaction between face_encodings, the CNN model option, and cv2.imshow(). Done means identifying a practical way to avoid the reported slowdown and documenting the measured result.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, python
Domain
computer-vision, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.