Ubuntu中配置Eclipse For Using OpenCV (Java)

Ubuntu中配置Eclipse For Using OpenCV (Java)

添加OpenCV

  • Window -> Preferences -> Java -> Build Path -> User Libraries ->Press NewUbuntu中配置Eclipse For Using OpenCV (Java)
  • 设置LIBNAME并单击确定Ubuntu中配置Eclipse For Using OpenCV (Java)
  • 添加外部JAR;通过浏览 ~/OpenCV/ .... /build/bin andopencv-246.jar; 按确定Ubuntu中配置Eclipse For Using OpenCV (Java)
  • 选择本机库的位置,然后按编辑;外部文件夹;  通过浏览 ~/OpenCV/ .... /build/lib and press Ok; press Ok, press OkUbuntu中配置Eclipse For Using OpenCV (Java)
  • restart Eclipse

OpenCV的教程测试建立项目

  • File -> New -> Java project -> press FinishUbuntu中配置Eclipse For Using OpenCV (Java)
  • Project -> Properties -> Add Library -> User Library (press Next) - > chose OpenCV 2.6.4 -> press finishUbuntu中配置Eclipse For Using OpenCV (Java)
  • File -> New -> Class -> press FinishUbuntu中配置Eclipse For Using OpenCV (Java)
  • 代码粘贴到一个新创建的类,然后按运行

    Ubuntu中配置Eclipse For Using OpenCV (Java)

OpenCV的详细介绍:请点这里
OpenCV的下载地址:请点这里

相关推荐