face_recognition icon indicating copy to clipboard operation
face_recognition copied to clipboard

IndexError: list index out of range

Open zatarra97 opened this issue 4 years ago • 3 comments

  • face_recognition version:
  • Python version: 3.8
  • Operating System: Linux Mint

Description

I simply paste all the code and install libraries, but I've got this error: IndexError: list index out of range

What I Did

Complete Output:
Traceback (most recent call last):
  File "/home/[USER]/Desktop/face_recognition/system.py", line 19, in <module>
    obama_face_encoding = face_recognition.face_encodings(obama_image)[0]
IndexError: list index out of range

zatarra97 avatar Jun 15 '21 08:06 zatarra97

you can do this

I am attaching a file.

viv2712 avatar Aug 27 '21 16:08 viv2712

I am doing pull request of my code u can check it out

viv2712 avatar Aug 29 '21 19:08 viv2712

this is probably because no faces were found

Abelkrijgtalles avatar Sep 03 '23 14:09 Abelkrijgtalles