NameError: name 'image_path' is not defined in id_card_detection_image.py
jeffrey008 opened this issue · comments
jeffrey008 commented
I got this error when running py id_card_detection_image.py
Traceback (most recent call last):
File "id_card_detection_image.py", line 105, in <module>
im = Image.open(image_path)
NameError: name 'image_path' is not defined
I also notice similar error in my IDE PyCharm, the red underlines are undefined variable.
Am I missing something? Thanks!
Mesut Pişkin commented
image_path and output_path is your physical file path, please define these variables, for example
image_path = "C:\Users\ali-veli-user\Desktop\my_input_photos.jpg"
output_path= "C:\Users\ali-veli-user\Desktop\detected_id.jpg"