how to write matlab code to calculate recognition rate?

I am doing a proj on dct based face recognition n its comparative analysis wit pca.. how can i write code to calculte recognition rate so it can calculat the rate automatically for diferent inputs???

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 12 月 17 日

0 投票

recognition_rate = number_of_faces_recognized / number_of_faces_presented;

3 件のコメント

swathi
swathi 2013 年 12 月 17 日
Bt how will the code keep track of all recognized faces??? my code is DCT based face recognition.. for each input the code is run seperatly...
Walter Roberson
Walter Roberson 2013 年 12 月 17 日
number_of_faces_recognized = 0;
number_of_faces_presented = 0;
for K = 1 : number_of_face_images
face_image = imread() of the K'th face image
was_it_recognized = try_to_recognize_face(face_image);
number_of_faces_presented = number_of_faces_presented + 1;
number_of_faces_recognized = number_of_faces_recognized + was_it_recognized;
end
recognition_rate = number_of_faces_recognized / number_of_faces_presented;
SAMVIT MAHARAJ
SAMVIT MAHARAJ 2015 年 3 月 19 日
Sir, I am also having the same problem. I dont understand the line you wrote
face_image = imread() of the K'th face image
was_it_recognized = try_to_recognize_face(face_image);
what is this Kth image and the next line

サインインしてコメントする。

質問済み:

2013 年 12 月 17 日

コメント済み:

2015 年 3 月 19 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by