• 카테고리

    질문 & 답변
  • 세부 분야

    컴퓨터 비전

  • 해결 여부

    미해결

face_detection_dnn.py 오류문의

20.07.01 18:30 작성 조회수 85

0

아래 오류가 나는 이유가 뭘까요?

Traceback (most recent call last):

  File "/home/pi/COS/face_detection_dnn.py", line 43, in <module>

    print("width: {} pixels".format(img.shape[1]))

AttributeError: 'NoneType' object has no attribute 'shape'

답변 1

답변을 작성해보세요.

0

안녕하세요?

이런 경우는 대부분 읽어 오는 이미지가 제 위치에 없기 때문에 발생합니다.

이미지 파일이 있는지 확인해 주세요.

감사합니다.