Skip to content

Glow

Skin glow measure. The value is a 0..1 score — higher means more and stronger glow property of the skin. Besides the whole-face score, the finding reports a score for the t-zone and the u-zone.

component: glow
request:
query: "components=glow,glow_visualization"
response_path: "results[].description == \"glow\""
value_range: [0, 1]
also_request:
- glow_visualization # polygon-area features, 2 levels: low and high highlights
warnings: [] # glow emits no metric-specific codes
Code: metrics/glow.js. Change the code to change the picture.

renderMetric and drawPolygonArea come from the rendering recipes guide (Recipe 3 — polygon areas); get them as files. Edits stay in this browser tab.

This picture shows the metric's visualization_data from a recorded response, drawn on the photo that was analyzed. Click a thumbnail to select a different model. Hold the photo to hide the overlay.

// Request component and response description are both `glow`.
const glow = response.results.find((r) => r.description === "glow");
// Per-zone entries are "t-zone" and "u-zone". The "Global" entry has value: null —
// it only carries whole-face visualization data. The whole-face score is glow.value.
const byZone = Object.fromEntries(
glow.measurement_locations
.filter((m) => m.description !== "Global")
.map((m) => [m.description, m.value]),
);

The finding has no sum_measures, and its measurement locations carry no measures[]: the scores are the top-level value and the per-zone values.

glow_visualization returns polygon areas on two levels: 1 for low and 2 for high. Level 2 areas lie inside level 1 areas, so drawing level 1 first and level 2 on top gives a two-step map.

For visualization, the Global entry carries the whole-face polygons, and the t-zone / u-zone entries carry the same polygons cut to each zone (the zones overlap, e.g. at the chin). Draw from Global only — or from the zones only — not from every entry.

  • Direct flash creates strong highlights and dramatically inflates glow scores. Diffuse light is critical.
  • Sweat or recently-applied product can inflate the glow measure.

The glow metric emits no metric-specific local_warnings[] codes; it inherits the global image-quality codes.