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:解析时出现意外的EOF
可能是您忘记了for循环后使用选项卡吗?代替
for face_location in face_locations:
top , right, bottom , left = face_location
做
for face_location in face_locations:
top , right, bottom , left = face_location