CRNN-Keras icon indicating copy to clipboard operation
CRNN-Keras copied to clipboard

image resize issue in training.py

Open tykell opened this issue 5 years ago • 1 comments

img = cv2.resize(img,(self.img_w, self.img_h),None) cv2.error: OpenCV(3.4.4) /io/opencv/modules/imgproc/src/resize.cpp:3784: error: (-215:Assertion failed) !ssize.empty() in function 'resize'

I keep getting the above error inspite of resizing my images to 128x64 and I am not able to train the model because of this.

tykell avatar Mar 02 '19 13:03 tykell

You get this error because image have problem. Please check a path to your image. In Windows,character like "/" must be convert to "//". Ex: "./DB/train/" => ".//DB//train//".

quan7794 avatar Mar 05 '19 03:03 quan7794