Image Quality Result Scheme

Haut.AI provides an AI algorithm that analyzes the quality of selfie images for the consequent skin analysis. Only high-quality selfie images allow for reliable skin analysis.

Description

The algorithm analyzes the overall quality of an input image for the consequent skin analysis, which is done through an API. The algorithm returns the evaluation of quality properties and human-readable feedback with an explanation of why an image is of high or low quality.

You can select the result of this algorithm by selecting:

"algorithm_tech_name": "quality"

main_metric

The main metric is an overall score that indicates the quality of a selfie image.

"main_metric": {
    "value": 78,
    "widget_type": "bad_good_line",
    "name": "Image Quality Score",
    "tech_name": "image_quality_score",
    "widget_meta": null,
    "units": null
},
  • value the image quality score ranges from [0,100]. The higher the value, the better the image quality

  • "widget_type": "bad_good_line" this indicates that a higher value is better

  • name metric name (may change)

  • tech_name metric technical name (does not change)

  • widget_meta empty, ignore

  • units empty, ignore

sub_metrics

Sub-metrics are a set of features that define an image's quality. There are 2 types of sub-metrics:

  • scores: sub-metrics with "tech_name" property ending with "_score"

  • raw metrics: other sub-metrics

"sub_metrics": [
    < here is an example of a "score" sub-metric >
    {
        "value": 0, 
        "widget_type": 
        "bad_good_line", 
        "name": "rotation_score", 
        "tech_name": "rotation_score", 
        "widget_meta": null, 
        "units": null
    }, 
    ...
    < here is an example of "raw metrics" sub-metric >
    {
        "value": -41, 
        "widget_type": "numeric", 
        "name": "angles_yaw_angle_degree", 
        "tech_name": "angles_yaw_angle_degree", 
        "widget_meta": null, 
        "units": null
    },
    ...
]

Scores

Structure

  • value the image quality score ranges from [0,100]. The higher the value, the better the image quality

  • "widget_type": "bad_good_line" this indicates that a higher value is better

  • name metric name (may change)

  • tech_name metric technical name (does not change)

  • widget_meta empty, ignore

  • units empty, ignore

Meaning

Raw Metrics

Structure

  • value float or int value

  • "widget_type": different types, describing the exact logic of value reading. The most common are:

    • "numeric" - just a number

    • "bad_good_line" - indicates that a higher value is better

  • name metric name (may change)

  • tech_name metric technical name (does not change)

  • widget_meta empty, ignore

  • units empty, ignore

problems

problems is a list of all detected issues with image quality, returned as a short codenames. The list can contain from 0 (no problems) to N (several problems):

"problems": ["wrong_angle", "low_resolution", "misfocus_or_distortion"]

Meaning

Every codename reflect exact case, described in a table below:

This field will be removed in the nearest update. Use problems instead

feedback is a message with information about the image quality in form of 2 objects:

  • overlay - short summary

  • tooltip - more verbose list of issues, split to critical / warning / good condition

"feedback": {
        "overlay": "Low quality image",
        "tooltip": {
            "positive": [
                "Good face resolution"
            ],
            "warn": [],
            "negative": [
                "Unacceptable face illumination"
            ]
        }
  • overlay is an informal message about the overall image quality. It returns an informal rating of the image quality:

    • "Good quality image" - image quality is suitable for skin analysis

    • "Low-quality image" - image quality is low for skin analysis

    • "No face detected" - face is not detected. Image can't be processed by skin assessment algorithms

    • "Not full face"- image is not fully presented in the image. Image is not suitable for skin analysis

    • "Face is rotated" - face is extremely rotated in the image. Image is not suitable for skin analysis

  • tooltip is an informal message about image quality and warnings

    • positive possible feedback values are:

      • Good face resolution

      • Good face illumination

    • warn possible feedback values are:

      • Poor face resolution

      • Poor face illumination

    • negative possible feedback values are:

      • Face is not detected

      • Face is not fully presented

      • Face is rotated

      • Misfocus or distortion

      • Noisy image

      • Unacceptable face resolution

      • Unacceptable face illumination

Example (JSON)

Last updated