OpenCV in Java, why can't I use Mat.CvType.CV_8UC1?

If I try to write this code Mat.CvType.CV_8UC1 I get an error CvType cannot be resolved or is not a field. What am I missing? I think I added the correct library and DLL in the project properties because everything else works. I need to find those CV_8UC1 CV_8UC2 etc.

+5
source share
1 answer

You can try using CvType.CV_8UC1insted fromMat.CvType.CV_8UC1

+9
source

All Articles