ageitgey / ageitgey/face_recognition

dont know where to save image I want to scan

Open
#697 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:
  • Python version:9
  • Operating System:OSX
    I get an error whenever i try to run my test program this is the error message:
    Traceback (most recent call last):
    File "/Users/nathaadmin/Documents/face_recog.py", line 2, in
    image = face_recognition.load_image_file("My_Image.png")
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/face_recognition/api.py", line 83, in load_image_file
    im = PIL.Image.open(file)
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/PIL/Image.py", line 2609, in open
    fp = builtins.open(filename, "rb")
    IsADirectoryError: [Errno 21] Is a directory: 'My_Image.png'

I named the photo I want scanned My_Image.png

this is my code:

import face_recognition
image = face_recognition.load_image_file("My_Image.png")
face_locations = face_recognition.face_locations(image)

i have my photo saved in my Downloads file

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 with the reported call to face_recognition.load_image_file("My_Image.png") and compare it with the image location in the Downloads folder. Check the traceback and the documented path requirements; the issue is resolved when the example clearly explains how to provide the image file path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.