Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scikit-learn version issue #1

Open
Muhammad-MujtabaSaeed opened this issue Jul 26, 2019 · 0 comments
Open

Scikit-learn version issue #1

Muhammad-MujtabaSaeed opened this issue Jul 26, 2019 · 0 comments

Comments

@Muhammad-MujtabaSaeed
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant