Ask Your Question

Face Recognition error line 1010

asked 2017-08-16 22:27:17 -0500

eureka gravatar image

I am a beginner in opencv project. I'm learning the tutorial in this link link text

I try to solve this error. I' using opencv version and Visual Studio 2017 on Window 10

image description

my text file content image description

my code from opencv website. (

Please help me find how to solve this error. Thank you so much. ^-^

edit retag flag offensive close merge delete


please replace your screenshots with a text version.

berak gravatar imageberak ( 2017-08-16 23:34:57 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2017-08-17 03:30:42 -0500

berak gravatar image

if you try to find out, what LDA does , you'll see that it

" attempts to model the difference between the classes of data"

obviously, to find a difference, you need more than 1 class (different persons)

to make the PCA (the previous step) work, you will also need more images per person, like 5-30.

last, just saying: opencv's face recognition classes do identification (which out of N in the database). if you wanted to find out, if 2 images show the same person, that's verification, something completely different. also, authentification (let only 1 person in). make sure to use the right tool for your job.

edit flag offensive delete link more


Thank you so much for you answer. Now I can run the Face Recognition program.

(ノ◕ヮ◕)ノ*:・゚✧ ✧゚・: *ヽ(◕ヮ◕ヽ)

eureka gravatar imageeureka ( 2017-08-17 10:29:34 -0500 )edit

can you still please replace the screenshots ?

berak gravatar imageberak ( 2017-08-18 01:34:04 -0500 )edit

Question Tools

1 follower


Asked: 2017-08-16 22:27:17 -0500

Seen: 93 times

Last updated: Aug 17 '17