让OpenCV在OSX Mavericks上使用Processing 2.1.1

时间:2014-03-03 23:53:29

标签: macos opencv processing osx-mavericks

似乎很多人试图让OpenCV在OSX和Processing 2上运行时出现问题。首先,我从这里下载OpenCV:http://ubaa.net/shared/processing/opencv/

我安装了框架,并将库移动到正确的Processing文件夹中。当我举一个例子时,我明白了:

[opencv fatal error] library not loaded !
THIS VERSION OF OPENCV LIBRARY REQUIRE ADDITIONAL DEPENDENCIES.
READ THE INSTALLATION INSTRUCTIONS AT http://ubaa.net/shared/processing/opencv/

Verify that you are running in 32-bit mode, the opencv.framework exists in '/Library/Frameworks' folder and the java.library.path property is correctly.

error message: /Users/austinslominski/Documents/Processing/libraries/OpenCV/library/libOpenCV.jnilib: dlopen(/Users/austinslominski/Documents/Processing/libraries/OpenCV/library/libOpenCV.jnilib, 1): no suitable image found.  Did find:
    /Users/austinslominski/Documents/Processing/libraries/OpenCV/library/libOpenCV.jnilib: no matching architecture in universal wrapper

A library relies on native code that's not available.
Or only works properly when the sketch is run as a 32-bit  application.

对我来说,处理看起来似乎没有32位选项。有人知道修复或替代吗?我很快就要开始进行形状检测项目了。

由于

1 个答案:

答案 0 :(得分:1)

您尝试使用的OpenCV包装器有点过时。

我建议您尝试Greg's OpenCV wrapper。它基本上包含了官方OpenCV java库的功能,所以它在Processing中使用,它有很多有用的例子。

bg substraction

depth from stereo

warp perspective