NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_face.h
Go to the documentation of this file.
1/*
2 * This software was developed at the National Institute of Standards and
3 * Technology (NIST) by employees of the Federal Government in the course
4 * of their official duties. Pursuant to title 17 Section 105 of the
5 * United States Code, this software is not subject to copyright protection
6 * and is in the public domain. NIST assumes no responsibility whatsoever for
7 * its use by other parties, and makes no guarantees, expressed or implied,
8 * about its quality, reliability, or any other characteristic.
9 */
10
11#ifndef __BE_FACE_H__
12#define __BE_FACE_H__
13
14#include <cstdint>
15
17
18namespace BiometricEvaluation
19{
31 namespace Face
32 {
37 typedef struct {
38 uint8_t yaw;
39 uint8_t pitch;
40 uint8_t roll;
44 } PoseAngle;
45
50 enum class Gender {
51 Unspecified = 0x00,
52 Male = 0x01,
53 Female = 0x02,
54 Unknown = 0xFF
55 };
56
61 enum class EyeColor {
62 Unspecified = 0x00,
63 Black = 0x01,
64 Blue = 0x02,
65 Brown = 0x03,
66 Gray = 0x04,
67 Green = 0x05,
68 MultiColored = 0x06,
69 Pink = 0x07,
70 Unknown = 0xFF
71 };
72
77 enum class HairColor {
78 Unspecified = 0x00,
79 Bald = 0x01,
80 Black = 0x02,
81 Blonde = 0x03,
82 Brown = 0x04,
83 Gray = 0x05,
84 White = 0x06,
85 Red = 0x07,
86 Unknown = 0xFF
87 };
88
93 enum class Property {
94 Glasses = 1,
95 Moustache = 2,
96 Beard = 3,
97 Teeth = 4,
98 Blink = 5,
99 MouthOpen = 6,
100 LeftEyePatch = 7,
101 RightEyePatch = 8,
102 DarkGlasses = 9,
104 };
105
110 enum class Expression {
111 Unspecified = 0x0000,
112 Neutral = 0x0001,
113 SmileClosedJaw = 0x0002,
114 SmileOpenJaw = 0x0003,
115 RaisedEyebrows = 0x0004,
116 EyesLookingAway = 0x0005,
117 Squinting = 0x0006,
118 Frowning = 0x0007
119 };
120
125 enum class ImageType {
126 Basic = 0x00,
127 FullFrontal = 0x01,
128 TokenFrontal = 0x02
129 };
130
135 enum class ImageDataType {
136 JPEG = 0x00,
137 JPEG2000 = 0x01
138 };
139
144 enum class ColorSpace {
145 Unspecified = 0x00,
146 RGB24 = 0x01,
147 YUV422 = 0x02,
148 Grayscale8 = 0x03,
149 Other = 0x04
150 };
151
156 enum class SourceType {
157 Unspecified = 0x00,
158 StaticPhotoUnknown = 0x01,
160 StaticPhotoScan = 0x03,
161 VideoFrameUnknown = 0x04,
162 VideoFrameAnalog = 0x05,
163 VideoFrameDigital = 0x06,
164 Unknown = 0x07
165 };
166 }
167}
168
171 BE_Face_Gender_EnumToStringMap);
172
175 BE_Face_EyeColor_EnumToStringMap);
176
179 BE_Face_HairColor_EnumToStringMap);
180
183 BE_Face_Property_EnumToStringMap);
184
187 BE_Face_Expression_EnumToStringMap);
188
191 BE_Face_ImageType_EnumToStringMap);
192
195 BE_Face_ImageDataType_EnumToStringMap);
196
199 BE_Face_ColorSpace_EnumToStringMap);
200
203 BE_Face_SourceType_EnumToStringMap);
204
205#endif /* __BE_FACE_H__ */
206
BE_FRAMEWORK_ENUMERATION_DECLARATIONS(BiometricEvaluation::Face::Gender, BE_Face_Gender_EnumToStringMap)
Expression
Face expression codes.
Definition: be_face.h:110
ColorSpace
Color space codes.
Definition: be_face.h:144
HairColor
Hair color.
Definition: be_face.h:77
Property
Face property codes.
Definition: be_face.h:93
Gender
Gender identifiers.
Definition: be_face.h:50
ImageDataType
Face image data type classification codes.
Definition: be_face.h:135
ImageType
Face image type classification codes.
Definition: be_face.h:125
SourceType
Source type codes.
Definition: be_face.h:156
This software was developed at the National Institute of Standards and Technology (NIST) by employees...
Representation of pose angle and uncertainty.
Definition: be_face.h:37