1 | initial version |
you could simply try to read the image, and thus check, if there already is one for that person.
String name = "john.d";
Mat im = imread(name);
if (im.empty())
imwrite(name, face_ image);
2 | No.2 Revision |
you could simply try to read the image, and thus check, if there already is one for that person.
String name = "john.d";
"john.d.png";
Mat im = imread(name);
if (im.empty())
imwrite(name, face_ image);