<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNContour",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:objc(cs)VNContour"
  },
  "title" : "VNContour"
}
-->

# VNContour

A class that represents a detected contour in an image.

```
class VNContour
```

## Topics

### Inspecting the Contour

[`aspectRatio`](/documentation/Vision/VNContour/aspectRatio)

The aspect ratio of the contour.

[`indexPath`](/documentation/Vision/VNContour/indexPath)

The contour object’s index path.

[`normalizedPath`](/documentation/Vision/VNContour/normalizedPath)

The contour object as a path in normalized coordinates.

[`pointCount`](/documentation/Vision/VNContour/pointCount)

The contour’s number of points.

[`normalizedPoints`](/documentation/Vision/VNContour/normalizedPoints-8n2s5)

The contour’s array of points in normalized coordinates.

[`normalizedPoints`](/documentation/Vision/VNContour/normalizedPoints-2orqj)

The contour’s array of points in normalized coordinates.

[`polygonApproximation(epsilon:)`](/documentation/Vision/VNContour/polygonApproximation(epsilon:))

Simplifies the contour to a polygon using a Ramer-Douglas-Peucker algorithm.

### Accessing Child Contours

[`childContourCount`](/documentation/Vision/VNContour/childContourCount)

The total number of detected child contours.

[`childContours`](/documentation/Vision/VNContour/childContours)

An array of contours that this contour encloses.

[`childContour(at:)`](/documentation/Vision/VNContour/childContour(at:))

Retrieves the child contour object at the specified index.



---

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)