Java OpenCV from Maven

后端 未结 8 1974
别那么骄傲
别那么骄傲 2020-12-01 20:59

Is there any way to get OpenCV from repository? Which artifact should I add to pom.xml? Every tutorial I\'d found is from \'14 and it seems like something chang

8条回答
  •  醉话见心
    2020-12-01 21:32

    Add the following dependency in your POM file:

    
        org.openpnp
        opencv
        3.2.0-0
    
    

    and replace the following lines:

    System.loadLibrary(Core.NATIVE_LIBRARY_NAME)
    

    with

    nu.pattern.OpenCV.loadShared();
    

    This should solve the problem in WINDOWS also. Happy Coding.

提交回复
热议问题