mesutpiskin / id-card-detector

:credit_card: Detecting the National Identification Cards with Deep Learning (Faster R-CNN)

Home Page:https://mesutpiskin.com/blog/opencv-egitim-serisi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NameError: name 'image_path' is not defined in id_card_detection_image.py

jeffrey008 opened this issue · comments

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

Am I missing something? Thanks!

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"