Speed-Estimation-of-Vehicles-with-Plate-Detection icon indicating copy to clipboard operation
Speed-Estimation-of-Vehicles-with-Plate-Detection copied to clipboard

Scikit-learn version issue

Open Muhammad-MujtabaSaeed opened this issue 5 years ago • 0 comments

Hi, I am running your code for car number plate recognition, but it is giving me following error.

File "C:/Users/mujta/Desktop/Wizdojo/upwork projects/car project israel/Speed-Estimation-of-Vehicles-with-Plate-Detection/Speed_Estimation_&_License_Plate_Detection.py", line 886, in trackMultipleObjects()

File "C:/Users/mujta/Desktop/Wizdojo/upwork projects/car project israel/Speed-Estimation-of-Vehicles-with-Plate-Detection/Speed_Estimation_&_License_Plate_Detection.py", line 837, in trackMultipleObjects LPN[i] = detection(cropped_image[i])

File "C:/Users/mujta/Desktop/Wizdojo/upwork projects/car project israel/Speed-Estimation-of-Vehicles-with-Plate-Detection/Speed_Estimation_&_License_Plate_Detection.py", line 343, in detection result = model.predict(each_character)

File "C:\Anaconda\Anaconda3\lib\site-packages\sklearn\svm\base.py", line 548, in predict y = super(BaseSVC, self).predict(X)

File "C:\Anaconda\Anaconda3\lib\site-packages\sklearn\svm\base.py", line 310, in predict return predict(X)

File "C:\Anaconda\Anaconda3\lib\site-packages\sklearn\svm\base.py", line 326, in _dense_predict svm_type = LIBSVM_IMPL.index(self._impl)

AttributeError: 'SVC' object has no attribute '_impl'

Can you please tell that which version of Scikit-learn you have used to train the SVM model. So that I may use the same version to get the code running. Thanks

Muhammad-MujtabaSaeed avatar Jul 26 '19 14:07 Muhammad-MujtabaSaeed