Ask Your Question
0

kindly help me

asked 2018-12-17 11:43:39 -0600

Traceback (most recent call last): File "C:/Users/COMSATS/Downloads/Programs/intotoPyCV.py", line 3, in <module> face_cascade=cv2.CascadeClassfier('haarcascade_frontalface_default.xml'); AttributeError: 'module' object has no attribute 'CascadeClassfier'image description

edit retag flag offensive close merge delete

Comments

be kind to us, and replace the (useless) screenshot with a text version

(so we can quote you, it can be indexed for search, etc), thank you !

berak gravatar imageberak ( 2018-12-17 11:44:53 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2018-12-17 20:14:08 -0600

supra56 gravatar image

updated 2018-12-17 20:52:54 -0600

you're misspelled CascadeClassfier . Change this:

face_cascade=cv2.CascadeClassfier('haarcascade_frontalface_default.xml')

to

face_cascade=cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-12-17 11:43:39 -0600

Seen: 466 times

Last updated: Dec 17 '18