1 | initial version |
you need:
2 | No.2 Revision |
you need:
that there is also an easy to use pretrained openface cnn, you could use it like this:
Dnn net = dnn.readNetFromTorch("openface.nn4.small2.v1.t7");
Mat inputBlob = dnn.blobFromImage(image, 1./255, Size(96,96), Scalar(), true, false);
net.setInput(inputBlob);
feature = net.forward();
then you can compare features obtained above with a plain L2 norm.
(note, that this will also work oncolor images !)
3 | No.3 Revision |
you need:
note, that there is also an easy to use pretrained openface cnn, cnn (in the Dnn module), you could use it like this:
Dnn net = dnn.readNetFromTorch("openface.nn4.small2.v1.t7");
Mat inputBlob = dnn.blobFromImage(image, 1./255, Size(96,96), Scalar(), true, false);
net.setInput(inputBlob);
feature = net.forward();
then you can compare features obtained above with a plain L2 norm.
(note, that this will also work oncolor images !)
4 | No.4 Revision |
you need:
note, that there is also an easy to use pretrained openface cnn (in the Dnn module), you could use it like this:
Dnn net = dnn.readNetFromTorch("openface.nn4.small2.v1.t7");
Mat inputBlob = dnn.blobFromImage(image, 1./255, Size(96,96), Scalar(), true, false);
net.setInput(inputBlob);
feature = net.forward();
then you can compare features obtained above with a plain L2 norm.
(note, that this will also work oncolor images !)