背景差分算法运行时出现错误
我在做背景差分程序运行时控制台输出下面这一串,有朋友知道是怎么解决的吗 谢谢!
Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.1.0) C:\build\master_winpack-bindings-win64-vc14-static\opencv\modules\core\src\matrix.cpp:757: error: (-215:Assertion failed) dims <= 2 && step[0] > 0 in function 'cv::Mat::locateROI'
]
at org.opencv.imgproc.Imgproc.erode_2(Native Method)
at org.opencv.imgproc.Imgproc.erode(Imgproc.java:2690)
at neal.tuweiqiang.javase.Test.readFile(Test.java:57)
at neal.tuweiqiang.javase.Test.main(Test.java:19)