---
title: VisionResult
framework: vision
role: symbol
role_heading: Enumeration
path: vision/visionresult
---

# VisionResult

The result the framework produces by performing a request.

## Declaration

```swift
enum VisionResult
```

## Overview

Overview Each result contains the original VisionRequest, along with any observations produced.

## Topics

### Getting the still-image result

- [VisionResult.classifyImage(_:_:)](vision/visionresult/classifyimage(_:_:).md)

### Getting the image sequence result

- [VisionResult.generatePersonInstanceMask(_:_:)](vision/visionresult/generatepersoninstancemask(_:_:).md)
- [VisionResult.generatePersonSegmentation(_:_:)](vision/visionresult/generatepersonsegmentation(_:_:).md)
- [VisionResult.detectDocumentSegmentation(_:_:)](vision/visionresult/detectdocumentsegmentation(_:_:).md)
- [VisionResult.recognizeDocuments(_:_:)](vision/visionresult/recognizedocuments(_:_:).md)

### Getting the image aesthetics and lens smudge result

- [VisionResult.calculateImageAestheticsScores(_:_:)](vision/visionresult/calculateimageaestheticsscores(_:_:).md)
- [VisionResult.detectLensSmudge(_:_:)](vision/visionresult/detectlenssmudge(_:_:).md)

### Getting the saliency result

- [VisionResult.generateObjectnessBasedSaliencyImage(_:_:)](vision/visionresult/generateobjectnessbasedsaliencyimage(_:_:).md)
- [VisionResult.generateAttentionBasedSaliencyImage(_:_:)](vision/visionresult/generateattentionbasedsaliencyimage(_:_:).md)

### Getting the object-tracking result

- [VisionResult.trackRectangle(_:_:)](vision/visionresult/trackrectangle(_:_:).md)
- [VisionResult.trackObject(_:_:)](vision/visionresult/trackobject(_:_:).md)

### Getting the face and body detection result

- [VisionResult.detectFaceCaptureQuality(_:_:)](vision/visionresult/detectfacecapturequality(_:_:).md)
- [VisionResult.detectFaceLandmarks(_:_:)](vision/visionresult/detectfacelandmarks(_:_:).md)
- [VisionResult.detectFaceRectangles(_:_:)](vision/visionresult/detectfacerectangles(_:_:).md)
- [VisionResult.detectHumanRectangles(_:_:)](vision/visionresult/detecthumanrectangles(_:_:).md)

### Getting the body and hand pose detection result

- [VisionResult.detectHumanBodyPose(_:_:)](vision/visionresult/detecthumanbodypose(_:_:).md)
- [VisionResult.detectHumanHandPose(_:_:)](vision/visionresult/detecthumanhandpose(_:_:).md)
- [VisionResult.detectHumanBodyPose3D(_:_:)](vision/visionresult/detecthumanbodypose3d(_:_:).md)

### Getting the animal detection result

- [VisionResult.recognizeAnimals(_:_:)](vision/visionresult/recognizeanimals(_:_:).md)
- [VisionResult.detectAnimalBodyPose(_:_:)](vision/visionresult/detectanimalbodypose(_:_:).md)

### Getting the text result

- [VisionResult.detectTextRectangles(_:_:)](vision/visionresult/detecttextrectangles(_:_:).md)
- [VisionResult.recognizeText(_:_:)](vision/visionresult/recognizetext(_:_:).md)

### Getting the image alignment, feature print, and background removal result

- [VisionResult.trackTranslationalImageRegistration(_:_:)](vision/visionresult/tracktranslationalimageregistration(_:_:).md)
- [VisionResult.trackHomographicImageRegistration(_:_:)](vision/visionresult/trackhomographicimageregistration(_:_:).md)
- [VisionResult.generateForegroundInstanceMask(_:_:)](vision/visionresult/generateforegroundinstancemask(_:_:).md)
- [VisionResult.generateImageFeaturePrint(_:_:)](vision/visionresult/generateimagefeatureprint(_:_:).md)

### Getting the trajectory, contour, and horizon detection result

- [VisionResult.detectTrajectories(_:_:)](vision/visionresult/detecttrajectories(_:_:).md)
- [VisionResult.detectContours(_:_:)](vision/visionresult/detectcontours(_:_:).md)
- [VisionResult.detectHorizon(_:_:)](vision/visionresult/detecthorizon(_:_:).md)

### Getting the optical flow, rectangle and barcode detection result

- [VisionResult.trackOpticalFlow(_:_:)](vision/visionresult/trackopticalflow(_:_:).md)
- [VisionResult.detectRectangles(_:_:)](vision/visionresult/detectrectangles(_:_:).md)
- [VisionResult.detectBarcodes(_:_:)](vision/visionresult/detectbarcodes(_:_:).md)

### Getting the machine learning image-analysis result

- [VisionResult.coreML(_:_:)](vision/visionresult/coreml(_:_:).md)

### Getting the error result

- [VisionResult.error(_:_:)](vision/visionresult/error(_:_:).md)

### Enumeration Cases

- [VisionResult.generateIterativeSegmentation(_:_:)](vision/visionresult/generateiterativesegmentation(_:_:).md)
- [VisionResult.generateSelectedObjectSegmentation(_:_:)](vision/visionresult/generateselectedobjectsegmentation(_:_:).md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Performing the request

- [Result](vision/visionrequest/result.md)
