---
title: Implementing saliency-based image cropping in iOS and watchOS
framework: vision
role: sampleCode
role_heading: Sample Code
path: sample-code/vision/implementing-saliency-based-image-cropping-in-ios-and-watchos
---

# Implementing saliency-based image cropping in iOS and watchOS

Crop regions most likely drawing people’s attention from an image in your iOS or watchOS app.

## Overview

Overview note: This sample code project is associated with WWDC26 session 237: What’s new in image understanding. Configure the sample code project To configure the sample code project, do the following: Open the sample with the latest version of Xcode. Set the developer team for all targets to let Xcode automatically manage the provisioning profile. For more information, see Set the bundle ID and Assign the project to a team. note: This sample code needs to run on a physical device.

## See Also

### Image quality and saliency analysis

- [Generating high-quality thumbnails from videos](vision/generating-thumbnails-from-videos.md)
- [CalculateImageAestheticsScoresRequest](vision/calculateimageaestheticsscoresrequest.md)
- [DetectLensSmudgeRequest](vision/detectlenssmudgerequest.md)
- [GenerateAttentionBasedSaliencyImageRequest](vision/generateattentionbasedsaliencyimagerequest.md)
- [GenerateObjectnessBasedSaliencyImageRequest](vision/generateobjectnessbasedsaliencyimagerequest.md)
