Hello,
I got the following error when I run blink_video.py with latest scikit-learn-versions > 0.23:
[INFO] loading facial landmark predictor...
/usr/lib/python3/dist-packages/requests/init.py:89: RequestsDependencyWarning: urllib3 (1.26.6) or chardet (4.0.0) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
File "blink_video.py", line 581, in
blink_detector(output_file,path)
File "blink_video.py", line 315, in blink_detector
loaded_svm = pickle.load(open('Trained_SVM_C=1000_gamma=0.1_for 7kNegSample.sav', 'rb'))
ModuleNotFoundError: No module named 'sklearn.svm.classes'
And this one with earlier versions (<=0.23) :
[INFO] starting video stream thread...
Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
/usr/lib/python3/dist-packages/requests/init.py:89: RequestsDependencyWarning: urllib3 (1.26.6) or chardet (4.0.0) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
Traceback (most recent call last):
File "blink_video.py", line 581, in
blink_detector(output_file,path)
File "blink_video.py", line 444, in blink_detector
IF_Closed_Eyes = loaded_svm.predict(EAR_series.reshape(1,-1))
File "/home/samber9ellas/.local/lib/python3.8/site-packages/sklearn/svm/_base.py", line 606, in predict
if self.break_ties and self.decision_function_shape == 'ovo':
AttributeError: 'SVC' object has no attribute 'break_ties'