#include <stdio.h>
#include <stdlib.h>
#include "roc-embedded.h"
int main(int argc, char *argv[])
{
size_t adaptive_minimum_size, n;
float quality;
int i;
if (argc != 3)
" $ roc-example-verify-embedded path/to/image_a.ppm path/to/image_b.ppm");
for (i=0; i<2; i++) {
}
for (i=0; i<2; i++) {
if (n != 1)
free(landmarks);
float age;
float analytics_spoof;
roc_ensure(
roc_embedded_error_to_string(
roc_embedded_represent_face(color[i], detection, right_eye, left_eye, chin, &templates[i*
ROC_FAST_FV_SIZE], &quality, &age, NULL, &gender, NULL, NULL, NULL, NULL, NULL, &analytics_spoof, NULL)));
float spoof;
spoof = (spoof + analytics_spoof) / 2.f;
printf(
"Face X: %d Y: %d Width: %d Height: %d Quality: %.3f Age: %d Gender: %c Spoof: %c\n", (
int) detection.
x, (
int) detection.
y, (
int) detection.
width, (
int) detection.
height, quality, (
int) age, (gender.
female > gender.
male ?
'F' :
'M'), (spoof >
ROC_CONVENIENT_SPOOF_THRESHOLD ?
'Y' :
'N'));
}
printf("Similarity: %.3f\n", similarity);
for (i=0; i<2; i++) {
}
return EXIT_SUCCESS;
}