OpenCV face recognition.
I did the coding for face recognition using openCV but for all user id its showing one name "Ahmed" here is the code can u help me out for correction.

Asked: 2018-02-13 06:10:50 -0600
Seen: 296 times
Last updated: Jul 09 '18
please be so kind, and replace the screenshot of your code with a text version, thank you !
My first guess is that your learned recognition model is bogus and not properly working. Did you check if it returns the correct labels on the actual training data?
up to training its working well just for recognition, i am getting the wrong output.for every Id its showing one name
what exactly are you trying to achieve here ? what is your training data ?
up to training its working well --> it is not because it runs flawlessly, that it actually learned something useful. Like suggested by @berak, give us as much details on your task, training data, and so on ...
There is something missing looping
forblockBtw, u don't need
if/elsecondition blockI am also using the same code the same problem executes for me.It shows only the same for whatever the faces it recognizes.Did you solved this problem