compare two faces opencv node js
Good Morning.
I have an application in Nodejs with opencv that identifies a face, and saves the img of the face in a file.
My question:
I would like to save only once the identified face, as it is analyzing in real time a video, and saving the face, it is reprinting the image several times. Do you have any method to treat this problem? Save only one image of the identified face?
I thought of comparing the current face with the previous face, if different saves the image. But I did not find an "easy" method to do.
Sorry for my bad english, and thank you for your help. Thank you
that means: detects a face ? (identification would be: "who is it ?")
Only detect, I do not need to know who it is.
I already have and saved my face, already saving several pictures of the same face. The face image is being filmed.
Currently it works like this: I compare the current face with the face of the previous frame, if it is different I save, if it is the same I will discarto the image, I use the lib (image-diff). But this is not efficient, I would like to evolve this. I am open to suggestions.