Closed albrrt closed 4 years ago
I solved it by adding Utils.setDebugMode(true, false);
before the issue line and reading the log in the console:findCountours()
only accepts CvType.CV_8UC1 and my Mat was CV_8UC4...
Leaving the solution here in case someone runs into a similar issue
I am trying to findCountours of a threshold mat using
But I'm getting the following error:
invertedBinaryMat
is a Mat obtained viaImgproc.threshold (srcMat, invertedBinaryMat, 100, 300, Imgproc.THRESH_BINARY_INV);
I am using the OpenCV for Unity trial on Unity 2018.2.20f1 and MacOS 10.14.6 before purchasing the asset.
What does this error mean and what can I do to solve it? Thank you