Ask Your Question

Building OpenCV 3.0 with OpenCV_Contrib for use with Facial Recognition in Java Development in Windows 7

asked 2015-08-17 06:10:03 -0600

muithi gravatar image

updated 2015-08-17 09:53:08 -0600


I have followed the steps (using gui version of cmake) shown here on how to build OpenCV with extra modules. My sole goal is to be able to use FaceRecognizer within OpenCV 3.0 while developing in Java.

The first configure looked like this

Second configure after adding path of opencv_contrib modules to OPENCV_EXTRA_MODULES_PATH looked as shown here

Finally after clicking generating I had the following following;

I do not know what to do next as I even changed directory to build folder and attempted to run make -j5 from command prompt but I could not do import org.opencv.face.*; in my netbeans Java workstation.

What else do I need to do afterwards to be able to add import org.opencv.face.*; in my Java workstation?

I also came across a previous similar post too but I did not understand how to make headways with it.

I will appreciate all help and howtos.


Joseph Mwema

edit retag flag offensive close merge delete


I build the OpenCV.sln with Visual Studio 2012 and after the build I got opencv_face300.dll in the release folder. There was no new opencv-300.jar that was build nor was there any new opencv_java300.dll build in the java folder after the build. What do I need to do to be able to do now to be able to have a new jar file that will allow me to do*; into my Java workspace?

muithi gravatar imagemuithi ( 2015-08-18 02:51:55 -0600 )edit

Anyone has an idea on how to go about this?

muithi gravatar imagemuithi ( 2015-10-03 09:03:08 -0600 )edit

Anything new? If you finished, could you help me how to build it for Face recognition on Android project? Thanks.

WAE gravatar imageWAE ( 2016-02-02 03:17:37 -0600 )edit

Hello,have you solved your problem?I have the same problem now,if possible,could you give me some guidance?Thanks so much!

YuYin gravatar imageYuYin ( 2019-04-16 22:30:47 -0600 )edit

@YuYin - please do not post answers here, if you have a question or a comment, thank you.

berak gravatar imageberak ( 2019-04-17 01:19:10 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-02-26 00:37:18 -0600

Install Ant Apache. and go to ungrouped in cmake and add path to ant in ANT_EXECUTABLES. then rerun the configuration. after that make sure in Javawrapper is YES in console of cmake.

edit flag offensive delete link more


What to do if it still says Java wrappers: NO ?

umzugskarton gravatar imageumzugskarton ( 2018-08-05 17:51:57 -0600 )edit

Question Tools



Asked: 2015-08-17 06:10:03 -0600

Seen: 3,355 times

Last updated: Feb 26 '18