ROC SDK  2.4.0
Scalable Face Recognition Software
roc-validate

Check the contents of a gallery for data corruption.

This command line application corresponds to the roc_validate function in the Application Programming Interface.

Options

Option Meaning
-c See Print Template Count
-e <int> See Ensure Template Count
-t See Truncate Gallery

Print Template Count

If the -c option is specified, print the number of templates in the gallery.

Ensure Template Count

If the -e option is specified, return EXIT_FAILURE if the number of templates in the gallery does not equal the provided count.

Truncate Gallery

If the -t option is specified, the gallery file will be truncated after the last valid template.

Examples

Show help
Print application usage and supported arguments.
$ roc-validate -h 
Print the template count
Print the number of templates in faces.t.
$ roc-validate -c faces.t 
Ensure the template count
Ensure faces.t has 3 templates.
$ roc-validate -e 3 faces.t 
Truncate the gallery
Truncate faces.t after the last valid template.
$ roc-validate -t faces.t