0
Help with face detective by C#
i have a camera and save some faces by their name when some one come in front of the camera display his name , i have problem if new one come must display unknown , the code not working with this part if new one come display the name of first one u added , any one have any answer ?! and Thank's :)
11 Answers
0
Go through the code step by step.
It starts with the method "Recognize"
some variables, can't go much wrong here
int index;
float eigenDistance;
String label;
A method is called
FindMostSimilarObject(image, out index, out eigenDistance, out label);
What is the expected output of these variables (index, eigenDistance, label) ?
What is the value you get ?
0
hi sneeze tha's the code and will fiend comment for every part i wish you help me to get the answer
and have another code for the AppForm but i think the problem here
0
Thanks.
Where should I start ? With last method "Recognize" ?
0
i thnink the problem in last part of don't work line 255 and you can see comment befor code to know what code mean's
0
Add debug statement Console.WriteLine or Debug.Assert for
out index
out eigenDistance
out label
between "FindMostSimilarObject" and "return"
Do they have the expected output
Is the problem in the statement
return (_eigenDistanceThreshold <= 0 || eigenDistance < _eigenDistanceThreshold ) ? _labels[index] : String.Empty;
or in the method
FindMostSimilarObject
0
sorry can you git more explain
0
that's the code of form you will see what the expect output
0
Please elaborate more.
I do not mind to answer your question but I am not going to reverse engineer your code.
Does FindMostSimilarObject give you the output you expect ?
- 1
Can you show us some code ?