|
Enrollment 28.2.0
|
It provides quality measures as defined in ISO/IEC 29794-5:2025. More...
#include <OFIQFace.h>
Public Member Functions | |
| void | WriteTo (Writer &writer) const final |
| Serialize OFIQFace to Writer. | |
| Rectangle | GetBoundingBox () const |
| Provides bounding box of detected face. | |
| uint8_t | GetSharpness () const |
| Provides sharpness of the face. | |
| uint8_t | GetUnifiedQualityScore () const |
| Unified quality score (QS) mapping native OFIQ quality. | |
| uint8_t | GetBackgroundUniformity () const |
| Background uniformity of the face image. | |
| uint8_t | GetIlluminationUniformity () const |
| Illumination uniformity across the face. | |
| uint8_t | GetLuminanceMean () const |
| Luminance mean of the face image. | |
| uint8_t | GetLuminanceVariance () const |
| Luminance variance in the face image. | |
| uint8_t | GetUnderExposurePrevention () const |
| Under-exposure prevention. | |
| uint8_t | GetOverExposurePrevention () const |
| Over-exposure prevention. | |
| uint8_t | GetDynamicRange () const |
| Dynamic range of the face image. | |
| uint8_t | GetCompressionArtifacts () const |
| Absence of compression artefacts. | |
| uint8_t | GetNaturalColour () const |
| Natural colour of the face image. | |
| uint8_t | GetSingleFacePresent () const |
| Single face present in the image. | |
| uint8_t | GetEyesOpen () const |
| Eyes open. | |
| uint8_t | GetMouthClosed () const |
| Mouth closed. | |
| uint8_t | GetEyesVisible () const |
| Eyes visible. | |
| uint8_t | GetMouthOcclusionPrevention () const |
| Mouth occlusion prevention. | |
| uint8_t | GetFaceOcclusionPrevention () const |
| Face occlusion prevention. | |
| uint8_t | GetInterEyeDistance () const |
| Inter-eye distance quality. | |
| uint8_t | GetHeadSize () const |
| Head size in the image. | |
| uint8_t | GetLeftwardCropOfTheFaceImage () const |
| Leftward crop of the face image. | |
| uint8_t | GetRightwardCropOfTheFaceImage () const |
| Rightward crop of the face image. | |
| uint8_t | GetMarginAboveOfTheFaceImage () const |
| Margin above the face image. | |
| uint8_t | GetMarginBelowOfTheFaceImage () const |
| Margin below the face image. | |
| uint8_t | GetHeadPoseYaw () const |
| Head pose yaw (left-right rotation). | |
| uint8_t | GetHeadPosePitch () const |
| Head pose pitch (up-down tilt). | |
| uint8_t | GetHeadPoseRoll () const |
| Head pose roll (tilt about the nose axis). | |
| uint8_t | GetExpressionNeutrality () const |
| Expression neutrality. | |
| uint8_t | GetNoHeadCoverings () const |
| No head coverings. | |
Static Public Member Functions | |
| static std::shared_ptr< OFIQFace > | Create (const std::shared_ptr< FaceCapture > &capture, const std::shared_ptr< FaceExecutor > &executor) |
| Create OFIQ from FaceCapture using the given executor. | |
| static std::shared_ptr< OFIQFace > | Create (const std::shared_ptr< FaceCapture > &capture) |
| Create OFIQ from FaceCapture using default executor set in GlobalFaceExecutor. | |
It provides quality measures as defined in ISO/IEC 29794-5:2025.
To calculate qualities we are using OFIQ-project.
|
inlinestatic |
Create OFIQ from FaceCapture using default executor set in GlobalFaceExecutor.
It creates this instance and calculates all qualities at once.
Total size of solvers is 635 MB.
References ofiq/expression_neutrality/grimmer/hse_1_2_C_adaboost.yml, ofiq/expression_neutrality/hsemotion/enet_b0_8_best_vgaf_embed_zeroed.onnx, ofiq/expression_neutrality/hsemotion/enet_b2_8_embed_zeroed.onnx, ofiq/face_detection/ssd_facedetect.caffemodel, ofiq/face_detection/ssd_facedetect.prototxt.txt, ofiq/face_landmark_estimation/ADNet.onnx, ofiq/face_occlusion_segmentation/face_occlusion_segmentation_ort.onnx, ofiq/face_parsing/bisenet_400.onnx, ofiq/head_pose_estimation/mb1_120x120.onnx, ofiq/no_compression_artifacts/ssim_248_model.onnx, ofiq/sharpness/face_sharpness_rtree.xml, ofiq/unified_quality_score/magface_iresnet50_norm.onnx
| capture | FaceCapture |
| NullArgumentException | when capture is null |
| EnrollmentException | when OFIQ calculation fails |
References Create(), and GlobalFaceExecutor::Get().
|
inlinestatic |
Create OFIQ from FaceCapture using the given executor.
It creates this instance and calculates all qualities at once.
Total size of solvers is 635 MB.
References ofiq/expression_neutrality/grimmer/hse_1_2_C_adaboost.yml, ofiq/expression_neutrality/hsemotion/enet_b0_8_best_vgaf_embed_zeroed.onnx, ofiq/expression_neutrality/hsemotion/enet_b2_8_embed_zeroed.onnx, ofiq/face_detection/ssd_facedetect.caffemodel, ofiq/face_detection/ssd_facedetect.prototxt.txt, ofiq/face_landmark_estimation/ADNet.onnx, ofiq/face_occlusion_segmentation/face_occlusion_segmentation_ort.onnx, ofiq/face_parsing/bisenet_400.onnx, ofiq/head_pose_estimation/mb1_120x120.onnx, ofiq/no_compression_artifacts/ssim_248_model.onnx, ofiq/sharpness/face_sharpness_rtree.xml, ofiq/unified_quality_score/magface_iresnet50_norm.onnx
| capture | FaceCapture |
| executor | FaceExecutor used to execute calculation locally or on server |
| NullArgumentException | when capture is null |
| NullArgumentException | when executor is null |
| EnrollmentException | when OFIQ calculation fails |
References GlobalLogger::Get().
Referenced by Create().
|
inlinenodiscard |
Background uniformity of the face image.
Measures how uniform the background is behind the face. [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Provides bounding box of detected face.
Referenced by WriteTo().
|
inlinenodiscard |
Absence of compression artefacts.
Measures degradation from lossy compression (e.g. JPEG). [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Dynamic range of the face image.
Reflects whether the image has sufficient range between darkest and brightest areas.
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Expression neutrality.
Indicates that the face has a neutral expression (e.g. mouth closed, no smile). [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Eyes open.
Indicates that both eyes are open (no closed or drooping eyelids). [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Eyes visible.
Indicates that both eyes are visible and not occluded.
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Face occlusion prevention.
Indicates that the face is not occluded by objects, hair, or other obstructions.
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Head pose pitch (up-down tilt).
Indicates vertical orientation of the head. [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Head pose roll (tilt about the nose axis).
Indicates whether the head is upright (no sideways tilt). [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Head pose yaw (left-right rotation).
Indicates how frontal the face is in the horizontal direction. [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Head size in the image.
Indicates whether the head size (e.g. face size) is within the expected range. [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Illumination uniformity across the face.
Measures uniformity of lighting on the face (e.g. absence of strong shadows or hotspots). [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Inter-eye distance quality.
Indicates whether the distance between the eyes is within the expected range for the image. [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Leftward crop of the face image.
Indicates sufficient margin to the left of the face in the frame.
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Luminance mean of the face image.
Indicates whether the face is neither under- nor over-exposed on average.
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Luminance variance in the face image.
Reflects variation in brightness across the face.
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Margin above the face image.
Indicates sufficient margin above the head in the frame. [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Margin below the face image.
Indicates sufficient margin below the chin in the frame. [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
|
inlinenodiscard |
Mouth occlusion prevention.
Indicates that the mouth region is not occluded (e.g. by hands or objects).
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Natural colour of the face image.
Indicates that skin and scene colours appear natural (no strong colour cast or enhancement). [8]
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
No head coverings.
Indicates that the face is not obscured by hats, caps, scarves, or similar coverings.
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Over-exposure prevention.
Indicates that the image is not too bright (over-exposed or washed out).
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Rightward crop of the face image.
Indicates sufficient margin to the right of the face in the frame.
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Provides sharpness of the face.
Sharpness is the clarity of fine details in an image. It will be improved with precise focus, good imaging resolution, and absence of biometric capture subject motion relative to the camera. [8]
This quality component can be used to efficiently choose the better focused face portrait among several face samples of the same biometric capture subject. [8]
| EnrollmentException | when sharpness calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Single face present in the image.
Indicates that exactly one face is present and suitable for assessment.
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Under-exposure prevention.
Indicates that the image is not too dark (under-exposed).
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinenodiscard |
Unified quality score (QS) mapping native OFIQ quality.
Predicts expected face recognition performance when compared to a canonical ISO/ICAO-compliant portrait.
| EnrollmentException | when the calculation fails |
Referenced by WriteTo().
|
inlinefinalvirtual |
Implements Serializable.
References GetBackgroundUniformity(), GetBoundingBox(), GetCompressionArtifacts(), GetDynamicRange(), GetExpressionNeutrality(), GetEyesOpen(), GetEyesVisible(), GetFaceOcclusionPrevention(), GetHeadPosePitch(), GetHeadPoseRoll(), GetHeadPoseYaw(), GetHeadSize(), GetIlluminationUniformity(), GetInterEyeDistance(), GetLeftwardCropOfTheFaceImage(), GetLuminanceMean(), GetLuminanceVariance(), GetMarginAboveOfTheFaceImage(), GetMarginBelowOfTheFaceImage(), GetMouthClosed(), GetMouthOcclusionPrevention(), GetNaturalColour(), GetNoHeadCoverings(), GetOverExposurePrevention(), GetRightwardCropOfTheFaceImage(), GetSharpness(), GetSingleFacePresent(), GetUnderExposurePrevention(), and GetUnifiedQualityScore().