Ask Your Question
0

How to Cache Gender classification Train Data

asked 2013-07-12 03:11:19 -0600

Piyushkp gravatar image

updated 2013-07-12 03:11:39 -0600

Hi,

I am using FisherFaceRecognizer for gender identification. i have created the face database and created the Matrix called YML file. Can't we use directly YML file for predict function ? rather than calling train function every time ? can we cache the train data ?

I just want to avoid training data everytime so the performance of gender identification is faster.

Thanks, Piyush

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-07-12 03:19:14 -0600

berak gravatar image

"Can't we use directly YML file for predict function ?"

yes, of course.

Ptr<FaceRecognizer> model = createFisherFaceRecognizer();
model->load("gender.yml");
// ...
int predicted = model->predict(image);
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-12 03:11:19 -0600

Seen: 353 times

Last updated: Jul 12 '13