ageitgey / ageitgey/face_recognition

File Not Found Error

Open
#804 2 comments 1 reaction 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:
  • Python version:
  • Operating System:
Description

Amazing code btw, I am a beginner and I copied the code for the live webcam into my windows 10 command prompt, I changed the first image and face encoding to put my own in there, but it says it can't be found.

What I Did

This is what i changed

me_image = face_recognition.load_image_file("me.jpg")
me_face_encoding = face_recognition.face_encodings(me_image)[0]

This is what I get

Traceback (most recent call last):
  File "live_face_camera_add_people", line 14, in <module>
    me_image = face_recognition.load_image_file("me.jpg")
  File "C:\Users\jnort\AppData\Local\Programs\Python\Python37-32\lib\site-packages\face_recognition\api.py", line 83, in load_image_file
    im = PIL.Image.open(file)
  File "C:\Users\jnort\AppData\Local\Programs\Python\Python37-32\lib\site-packages\PIL\Image.py", line 2652, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'me.jpg'
[ WARN:0] terminating async callback

Please Help!!!

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 traceback from live_face_camera_add_people on Windows and inspect how the example passes me.jpg to face_recognition.load_image_file. A useful resolution would clarify or correct the example's image-file setup and verify that it runs without the reported FileNotFoundError.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.