Ask Your Question

Revision history [back]

click to hide/show revision 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);

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