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

Error::!ssize.empty() in function 'cv::resize' #11

Open
fngwira14 opened this issue Dec 23, 2019 · 7 comments
Open

Error::!ssize.empty() in function 'cv::resize' #11

fngwira14 opened this issue Dec 23, 2019 · 7 comments

Comments

@fngwira14
Copy link

Code::

read the image and resize it to a fixed-size

image = cv2.imread(file)
image = cv2.resize(image, fixed_size)

Error:::

error Traceback (most recent call last)
in
1 # read the image and resize it to a fixed-size
2 image = cv2.imread(file)
----> 3 image = cv2.resize(image, fixed_size)

error: OpenCV(4.1.1) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:3720: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

@fngwira14
Copy link
Author

Greetings @Gogul09 , I am using the code but on a different dataset with 100 images and i have that error this is coming out after running the code. Is it possible to have your support, sorry for the disturbance.

@antaovanessa1
Copy link

Greetings @Gogul09 , I am using the code but on a different dataset with 100 images and i have that error this is coming out after running the code. Is it possible to have your support, sorry for the disturbance.

Even i have the same issue Plaese help @Gogul09

@nirupamudoi
Copy link

Greetings @Gogul09 , I am using the code but on a different dataset with 100 images and i have that error this is coming out after running the code. Is it possible to have your support, sorry for the disturbance.

did u solve the issue?

@antaovanessa1
Copy link

Greetings @Gogul09 , I am using the code but on a different dataset with 100 images and i have that error this is coming out after running the code. Is it possible to have your support, sorry for the disturbance.

did u solve the issue?

hey make sure all your images(100) are numbered (from 1-100). Also make sure to change images_per_class accordingly in the code.

@nirupamudoi
Copy link

nirupamudoi commented Jul 2, 2020 via email

@antaovanessa1
Copy link

antaovanessa1 commented Jul 2, 2020 via email

@antaovanessa1
Copy link

Hey there, each class of my dataset consists of images that I have arranged in ascending order. I have about 6000 images in each class. But even after I arranged all the images from 1-6000 I still get this error. Can u please elaborate how u solved this issue?

On Wed, 6 May, 2020, 8:36 pm antaovanessa1, @.***> wrote: Greetings @Gogul09 https://github.com/Gogul09 , I am using the code but on a different dataset with 100 images and i have that error this is coming out after running the code. Is it possible to have your support, sorry for the disturbance. did u solve the issue? hey make sure all your images(100) are numbered (from 1-100). Also make sure to change images_per_class accordingly in the code. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#11 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJSA4MQ2PTKDDBSZRHSYPH3RQF4IHANCNFSM4J6O4MWA .

Make sure all your images are of the same format (.jpg)

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

No branches or pull requests

3 participants