[在运行此部分代码时出现错误。尝试了一些现有的解决方案,但都无济于事

问题描述 投票:-1回答:1
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

python image-recognition
1个回答
0
投票

可能是您忘记了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
© www.soinside.com 2019 - 2024. All rights reserved.