-2
for face_location in face_locations:
top , right, bottom , left = face_location
print("A face is located at the pixel locations Top: {} , Right:{} , Left: {} , Bottom: {}.")

   **** I always get this error:****

 File "<ipython-input-55-23558b69803e>", line 1
for face_location in face_locations:

^SyntaxError: unexpected EOF while parsing

Ashi
  • 3
  • 2

1 Answers1

0

Could it be that you forgot to use a tab after the for loop? instead of

for face_location in face_locations:
top , right, bottom , left = face_location

do

for face_location in face_locations:
    top , right, bottom , left = face_location
snatchysquid
  • 1,283
  • 9
  • 24