강의

멘토링

커뮤니티

Inflearn Community Q&A

sm75963931's profile image
sm75963931

asked

[OpenCV] Python Deep Learning Image Processing Project 2 - Find the Bad Apples!

OpenCV dnn Face Detection Code Explanation 1

face_detection_dnn.py 오류문의

Written on

·

145

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'

tensorflow딥러닝kerasopencv컴퓨터-비전

Answer 1

0

nomad님의 프로필 이미지
nomad
Instructor

안녕하세요?

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

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

감사합니다.

sm75963931's profile image
sm75963931

asked

Ask a question