---
title: detectsDarkOnLight
framework: vision
role: symbol
role_heading: Instance Property
path: vision/vndetectcontoursrequest/detectsdarkonlight
---

# detectsDarkOnLight

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

## Declaration

```swift
var detectsDarkOnLight: 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)
- [maximumImageDimension](vision/vndetectcontoursrequest/maximumimagedimension.md)
- [detectDarkOnLight](vision/vndetectcontoursrequest/detectdarkonlight.md)
