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:

参数类型描述
allowedCharactersCharactersAllowedType包含枚举 @see CharactersAllowedType 值。

setAutomaticColorInversion(boolean automaticColorInversion)

public void setAutomaticColorInversion(boolean automaticColorInversion)

检测暗色/黑色背景上白色文字的图像,并自动为其选择专用的 OCR 算法。

Parameters:

参数类型描述
automaticColorInversionboolean包含布尔值 - 已设置 automaticColorInversion。

setIgnoredCharacters(String characters)

public void setIgnoredCharacters(String characters)

设置识别符号的黑名单。

Parameters:

参数类型描述
charactersjava.lang.String从识别中排除的字符。

setLanguage(Language language)

public void setLanguage(Language language)

Parameters:

参数类型描述
languageLanguage设置用于 OCR 的语言。默认是多语言(无)。