Wrinkles
Overview
Section titled “Overview”Wrinkles measures the visible depth, count, and distribution of lines on the face. The value is a normalized severity score; wrinkles_visualization returns one polyline feature per detected line — x[] / y[] arrays of point coordinates that draw the actual line back onto the source image, plus per-point and aggregate intensity values.
component: wrinklesrequest: query: "components=wrinkles,wrinkles_visualization"response_path: "results[].description == \"wrinkles\""value_range: [0, 1]also_request: - wrinkles_visualization # polyline features, one per detected linewarnings: [] # no wrinkles-specific codes; see local_warnings belowSub-region locations
Section titled “Sub-region locations”Within the single wrinkles finding, measurement_locations[] carries one entry per face sub-region (12 in total) — you receive these descriptions verbatim and can style different sub-regions differently:
measurement_locations[].description | Region | ut_zone |
|---|---|---|
forehead worry lines | Horizontal lines across the forehead. | t-zone |
between-brows frown lines | Glabellar / “11” lines. | t-zone |
noseline bunny lines | Wrinkles across the nose bridge. | t-zone |
left side eye crow's feet / right side eye crow's feet | Lines radiating from the outer corner of the eye. | none |
left side tearline / right side tearline | Lines below the inner corner of the eye. | none |
left side nasolabial line / right side nasolabial line | Nasolabial folds. | u-zone |
left side marionette line / right side marionette line | Marionette lines from mouth corners. | u-zone |
vertical lip lines | Lines around the lips. | t-zone |
The ut_zone tags are set from 3.30.0 (currently in the test environment only). In 3.29.1, every wrinkles location reports "none". See Sub-areas for how ut_zone works.
These are descriptions on the same finding, not separate top-level metrics — there’s no nasolabial_folds or crows_feet component to request.
Each entry also carries its own per-region score — value (0..1 severity for that sub-region), a deprecated value_raw, and a Wrinkle intensity sub-measure in measures[] — so you can surface region-level scores, not just the aggregate value on the finding.
Visualization example
Section titled “Visualization example”Code: metrics/wrinkles.js. Change the code to change the picture.
renderMetric and drawPolyline come from the rendering recipes guide (Recipe 2 — polylines); 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.
Rendering notes
Section titled “Rendering notes”For a numeric UI:
const w = response.results.find((r) => r.description === "wrinkles");const score = Math.round(w.value * 100);For drawing the lines themselves, request wrinkles_visualization and iterate. Each visualization_data[] feature is a polyline — x[] and y[] are arrays of length N covering the points along one detected line:
for (const loc of w.measurement_locations ?? []) { // The location's description (e.g. "left side nasolabial line") // tells you which face region this group of lines belongs to — // useful for region-specific styling. for (const line of loc.visualization_data ?? []) { // line.x and line.y are length-N arrays // line.intensity is an array of per-point intensities // line.length_weighted_intensity is a composite ranking value // line.length is the point count; line.mean_intensity / line.median_intensity are summary stats drawPolyline(ctx, line, line.length_weighted_intensity, { color: "#DD33FF" }); }}Three details that matter for polylines:
- Decimate dense lines. A wrinkle feature can carry hundreds of points. Keep every Nth point above a threshold — every 3rd above 20 is a workable default. Visually identical, much cheaper.
length_weighted_intensityis the canonical “how bad is this wrinkle” composite — combines line length with per-point intensity. Sort features descending by it to surface the worst N findings.- Stroke style. A 1–2 px stroke at low opacity reads better than a hard line.
Paste-ready code: Rendering recipes → Polylines.
Edge cases
Section titled “Edge cases”- Male users. For male users —
gender=male, orgender=unknownwhen the analysis estimates the user as male — the beard-area regions (left side marionette line,right side marionette line,vertical lip lines) returnvalue: null(with nullvisualization_dataand a nullWrinkle intensity). Skip null entries when iteratingmeasurement_locations[]. - Smiling expressions dynamically increase apparent wrinkle count. Capture in a neutral expression for trend tracking.
- Heavy makeup reduces wrinkle visibility. The API does not detect whether makeup is worn, so show a standing “based on visible skin” disclaimer rather than conditioning it on a makeup signal.
- Low resolution reduces line-finding precision.
wrinklesadds no threshold of its own beyond the API-wide resolution floors — see Image quality → Resolution.
local_warnings[]
Section titled “local_warnings[]”The wrinkles metric emits no metric-specific local_warnings[] codes. Global status codes still apply; see Status codes.
Related
Section titled “Related”- Visualization data — Cat D (AOI + mask + advanced); polyline-type features with per-point intensities and the
length_weighted_intensitycomposite. - Rendering recipes → Polylines — paste-ready renderer with the dense-point decimation pattern.
- Sub-area divisions — wrinkles uses a custom division (the sub-regions listed above), not the standard primary or alternative face splits.