Skip to content

fotonick/opencv_java_example_osx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the Java OpenCV example straight from the official docs, but with pre-compiled libraries and usage instructions for OSX 10.9 (Mavericks). It may be useful for others who want to borrow my jar and dylib since they should only depend on OSX system libraries.

Compile:

javac -sourcepath . -cp classes:opencv-300.jar com/example/simple/simple.java -d classes

Run:

java -cp classes:opencv-300.jar com.example.simple.SimpleSample

I compiled OpenCV (172a5d42) starting from the official docs, but they are heavily geared toward Windows, so I had to improvise to get them to work on OSX 10.9 (Mavericks). The breakthrough for me was pulling up the CMake graphical configure to turn off all the libraries that were misbehaving (an iterative process) and to make it a static library build. It's possible that I could have used MacPorts, but my attempts early on were unsuccessful.

About

OpenCV Java Example for OSX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages