---
title: detectDarkOnLight
framework: vision
role: symbol
role_heading: Instance Property
path: vision/vndetectcontoursrequest/detectdarkonlight
---

# detectDarkOnLight

A Boolean value that indicates whether the request detects a dark object on a light background.

## Declaration

```swift
var detectDarkOnLight: Bool { get set }
```

## Discussion

Discussion The default value is true.

## See Also

### Configuring the Request

- [contrastAdjustment](vision/vndetectcontoursrequest/contrastadjustment.md)
- [contrastPivot](vision/vndetectcontoursrequest/contrastpivot.md)
- [detectsDarkOnLight](vision/vndetectcontoursrequest/detectsdarkonlight.md)
- [maximumImageDimension](vision/vndetectcontoursrequest/maximumimagedimension.md)
