<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/CalculateImageAestheticsScoresRequest",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "s:6Vision37CalculateImageAestheticsScoresRequestV"
  },
  "title" : "CalculateImageAestheticsScoresRequest"
}
-->

# CalculateImageAestheticsScoresRequest

A request that analyzes an image for aesthetically pleasing attributes.

```
struct CalculateImageAestheticsScoresRequest
```

## Overview

The request returns the resulting aesthetics score in an instance of [`ImageAestheticsScoresObservation`](/documentation/Vision/ImageAestheticsScoresObservation).

## Topics

### Creating a request

[`init(_:)`](/documentation/Vision/CalculateImageAestheticsScoresRequest/init(_:))

Creates an image aesthetics request.

### Performing a request

[`perform(on:orientation:)`](/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-80bya)

Performs the request on an image URL and produces observations.

[`perform(on:orientation:)`](/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-3f3f1)

Performs the request on image data and produces observations.

[`perform(on:orientation:)`](/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-qxxx)

Performs the request on a Core Graphics image and produces observations.

[`perform(on:orientation:)`](/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-xspx)

Performs the request on a pixel buffer and produces observations.

[`perform(on:orientation:)`](/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-3hddl)

Performs the request on a Core Media buffer and produces observations.

[`perform(on:orientation:)`](/documentation/Vision/ImageProcessingRequest/perform(on:orientation:)-85ex1)

Performs the request on a Core Image image and produces observations.

### Understanding the result

[`ImageAestheticsScoresObservation`](/documentation/Vision/ImageAestheticsScoresObservation)

An observation that provides an overall score of aesthetic attributes for an image.

### Configuring a request

[`cropAndScaleAction`](/documentation/Vision/CalculateImageAestheticsScoresRequest/cropAndScaleAction)

An optional setting that tells the algorithm how to scale an input image before generating the result.

[`ImageCropAndScaleAction`](/documentation/Vision/ImageCropAndScaleAction)

A scale to apply to an input image before performing a request.

### Getting the revision

[`revision`](/documentation/Vision/CalculateImageAestheticsScoresRequest/revision-swift.property)

The algorithm or implementation the request uses.

[`supportedRevisions`](/documentation/Vision/CalculateImageAestheticsScoresRequest/supportedRevisions)

The collection of revisions the request supports.

[`Revision`](/documentation/Vision/CalculateImageAestheticsScoresRequest/Revision-swift.enum)

A type that describes the algorithm or implementation that the request performs.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`ImageProcessingRequest`](/documentation/Vision/ImageProcessingRequest)

[`VisionRequest`](/documentation/Vision/VisionRequest)

---

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)