跳到主要内容

FinderParams():getTextDetectionAlgorithm()

获取用于文本检测的算法。

签名​

getTextDetectionAlgorithm(): number

返回值

number - 文本算法:

  • 1 = 单词,不区分大小写(默认)
  • 2 = 行,不区分大小写
  • 3 = 单词,区分大小写
  • 4 = 行,区分大小写
  • 5 = 单词,精确匹配
  • 6 = 行,精确匹配

描述​

这是 getDetectionMethod() 针对文本检测的名称。两个方法返回相同的值。