CvException
Caused by: CvException [org.opencv.core.CvException: cv::Exception: OpenCV(3.4.6) C:\build\3_4_winpack-bindings-win64-vc14-static\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor']
at org.opencv.imgproc.Imgproc.cvtColor_1(Native Method)
at org.opencv.imgproc.Imgproc.cvtColor(Imgproc.java:2347)
your input image is invalid
https://hastebin.com/ulomonoqoc.cs
Exception when I use the method
@Sempai, that simply cannot be. the code in your link does never call cvtColor().
please always check
img.empty()
afterimread()
@berak such an error with any method
@berak thank you!
please tell us, if the problem was the empty input image.