## AsposeOcr.DetectDefects method

Automatically find problematic areas of an image that can significantly impact the accuracy of OCR. Supports PNG, JPEG, BMP, TIFF, JFIF, and GIF images provided as a file, stream, or pixel array. Supports bulk recognition.

```csharp
public List<DefectOutput> DetectDefects(OcrInput images, DefectType defectType)
```

| Parameter | Type | Description |
| --- | --- | --- |
| images | OcrInput | Source images [`OcrInput`](../../ocrinput) |
| defectType | DefectType | The types of defects to be recognized [`DefectType`](../../defecttype) |

### Return Value

Detected image defects or ab empty collection if no defect found [`DefectOutput`](../../defectoutput).

### See Also

* class [DefectOutput](../../defectoutput)
* class [OcrInput](../../ocrinput)
* enum [DefectType](../../defecttype)
* class [AsposeOcr](../../asposeocr)
* namespace [Aspose.OCR](../../asposeocr)
* assembly [Aspose.OCR](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.OCR.dll -->
