see the last update improvements on EdgeDrawing · opencv/opencv_contrib@081bebd · GitHub
maybe input image is not CV_8UC1