ageitgey / ageitgey/face_recognition

face_encodings method freezes program on raspberry pi

Open
#119 8 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: Latest
  • Python version: 3.4.2
  • Operating System: Raspbian Jessie
Description

Thanks for making this - it is awesome.

The face_encodings method seems to freeze the python shell. No error - the shell just stops printing or doing anything:

obama_image = face_recognition.load_image_file("obama_small.jpg")
print("image loaded")
obama_face_encoding = face_recognition.face_encodings(obama_image)[0]
print("image encoded")

The above code just returns:

image loaded

Any idea how to fix this?

What I Did

Paste the command(s) you ran and the output.
I just run the program with python3 facerec_on_raspberry_pi.py

If there was a crash, please include the traceback here.

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

Reproduce the freeze with facerec_on_raspberry_pi.py on Python 3.4.2 and Raspbian Jessie, starting from the face_recognition.face_encodings(obama_image) call. Investigate why execution stops after “image loaded”; done means the encoding call returns and the program prints “image encoded” without freezing.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, raspberry-pi
Domain
computer-vision, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.