CarPlateRecognitionSettings
内容
[
隐藏
]Inheritance: java.lang.Object
public class CarPlateRecognitionSettings
车牌号识别的设置包含允许自定义识别过程的元素。
构造函数
| 构造函数 | 描述 |
|---|---|
| CarPlateRecognitionSettings() | 默认构造函数:将 autoSkew 设置为 true。 |
方法
| 方法 | 描述 |
|---|---|
| setAllowedCharacters(CharactersAllowedType allowedCharacters) | 允许的字符集合。 |
| setAutomaticColorInversion(boolean automaticColorInversion) | 检测暗色/黑色背景上白色文字的图像,并自动为其选择专用的 OCR 算法。 |
| setIgnoredCharacters(String characters) | 设置识别符号的黑名单。 |
| setLanguage(Language language) |
CarPlateRecognitionSettings()
public CarPlateRecognitionSettings()
默认构造函数:将 autoSkew 设置为 true。
setAllowedCharacters(CharactersAllowedType allowedCharacters)
public void setAllowedCharacters(CharactersAllowedType allowedCharacters)
允许字符集。确定识别结果中允许的字符类型。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| allowedCharacters | CharactersAllowedType | 包含枚举 @see CharactersAllowedType 值。 |
setAutomaticColorInversion(boolean automaticColorInversion)
public void setAutomaticColorInversion(boolean automaticColorInversion)
检测暗色/黑色背景上白色文字的图像,并自动为其选择专用的 OCR 算法。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| automaticColorInversion | boolean | 包含布尔值 - 已设置 automaticColorInversion。 |
setIgnoredCharacters(String characters)
public void setIgnoredCharacters(String characters)
设置识别符号的黑名单。
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| characters | java.lang.String | 从识别中排除的字符。 |
setLanguage(Language language)
public void setLanguage(Language language)
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| language | Language | 设置用于 OCR 的语言。默认是多语言(无)。 |