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

AttributeError: 'NoneType' object has no attribute 'reshape' #2

Open
sumanth2k1 opened this issue Oct 8, 2022 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@sumanth2k1
Copy link


AttributeError Traceback (most recent call last)
Input In [22], in on_upload_change(change)
10 global selected_img
11 selected_img = cv2.imread(str(list(ImgUpload.value.keys())[0]), 0)
---> 12 selected_img = selected_img.reshape(selected_img.shape[0], selected_img.shape[1], 1)
14 image_before = Image(value=uploaded_file, width=256, height=256)
16 file = open("No-filter.png", "rb")

AttributeError: 'NoneType' object has no attribute 'reshape'

I did install all the requirements,
but unable to upload any images

@mahmoudai1 mahmoudai1 added the bug Something isn't working label Dec 17, 2022
@mahmoudai1 mahmoudai1 self-assigned this Dec 17, 2022
@mahmoudai1
Copy link
Owner

Does the issue still exist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants