Skip to content

Composite metrics

composites combines several CV findings into partner-defined scores, such as an overall skin score with sub-scores like “hydration” or “clarity”. The scores form a tree: each leaf reads one CV finding, and each composite node is the weighted mean of its children.

The Revieve API builds the composites from the CV results after the analysis. The CV does not compute them, so they don’t depend on the CV version, but their values move whenever the underlying CV findings change.

component: composites
request:
query: "components=composites,<the components your tree's leaves need>"
response_path: "composites" # top-level key, next to results[]
value_range: [0, 100] # integer, 100 = best; null when nothing under a node could be scored
requires: a composite tree configured by Revieve for your partner ID

Add composites to components, together with the CV components your tree’s leaves read:

?components=composites,acne,redness,texture,wrinkles,pore_dilation

composites itself is not a CV component, and the API doesn’t add CV components on the tree’s behalf:

  • If composites is the only token, the CV runs its default set. hair and the redness_absolute / *_adjusted variants are not in the default set.
  • Otherwise the CV computes only the components you list, so list every component a leaf needs. A leaf whose finding is not in the response counts as missing.
{
"message": "OK",
"results": [ /* unchanged CV findings */ ],
"composites": {
"root": {
"id": "skin_score",
"value": 72,
"children": [
{
"id": "clarity",
"value": 75,
"children": [
{ "metric": "acne", "value": 80 },
{ "metric": "redness", "value": 70 }
]
},
{ "metric": "wrinkles", "value": 69 }
]
},
"missing": []
}
}
  • Composite node — has id (snake_case, defined in your tree), value and children.
  • Leaf — has metric (a name from the table below) and value.
  • Depth — at most three levels: the root, composites directly under it, and leaves. A leaf can also sit directly under the root. A composite never contains another composite.
  • missing — the leaf metrics that could not be scored for this image. Composites that contain them are averaged over their remaining children; a composite whose children are all missing has value: null.

Weights are partner configuration and are not in the response.

The two scales are different on purpose:

results[]composites
Range0..1 (float)0..100 (integer)
DirectionHigher = more of the measured thing (e.g. more acne)Higher = better, always
Exampleacne value: 0.2acne leaf value: 80

A leaf is its CV finding’s value × 100, rounded, and oriented so that 100 is best: Revieve has decided for each metric whether the CV value needs flipping to 100 − x, so you can read every leaf the same way. darkSpots read from raw dark_spots is additionally rescaled to match how Revieve’s apps display dark spots. A composite’s value is the weighted mean of its children, rounded.

results[] itself is unchanged when you request composites.

Leaf names are camelCase names from a fixed list, not the CV description strings:

Leaf metricReads CV finding
hyperpigmentationhyperpigmentation
melasmamelasma
frecklesfreckles
darkSpotsdark_spots_adjusted, else dark_spots
wrinkleswrinkles
rednessredness_absolute, else redness
texturetexture
acneacne
smoothnesssmoothness
skinShineSkin shine (the shine component)
radianceradiance_adjusted, else radiance
dullSkindull_skin
unevenSkinToneuneven_skin_tone
eyebagseyes — eyebags sum measure
darkcircleseyes — dark circles sum measure
poreDilationpore_dilation
skinSaggingskin_sagging
skinFirmnessskin_firmness
hairVolumehair — Hair volume sum measure

Where a leaf lists two findings, it uses the first one present in the response. So darkSpots, redness and radiance use the alternative score only when you request it.

  • When a leaf counts as missing — its finding is not in the response, failed, or has no valid 0..1 value (e.g. -1 or null). A finding with local image warnings still counts, except pore dilation, which counts as missing on a warning unless your tree is set up to keep it.
  • Global errors — when the whole analysis fails (message: "Error"), results is null, every leaf is missing and the root value is null.