当前位置:   article > 正文

Java使用OpenCV_cvtype

cvtype
  1. import org.opencv.core.Core;
  2. import org.opencv.core.CvType;
  3. import org.opencv.core.Mat;
  4. public class Main {
  5. public static void main(String[] args) {
  6. System.out.println("Welcome to OpenCV " + Core.VERSION);
  7. System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
  8. Mat m = Mat.eye(3, 3, CvType.CV_8UC1);
  9. System.out.println("m = " + m.dump());
  10. }
  11. }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/650523
推荐阅读
相关标签
  

闽ICP备14008679号