Sample Code

Highlighting Areas of Interest in an Image Using Saliency

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

Download

Overview

See Also

Saliency Analysis

Cropping Images Using Saliency

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

class VNGenerateAttentionBasedSaliencyImageRequest

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

class VNGenerateObjectnessBasedSaliencyImageRequest

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

class VNSaliencyImageObservation

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