Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add performance metrics for the README.md #26

Open
afrozchakure opened this issue May 11, 2020 · 2 comments
Open

Add performance metrics for the README.md #26

afrozchakure opened this issue May 11, 2020 · 2 comments
Labels

Comments

@afrozchakure
Copy link

afrozchakure commented May 11, 2020

Things that can be added to the README.md file :

  • Add performance metrics for the program such as accuracy when working on a number of images.
  • Analysis of time and memory space taken while running the model.
@amashi01
Copy link

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:

@amashi01
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants