![]() |
ROC SDK
2.4.0
Scalable Face Recognition Software
|
Extract metadata from a gallery.
| Option | Meaning |
|---|---|
-k <string> | Extract only values for the specified Metadata Key |
-t | Output full templates instead of metadata only |
-p <string> | See Metadata Person ID |
-w <object> | See Metadata Write |
-x <file> | See Metadata Write |
If the -k option is specified, only the value for the provided key will be extracted.
If the -p option is specified, the PersonID value for each template will be changed based on the the value of the provided key. Each unique string value for the provided key will be mapped to a distinct integer PersonID, or roc_uuid_get_null if the key is missing or empty.
If the -w option is specified, the metadata for each template will incorporate the provided JSON object. If the -x option is specified, the metadata for each template will incorporate the provided JSON object file.
$ roc-metadata -h
gallery.t to metadata.json. $ roc-metadata gallery.t metadata.json
gallery.t to stdout. $ roc-metadata gallery.t > metadata.json
$ cat gallery.t | roc-metadata > metadata.json
Width for each template in faces.t to face_widths.txt. $ roc-metadata -k Width faces.t face_widths.txt
Name to value George for each template in faces.t to george.t. $ roc-metadata -w '{ "Name": "George" }' -t faces.t george.t Name for each template in faces.t to idfaces.t. $ roc-metadata -p Name -t faces.t idfaces.t
1.8.15