steps to do face recognition with opencv 3.1

asked 2018-06-25 01:14:05 -0600

kishan patel gravatar image

Hello, Actually, i had work on face recognition using opencv 2. Now, i want to use opencv 3.1. Lets i have installed opencv 3.1 on processor board.

Now, what are other requirements for face reconition. Please, guide me by steps if possible.

Thanks and Regards, Kishan Patel.

edit retag flag offensive close merge delete

Comments

opencv3.1 is from dec.2015. no, don't use that.

berak gravatar imageberak ( 2018-06-25 01:38:34 -0600 )edit

also, you asked already 7 questions related to that, and now you want us to start all over ?

berak gravatar imageberak ( 2018-06-25 01:39:42 -0600 )edit

Hello Berak, Actually i had done face recognition on system using opencv 2.4 version. But i want to do same procedure on processor board and there is already opencv 3.1 version has installed. Thats for i asking to do further.

There are many versions available of opencv. Which version i should installed on processor board for face recognition?.

Regards, KIshan Patel.

kishan patel gravatar imagekishan patel ( 2018-06-25 01:56:06 -0600 )edit

ah, ok.

note, that the FaceRecognizer classes were moved to https://github.com/opencv/opencv_contrib in 3.x, so you have to build from src with that. (and your 3.1 install probably does not have those modules, so it's a bit useless)

but probably, the better idea is to move to latest 3.4, and use the pretrained openface dnn for this.

berak gravatar imageberak ( 2018-06-25 02:05:59 -0600 )edit

Okay Berak. So, first i have to installed 3.4,then contrib modules. Right?

Regards, Kishan Patel.

kishan patel gravatar imagekishan patel ( 2018-06-25 02:12:03 -0600 )edit

if you want to use the dnn, just install 3.4 branch of the main opencv repo (however you do that)

if you want to use the facerecognizer classes, you need the src of both opencv and opencv_contrib (and same version !), and build with cmake. see readme here

berak gravatar imageberak ( 2018-06-25 02:15:47 -0600 )edit

Hello Berak, Thanks for your valuable reply. I have seen this guide. Initially i got steps but after some steps i am confusing.

If you have some time,can you help me to install opencv 3.4 with contrib modules and for ARM processor.

I am using ubuntu 16.04 camake version is 3.5.1

Regards, Kishan Patel.

kishan patel gravatar imagekishan patel ( 2018-06-25 02:46:40 -0600 )edit

i have no idea about ARM, sorry.

how did you get 3.1 to run on your board ?

berak gravatar imageberak ( 2018-06-25 02:52:24 -0600 )edit

Actually i installed SDK and 3.1 is availble with it.

kishan patel gravatar imagekishan patel ( 2018-06-25 02:59:35 -0600 )edit

ah, i see.

maybe you could try to hack it ? like copying the 3.1 version of the contrib/face module to your project, fix some headers ?

berak gravatar imageberak ( 2018-06-25 03:06:03 -0600 )edit