"""This script displays the iamges with annotations provided by any face database.
Basically, anything that can be used as a --database for .bin/verify.py can be specified here as well, including configuration files and ``database`` resources: ``./bin/resources.py -d database``.
By default, all images and their corresponding annotations are displayed, and you have to press ``Enter`` after each image.
If the database does not include annotations, or you want to display a different set of annotations, you can specify the ``--annotation-directory`` (and if required modify the ``--annotation-file-extension`` and ``--annotation-file-type``.
The list of images can be narrowed down by the ``--file-ids`` parameter, where the file ids are specific to the database.
Note that this script can only be used with face image databases, not with video or other biometric databases.
parser.add_argument('-d','--database',nargs='+',help='Select the database for which the images plus annotations should be shown.')
parser.add_argument('-f','--file-ids',nargs='+',help='If given, only the images of the --database with the given file id are shown (non-existing IDs will be silently skipped).')
parser.add_argument('-a','--annotation-directory',help='If given, use the annotations stored in the given annotation directory (this might be required for some databases).')
parser.add_argument('-x','--annotation-file-extension',default='.pos',help='Annotation files have the given filename extension.')
parser.add_argument('-t','--annotation-file-type',default='named',help='Select the annotation file style, see bob.db.verification.utils documentation for valid types.')
parser.add_argument('-n','--annotate-names',action='store_true',help='Plot the names of the annotations, too.')
parser.add_argument('-m','--marker-style',default='rx',help='Select the marker style')
parser.add_argument('-M','--marker-size',type=float,default=10.,help='Select the marker size')
parser.add_argument('-F','--font-size',type=int,default=16,help='Select the font size for the annotation names')
parser.add_argument('-C','--font-color',default='b',help='Select the color for the annotation names')
parser.add_argument('--database-directories-file',metavar='FILE',default="%s/.bob_bio_databases.txt"%os.environ["HOME"],help='An optional file, where database directories are stored (to avoid changing the database configurations)')
@@ -163,6 +163,9 @@ Here is the list of files and replacement strings for all databases that are reg
You can use the ``./bin/databases.py`` script to list, which data directories are correctly set up.
In order to view the annotations inside your database on top of the images, you can use the ``./bin/display_face_annotations.py`` script that is provided.
Please see ``./bin/display_face_annotations.py --help`` for more details and a list of options.