1 | initial version |
it seems, you simply misunderstood, how the prediction works (all it can do is returrn the closest item from the db)
your current setup does not allow to handle this, you might want a few additional steps:
look up the createFisherFaceRecognizer()
signature, you can give it a threshold value for the prediction distance , so any distance value larger than X will result in returning a -1 value, start with something like 500, and improve, dooing a lot of tests
make printing out the prediction value (and maybe even drawing the rectangle) depend on this.
2 | No.2 Revision |
it seems, you simply misunderstood, how the prediction works (all it can do is returrn the closest item from the db)
your current setup does not allow to handle this, you might want a few additional steps:
look up the createFisherFaceRecognizer()
signature, you can give it a threshold value for the prediction distance , so any distance value larger than X will result in returning a -1 value, start with something like 500, and improve, dooing doing a lot of tests
make printing out the prediction value (and maybe even drawing the rectangle) depend on this.