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
250 stars 126 forks source link

cannot recognize test image. #36

Closed twinwood closed 5 years ago

twinwood commented 5 years ago

When try to test your code with your test image, I get below error:

File "D:\carplate\License-Plate-Recognition-Nigerian-vehicles-master\deepMachine.py", line 33, in classify_objects result_index = self.letters.index(result[0]) ValueError: b'E' is not in list

femioladeji commented 5 years ago

Hi @neverlog I think it has to do with string encoding in python 3, it’s possible the string was converted to bytes. You may need to call a .decode() method. Check out this stackoverflow question https://stackoverflow.com/questions/37016946/remove-b-character-do-in-front-of-a-string-literal-in-python-3

anil-ajax commented 5 years ago

Not sure how to use the code given in solution. Can you share updated lines in deepmachine.py