ImageTextDiff

AsposeOcr.ImageTextDiff method

比较两幅图像上的文本,并返回表示相似度的数值(0 到 1)。

public float ImageTextDiff(string fullPath1, string fullPath2, RecognitionSettings settings = null, 
    bool ignoreCase = true, bool autoSkew = true)
ParameterType描述
fullPath1StringPath to the first image.
fullPath2StringPath to the second image.
settingsRecognitionSettingsRecognition settings.
ignoreCaseBooleanTrue - means a case-insensitive search.
autoSkewBoolean启用自动图像倾斜校正。

返回值

0 表示文本完全不同;1 表示文本完全相同。

另请参见