## ImageHasText(string, string, RecognitionSettings, bool, bool) {#imagehastext}

Check if the image contains the provided text fragment.

```csharp
public bool ImageHasText(string fullPath, string text, RecognitionSettings settings = null, 
    bool ignoreCase = true, bool autoSkew = true)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fullPath | String | Path to the image. |
| text | String | Text fragment for searching on the image. |
| settings | RecognitionSettings | Recognition settings. |
| ignoreCase | Boolean | True - means a case-insensitive search. |
| autoSkew | Boolean | Enables the automatic image skew correction. |

### Return Value

True if image contains text fragment. False - image doesn't contains text fragment.

### Remarks

Recognizes image with the ability to specify [`RecognitionSettings`](../../recognitionsettings). Supports GIF, PNG, JPEG, BMP, TIFF, JFIF.

### See Also

* class [RecognitionSettings](../../recognitionsettings)
* class [AsposeOcr](../../asposeocr)
* namespace [Aspose.OCR](../../asposeocr)
* assembly [Aspose.OCR](../../../)

---

## ImageHasText(string, Regex, RecognitionSettings, bool) {#imagehastext_1}

Check if the image text matches the provided regular expression.

```csharp
public bool ImageHasText(string fullPath, Regex regex, RecognitionSettings settings = null, 
    bool autoSkew = true)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fullPath | String | Path to the image. |
| regex | Regex | System.Text.RegularExpressions object with the provided pattern and options. |
| settings | RecognitionSettings | Recognition settings. |
| autoSkew | Boolean | Enables the automatic image skew correction. |

### Return Value

True if image text matches the provided regular expression.

### Remarks

Recognizes image with the ability to specify [`RecognitionSettings`](../../recognitionsettings). Supports GIF, PNG, JPEG, BMP, TIFF, JFIF.

### See Also

* class [RecognitionSettings](../../recognitionsettings)
* class [AsposeOcr](../../asposeocr)
* namespace [Aspose.OCR](../../asposeocr)
* assembly [Aspose.OCR](../../../)

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