---
title: minimumTextHeightFraction
framework: vision
role: symbol
role_heading: Instance Property
path: vision/recognizedocumentsrequest/textrecognitionoptions-swift.struct/minimumtextheightfraction
---

# minimumTextHeightFraction

The minimum height, relative to the image height, of the text to recognize.

## Declaration

```swift
var minimumTextHeightFraction: Float
```

## Discussion

Discussion Specify a floating-point number relative to the image height. For example, to limit recognition to text that’s half of the image height, use 0.5. Increasing the size reduces memory consumption and expedites recognition with the tradeoff of ignoring text smaller than the minimum height. The default value is 1/32, or 0.03125.

## See Also

### Inspecting the recognized text

- [automaticallyDetectLanguage](vision/recognizedocumentsrequest/textrecognitionoptions-swift.struct/automaticallydetectlanguage.md)
- [customWords](vision/recognizedocumentsrequest/textrecognitionoptions-swift.struct/customwords.md)
- [maximumCandidateCount](vision/recognizedocumentsrequest/textrecognitionoptions-swift.struct/maximumcandidatecount.md)
- [recognitionLanguages](vision/recognizedocumentsrequest/textrecognitionoptions-swift.struct/recognitionlanguages.md)
- [useLanguageCorrection](vision/recognizedocumentsrequest/textrecognitionoptions-swift.struct/uselanguagecorrection.md)
