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

I need help with this error. #28

Closed rohitpeesa closed 6 years ago

rohitpeesa commented 6 years ago

NameError Traceback (most recent call last)

in () 29 print("Cross Validation Result for ", str(num_of_fold), " -fold") 30 print(accuracy_result * 100) ---> 31 current_dir = os.path.dirname(os.path.realpath(__file__)) 32 training_dataset_dir = os.path.join(current_dir, 'train') 33 image_data, target_data = read_training_data(training_dataset_dir) NameError: name '__file__' is not defined
femioladeji commented 6 years ago

@rohitpeesa what did you run to get this error? However, the error is quite self explanatory, you can try printing file just before that line to ensure that it's defined.

rohitpeesa commented 6 years ago

ok thanks

On 13 June 2018 at 00:59, Oladeji Femi notifications@github.com wrote:

@rohitpeesa https://github.com/rohitpeesa what did you run to get this error? However, the error is quite self explanatory, you can try printing file just before that line to ensure that it's defined.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andela-foladeji/License-Plate-Recognition-Nigerian-vehicles/issues/28#issuecomment-396706175, or mute the thread https://github.com/notifications/unsubscribe-auth/AcHEogi57WVmazndERskZZUIVDaS2PKiks5t8BaZgaJpZM4Uis6A .