Quantcast
Channel: C++博客-Codejie's C++ Space
Viewing all articles
Browse latest Browse all 80

OpenCV : build with Maven on Spring

$
0
0

    为了赶时髦,准备把OpenCV的操作通过WebService的方式Deploy出去,因此做了如下的事情:

    1. download opencv zip package
    2. download cmake source zip
    3. download ant binary package
    4. install ant binary;
    5. make cmake;
    6. unzip opencv;
    7. cmake opencv source;

#mkdir build
#cd build
#cmake -D BUILD_SHARED_LIBS=OFF ../
#make

    8. install opencv library into Maven;
mvn install:install-file -Dfile=opencv-2411.jar -DgroupId=org.opencv -DartifaceId=opencv -Dversion=2.4.11 -Dpackaging=jar

    9. update pom.xml to add openvn dependency;
    <dependency>
       <groupId>org.opencv</groupId>
       <artifactId>opencv</artifactId>
       <version>2.4.11</version>
       <systemPath>/Users/Jie/Downloads/opencv-2.4.11/build/bin/opencv-2411.jar</systemPath>
       <scope>system</scope>
    </dependency>

    10. run webapp;
mvn spring-boot:run

    11. done;

    翻了无数++的页面,就这些~


codejie 2015-03-24 22:13 发表评论

Viewing all articles
Browse latest Browse all 80

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>