<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "watchOS: 27.0.0 -",
    "Xcode: 27.0.0 -"
  ],
  "documentType" : "article",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/implementing-saliency-based-image-cropping-in-iOS-and-watchOS",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "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

> Note: This sample code project is associated with WWDC26 session 237: [What’s new in image understanding](https://developer.apple.com/wwdc26/237/).

## Configure the sample code project

To configure the sample code project, do the following:

1. Open the sample with the latest version of Xcode.
2. Set the developer team for all targets to let Xcode automatically manage the provisioning profile. For more information, see [Set the bundle ID](https://developer.apple.com/documentation/xcode/preparing-your-app-for-distribution#Set-the-bundle-ID) and [Assign the project to a team](https://developer.apple.com/documentation/xcode/preparing-your-app-for-distribution#Assign-the-project-to-a-team).

> Note: This sample code needs to run on a physical device.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)