OpenCV face recognition.

asked 2018-02-13 06:11:38 -0600

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.

image description

edit retag flag offensive close merge delete

Comments

1

please be so kind, and replace the screenshot of your code with a text version, thank you !

berak gravatar imageberak ( 2018-02-13 06:16:33 -0600 )edit

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?

StevenPuttemans gravatar imageStevenPuttemans ( 2018-02-14 04:48:30 -0600 )edit

up to training its working well just for recognition, i am getting the wrong output.for every Id its showing one name

Ahmed.20 gravatar imageAhmed.20 ( 2018-02-14 10:13:09 -0600 )edit

what exactly are you trying to achieve here ? what is your training data ?

berak gravatar imageberak ( 2018-02-14 11:55:51 -0600 )edit

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 ...

StevenPuttemans gravatar imageStevenPuttemans ( 2018-02-15 03:44:43 -0600 )edit

There is something missing looping for block

supra56 gravatar imagesupra56 ( 2018-02-16 08:56:58 -0600 )edit

Btw, u don't need if/else condition block

supra56 gravatar imagesupra56 ( 2018-02-16 08:59:08 -0600 )edit