ImageHasText

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)
ParameterTypeDescription
fullPathStringPath to the image.
textStringText fragment for searching on the image.
settingsRecognitionSettingsRecognition settings.
ignoreCaseBooleanTrue - means a case-insensitive search.
autoSkewBooleanEnables 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


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)
ParameterTypeDescription
fullPathStringPath to the image.
regexRegexSystem.Text.RegularExpressions object with the provided pattern and options.
settingsRecognitionSettingsRecognition settings.
autoSkewBooleanEnables 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