Skip to content

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

@sumanth2k1

Description

@sumanth2k1

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions