Ask Your Question
0

I am working on recognition of faces in given videos with provided Data base.I am using createFisherFaceRecognizer() . But I am not getting Proper output. is it problem with Data base or the predict method, which i have used.

asked 2016-11-11 07:25:39 -0600

updated 2019-12-09 08:06:42 -0600

Akhil Patel gravatar image

some fraction of code is as following. Ptr model = createFisherFaceRecognizer(); model->train(images, labels); . . . . . int prediction = model->predict(face_resized);

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-11-11 07:52:27 -0600

berak gravatar image

updated 2016-11-11 07:54:43 -0600

this is mostly a problem with your data. possible reasons:

  • not enough images per person (20+ needed)
  • images too large or too small (try 100x100 or such)
  • bad cropping (too much background)
  • bad alignment (not centered, not straight forward)
  • missing lighting normalization
  • different processing for training & prediction

setting up the code is easy, tweaking your data to get a good performance is hard here !

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-11-11 07:25:39 -0600

Seen: 108 times

Last updated: Nov 11 '16