Instance Property

quality

The region's quality.

Declaration

@property(nonatomic, readonly) double quality;

Discussion

The quality score represents the quality of the region of interest in the individual asset, based on factors like sharpness, visibility, and prominence in the photo. Values range from 0 to 1, with a default of 0.5. Different regions of interest with the same identifier may have different quality values. If a project must choose between multiple assets containing the same region of interest, use the quality metric to choose the best representative.

Figure 1

The left photo shows a blurrier face, so the quality value is close to 0. The same face on the right is sharper, so its quality value is higher (closer to 1.0).

Two photos containing the same human faces, one with low quality, the other with high quality

See Also

Determining Region Properties

rect

The rectangle representing the region's location.

identifier

The region's unique identifier.

weight

The face region's weight.