ROC SDK  2.4.0
Scalable Face Recognition Software
roc_example_host_id.c

Source code for examples/roc_example_host_id.c.

/*
* This example application prints out the Host ID used for license enforcement.
*
* To compile this example on OS X / Linux (bash):
*
* $ gcc -o roc-example-host-id roc_example_host_id.c -I ../include/ -L ../lib/ -Wl,-rpath,'$ORIGIN/../lib:../lib' -lroc
*
* To compile this example on Windows (Visual Studio Command Prompt):
*
* $ cl roc_example_host_id.c /I ../include/ ../lib/roc.lib /Feroc-example-host-id.exe
*
* To run this application using an example image:
*
* $ ./roc-example-host-id
*/
#include <stdio.h>
#include "roc.h"
int main(int argc, char *argv[])
{
roc_string host_id;
if (argc != 1)
roc_ensure("No arguments expected:\n"
" $ roc-example-host-id");
// Print host id
puts(host_id);
return EXIT_SUCCESS;
}