Created
December 2, 2012 20:30
-
-
Save lynaghk/4190923 to your computer and use it in GitHub Desktop.
OpenCV in Clojure?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Build OpenCV and the new Java JNI interface described here: https://github.com/emchristiansen/opencv/commit/0d323087fadaf931dbaf4120b69f0839b745b888 | |
git clone git://github.com/Itseez/opencv.git | |
cd opencv | |
cmake -DBUILD_opencv_java=ON | |
ant jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defproject com.keminglabs/shredbot5000 "0.1.0-SNAPSHOT" | |
:description "Deshredding experiments" | |
:dependencies [[org.clojure/clojure "1.4.0"]] | |
:min-lein-version "2.0.0" | |
:source-paths ["src/clj" "../../software/opencv/bin/opencv-2.4.9.jar"] | |
:jvm-opts ["-Djava.library.path=/usr/local/lib"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns scratch.clj | |
(:import org.opencv.core.Size)) | |
(System/loadLibrary "opencv_java") | |
(new Size 10 10) ;;=> #<Size 10x10> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment