I'm doing the processing of files containing accents and special letters such as "No", so when you try to rotate the image or resize using Imgproc, the following error is issued:
Message on Rotate
" OpenCV Error: Assertion failed (src.cols > 0 && src.rows > 0) in cv::warpAffine, file ........\opencv\modules\imgproc\src\imgwarp.cpp, line 3455 Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: ........\opencv\modules\imgproc\src\imgwarp.cpp:3455: error: (-215) src.cols > 0 && src.rows > 0 in function cv::warpAffine ] at org.opencv.imgproc.Imgproc.warpAffine_2(Native Method) at org.opencv.imgproc.Imgproc.warpAffine(Imgproc.java:9559) at juca.bastiao.Processor.autoRotate(Processor.java:258) at juca.bastiao.Processor.doResize(Processor.java:91) at juca.bastiao.Processor.resizeToFile(Processor.java:52) at juca.bastiao.Testes.main(Testes.java:30) "
Message on Resize
OpenCV Error: Assertion failed (ssize.area() > 0) in cv::resize, file ........\opencv\modules\imgproc\src\imgwarp.cpp, line 1834 Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: ........\opencv\modules\imgproc\src\imgwarp.cpp:1834: error: (-215) ssize.area() > 0 in function cv::resize ] at org.opencv.imgproc.Imgproc.resize_1(Native Method) at org.opencv.imgproc.Imgproc.resize(Imgproc.java:8959) at juca.bastiao.Processor.doResize(Processor.java:111) at juca.bastiao.Processor.resizeToFile(Processor.java:52) at juca.bastiao.Testes.main(Testes.java:30)