Open afrozchakure opened 4 years ago
getting error
File "id_card_detection_image.py", line 103, in
Replaced image_path with PATH_TO_IMAGE fixed above error
File "id_card_detection_image.py", line 105, in
define output_path in the code fixed above error
but getting new error not sure where to fix
Traceback (most recent call last): File "/Users/amashi/PycharmProjects/claydesk/venv/lib/python3.7/site-packages/PIL/Image.py", line 2082, in save format = EXTENSION[ext] KeyError: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "id_card_detection_image.py", line 106, in
getting error
File "id_card_detection_image.py", line 103, in im = Image.open(image_path) NameError: name 'image_path' is not defined
Replaced image_path with PATH_TO_IMAGE fixed above error
File "id_card_detection_image.py", line 105, in im.crop((left, top, right, bottom)).save(output_path, quality=95) NameError: name 'output_path' is not defined
define output_path in the code fixed above error
but getting new error not sure where to fix
Traceback (most recent call last): File "/Users/amashi/PycharmProjects/claydesk/venv/lib/python3.7/site-packages/PIL/Image.py", line 2082, in save format = EXTENSION[ext] KeyError: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "id_card_detection_image.py", line 106, in im.crop((left, top, right, bottom)).save(output_path, quality=95) File "/Users/amashi/PycharmProjects/claydesk/venv/lib/python3.7/site-packages/PIL/Image.py", line 2084, in save raise ValueError("unknown file extension: {}".format(ext)) ValueError: unknown file extension:
Fixed the error by passing correct output_path
Things that can be added to the README.md file :