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

Home Page:https://blog.devcenter.co/developing-a-license-plate-recognition-system-with-machine-learning-in-python-787833569ccd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I need help with this error.

rohitpeesa opened this issue · comments

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

@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.