(Yashraj Shrivastava) #1

“error: (-215) size.width>0 && size.height>0 in function cv::reshape”. This error occurs when I retrieve images from a directory and try to reshape them for further processing. On research, I found out that this error might be because I am not reading the images properly but the image label is successfully imported and my code runs just the considering the labels without accounting for images and delivers incorrect results.

I am trying to build an image classifier using logistic regression from an open source code available on kaggle.

Help would be appreciated.
Thanks in advance!