Instance Property


The face region's weight.


var weight: Double { get }


The weight of a region of interest represents the pervasiveness of the face across the project as a whole. All regions of interest with the same identifier share the same weight. The values range between 0 and 1. The default value is 0.5.

Figure 1

The face of the man who shows up most often has the highest weight.

Four photos containing five different human faces, each showing up at different frequencies

For projects focused on animation or transition between assets, focus on the regions with the highest weight to ensure that your presentation features areas of greatest interest to the user.

See Also

Determining Region Properties

var rect: CGRect

The rectangle representing the region's location.

var quality: Double

The region's quality.