The region's quality.
SDK
- macOS 10.14+
Framework
- Photos
UI
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
. 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.
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
).
