#include <stdio.h>
#include <stdlib.h>
#include "roc.h"
int main(int argc, char *argv[])
{
const int maximum_people = 10;
const int maximum_candidates = 3;
size_t adaptive_minimum_size;
int i;
if (argc != 4 && argc != 5)
#ifdef _WIN32
" > roc-example-person-search.exe path\\to\\rocsdk\\bin path\\to\\gallery.jpg [path\\to\\probe.jpg] | [torso_color thigh_color]"
#else
" $ roc-example-person-search path/to/rocsdk/lib path/to/gallery.jpg [path/to/probe.jpg] | [torso_color thigh_color]"
#endif
);
if (argc == 5) {
else roc_ensure(
"Unexpected color argument at torso_color.\n" "Expects one of: white, grey, black, red, orange, yellow, green, blue, violet, pink, brown, none");
else roc_ensure(
"Unexpected color argument at thigh_color.\n" "Expects one of: white, grey, black, red, orange, yellow, green, blue, violet, pink, brown, none");
}
for (i=0; i<maximum_people; i++) {
if (!gallery_templates[i].algorithm_id) {
if (i == 0)
roc_ensure(
"Failed to find a person in the gallery image!");
break;
}
}
roc_ensure(
"Failed to find a person in the probe image!");
} else {
}
puts("Similarity\tX\tY\tWidth\tHeight");
for (i=0; i<maximum_candidates; i++) {
candidate = candidates[i];
break;
}
for (i=0; i<maximum_people; i++)
free(gallery_templates);
free(candidates);
return EXIT_SUCCESS;
}