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 :)

14th Mar 2018, 2:17 PM
Ahmed Maged
Ahmed Maged - avatar
11 Antworten
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 ?
14th Mar 2018, 11:05 PM
sneeze
sneeze - avatar
14th Mar 2018, 8:30 PM
Ahmed Maged
Ahmed Maged - avatar
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
14th Mar 2018, 8:32 PM
Ahmed Maged
Ahmed Maged - avatar
0
Thanks. Where should I start ? With last method "Recognize" ?
14th Mar 2018, 8:41 PM
sneeze
sneeze - avatar
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
14th Mar 2018, 8:51 PM
Ahmed Maged
Ahmed Maged - avatar
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
14th Mar 2018, 8:57 PM
sneeze
sneeze - avatar
0
sorry can you git more explain
14th Mar 2018, 10:55 PM
Ahmed Maged
Ahmed Maged - avatar
15th Mar 2018, 12:51 PM
Ahmed Maged
Ahmed Maged - avatar
0
that's the code of form you will see what the expect output
15th Mar 2018, 12:52 PM
Ahmed Maged
Ahmed Maged - avatar
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 ?
15th Mar 2018, 9:33 PM
sneeze
sneeze - avatar
- 1
Can you show us some code ?
14th Mar 2018, 8:13 PM
sneeze
sneeze - avatar