Online Face Recognition using OpenCV

后端 未结 2 998
难免孤独
难免孤独 2021-02-06 18:55

I am trying to implement online face recognition using the webcam. I am using this two websites as references

shervinemami.co.cc
cognotics.com

I have few que

2条回答
  •  终归单人心
    2021-02-06 19:29

    I just read

    int _tmain(int argc, _TCHAR* argv[]) 
    {
    .......
    }
    

    part of your code. This code is used for detecting the face in the image. Lets say it is Face_x. Now extract features from Face_x, call it as F_x. In your database, you should store features {F_1, F_2,..., F_N} extracted from n different faces {Face_1, Face_2,..Face_N}.

    Simple algorithm to recognize Face_x is to calculate Euclidean distances between F_x and n features. The minimum distance (below threshold) gives corresponding face. If the minimum distance is not below threshold then Face_x is a new face. Add feature F_x to database. This way you can increase your database. You can begin your algorithm with no features in database. With each new face, database grows.
    I hope the method suggested by me will lead you to the solution

提交回复
热议问题