ImageHasText
Contents
[
Hide
]ImageHasText(string, string, RecognitionSettings, bool, bool)
Check if the image contains the provided text fragment.
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
. Supports GIF, PNG, JPEG, BMP, TIFF, JFIF.
See Also
- class RecognitionSettings
- class AsposeOcr
- namespace Aspose.OCR
- assembly Aspose.OCR
ImageHasText(string, Regex, RecognitionSettings, bool)
Check if the image text matches the provided regular expression.
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
. Supports GIF, PNG, JPEG, BMP, TIFF, JFIF.
See Also
- class RecognitionSettings
- class AsposeOcr
- namespace Aspose.OCR
- assembly Aspose.OCR