Instance Property

weight

The face region's weight.

Declaration

@property(nonatomic, readonly) double weight;

Discussion

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

rect

The rectangle representing the region's location.

identifier

The region's unique identifier.

quality

The region's quality.