Advertisement
aironman

OpenCV

Jan 9th, 2020
208
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import org.opencv.core.Core;
  2. import org.opencv.core.CvType;
  3. import org.opencv.core.Mat;
  4.  
  5. public class Hello {
  6.  
  7. public static void main(String[] args) {
  8. // TODO Auto-generated method stub
  9. System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
  10. Mat mat = Mat.eye(3, 3, CvType.CV_8UC1);
  11. System.out.println("mat = " + mat.dump());
  12. }
  13.  
  14. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement