femioladeji / License-Plate-Recognition-Nigerian-vehicles

A python program that uses the concept of OCR using machine learning to identify the characters on a Nigerian license plate
https://blog.devcenter.co/developing-a-license-plate-recognition-system-with-machine-learning-in-python-787833569ccd
251 stars 126 forks source link

localization #32

Closed alixdehghani closed 5 years ago

alixdehghani commented 5 years ago

I have an issue with localization package that you used in line: label_image = measure.label(localization.binary_car_image) then i get this Error:

`> Traceback (most recent call last):

File "medium2.py", line 31, in label_image = measure.label(localization.binary_car_image) AttributeError: module 'localization' has no attribute 'binary_car_image'`

what's your solution? thanks

femioladeji commented 5 years ago

That's weird @alixdehghani. When you executed the localization.py file did it work?

alucard079 commented 5 years ago

@alixdehghani @femioladeji I'm currently looking in your blog. I have done installing the dependencies. I'm now with the localization.py step and downloading the car.jpg and in the directory of /home/nigel/license-plate-recognition, where should I create the localization.py?

Do I have to clone it first the full project?

Please help me, thanks!

alixdehghani commented 5 years ago

I remove import localization and all dependencies then it work correctly.

nisyjohn commented 5 years ago

I am also getting the following error:

AttributeError: module 'localization' has no attribute 'binary_car_image'

Could anyone help in resolving this? Any suggestions?

Vishnukvsvk commented 4 years ago

I am too getting same error. Someone please give a solution to this,

EvyW commented 4 years ago

Just don't import "localization", or comment it, like this: #import localization And then remove also "localization" in your code so that it looks like this:

label_image = measure.label(binary_car_image)
fig, (ax1) = plt.subplots(1)
ax1.imshow(gray_car_image, cmap="gray");

Then it will be ready and will show you the image of the car with a red square around the license plate :)

IVleina commented 4 years ago

Thank you!!