Class

VNSaliencyImageObservation

An observation containing a grayscale heat map of important areas across an image.

Declaration

class VNSaliencyImageObservation : VNPixelBufferObservation

Overview

The heat map is a CVPixelBuffer in a one-component floating-point pixel format. Its dimensions are 64 x 64 when fetched in real time, or 68 x 68 when requested in its deferred form.

Topics

Locating Salient Regions

var salientObjects: [VNRectangleObservation]?

A collection of objects describing the distinct areas of the saliency heat map.

Relationships

Conforms To

See Also

Saliency Analysis

Cropping Images Using Saliency

Isolate regions in an image that are most likely to draw people's attention.

Highlighting Areas of Interest in an Image Using Saliency

Quantify and visualize where people are likely to look in an image.

class VNGenerateAttentionBasedSaliencyImageRequest

Generates a heat map that identifies the parts of an image most likely to draw attention.

Beta
class VNGenerateObjectnessBasedSaliencyImageRequest

Generates a heat map that identifies the parts of an image most likely to represent objects.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software