Ask Your Question
0

I am using LBPH model yml to same images after train, it is overwriting.. someone to guide me over there.. do i have to use one yml file separete yml file for each user who register his/her face.

asked 2020-06-01 03:08:39 -0600

moses gravatar image

I am using LBPH model yml to same images after train, it is overwriting.. someone to guide me over there.. do i have to use one yml file separete yml file for each user who register his/her face.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-06-01 04:03:59 -0600

berak gravatar image

train() clears the entire model, and starts from scratch.

you probably wanted to call update() instead.

edit flag offensive delete link more

Comments

Thank you berak. do i have to store one yml file or Need to have multiple of them for every user who register the face?

moses gravatar imagemoses ( 2020-06-01 06:24:21 -0600 )edit

cmon, one file. you read it in on start, update with more persons, save again.

berak gravatar imageberak ( 2020-06-01 07:13:05 -0600 )edit

yea its actually working thank you.. now the problem is when i am authenticating it is not giving the right prediction with the LBPH algorithm

moses gravatar imagemoses ( 2020-06-01 13:42:35 -0600 )edit

now the problem is when i am authenticating

if you really want to authenticate a single user, then it's the wrong algorithm (it does identification, not authentification)

berak gravatar imageberak ( 2020-06-02 01:41:51 -0600 )edit

yea ok i meant prediction, now am in a possition to save one yml file and append new faces, I am saving with the labels. My challange is when predicting I am passing the image to be predicted, label and confidence. In this lbph algorithm, the label passed is -1 now confused if this label I should pass the label i set during training? Kindly assist me there.

moses gravatar imagemoses ( 2020-06-03 00:19:47 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-06-01 03:08:39 -0600

Seen: 522 times

Last updated: Jun 01 '20