How to compile opencv and opencv_contrib with the face recognition modules "faces"?

asked 2018-03-29 12:11:29 -0500

JavaMaster gravatar image

updated 2018-03-29 19:57:06 -0500

Good morning, I was reading here and here to compile opencv and opencv_contrib and all modules.

I Use windows 10 x 64 bit. I installed Visual Studio 2017 Professional. I installed CMake 3.11.0. I downloaded opencv from Aqui.

The steps I took are: 1. cd C:\opencv\build

  1. cmake -DOPENCV_EXTRA_MODULES_PATH=C:\opencv\opencv_contrib\modules C:\opencv\opencv\sources

  2. The function make -j5 It does not work for me.
    Else I did it as shown in the image.

3.1 cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin>

and execute

3.2 MSBuild /m C:\opencv\build\OpenCV.sln /t:Build /p:Configuration=Release /v:m

But I have a series of problems.

this article say that Besides all this will create a jar containing the Java interface (bin/opencv-244.jar) and a native dynamic library containing Java bindings and all the OpenCV stuff (lib/ or bin/Release/opencv_java244.dll respectively). We'll use these files later.

opencv-341.jar If it was created, but opencv_java341.dll It was not created.

Thanks for help me!

edit retag flag offensive close merge delete


do you use cmake gui? you can check if everything is OK before compiling. see cmake configuration output. you should see Java wrappers: YES

    ant:                         D:/build/apache-ant-1.10.1/bin/ant.bat (ver 1.10.1)
    JNI:                         C:/Program Files/Java/jdk1.8.0_151/include C:/Program Files/Java/jdk1.8.0_151/include/win32 C:/Program Files/Java/jdk1.8.0_151/include
    Java wrappers:               YES
    Java tests:                  YES
sturkmen gravatar imagesturkmen ( 2018-03-29 15:01:07 -0500 )edit

can you try to remove the screenshots (they're useless), and replace them with a text version, so ppl here can quote you, it can be indexed for search, etc.

thank you.

berak gravatar imageberak ( 2018-03-29 17:01:31 -0500 )edit

I do not use cmake gui. Yes, Java wrappers: YES.

JavaMaster gravatar imageJavaMaster ( 2018-03-29 19:54:06 -0500 )edit

@sturkmen Watch this. It is an image where I show the java libraries.

JavaMaster gravatar imageJavaMaster ( 2018-03-29 20:07:58 -0500 )edit

can it be, you're looking in the wrong place ? after building the INSTALL project in VS, it all should appear in opencv/build/install/java (not in the build folder itself, where the old prebuild libs are)

berak gravatar imageberak ( 2018-03-30 00:49:53 -0500 )edit