Skip to content

Instantly share code, notes, and snippets.

@vaskoz
Created June 8, 2013 22:43
Show Gist options
  • Save vaskoz/5736891 to your computer and use it in GitHub Desktop.
Save vaskoz/5736891 to your computer and use it in GitHub Desktop.
Java version of OpenCvExample. Works as expected.
import org.opencv.core.Core;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
public class OtherMain {
static { System.loadLibrary(Core.NATIVE_LIBRARY_NAME); }
public static void main(String[] args) {
Mat m = Mat.eye(3, 3, CvType.CV_8UC1);
System.out.println("m = " + m.dump());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment