module 'cvzone' has no attributed 'Classifier'

163 Views Asked by At

Trying to make a program identifying sign language but encountered this problem. Im expecting it to use my webcam to see which ASL sign I am showing on the webcam.

screenshot of the error I'm getting

1

There are 1 best solutions below

0
Tanmay Kumar On

They moved Classifier into the ClassificationModule in 1.5.4 version of cvzone. Now, the way to do it would be to import-

from cvzone.ClassificationModule import Classifier

and then

myClassifier = Classifier('MyModel/keras_model.h5','MyModel/labels.txt')