类 IdCardConfig
java.lang.Object
com.walker.openocr.idcard.IdCardConfig
身份证解析配置对象,身份证解析过程只需要一个配置全局对象,无需重复创建。
- 作者:
- 时克英
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intintintvoidsetCellTolerance(int cellTolerance) voidsetIdCardFrontKeys(String text) 设置身份证正面关键词。voidsetMultiLineTolerance(int multiLineTolerance) voidsetTotalRows(int totalRows)
-
字段详细资料
-
构造器详细资料
-
IdCardConfig
public IdCardConfig()
-
-
方法详细资料
-
getIdCardFrontKeys
-
getCellTolerance
public int getCellTolerance() -
setCellTolerance
public void setCellTolerance(int cellTolerance) -
getMultiLineTolerance
public int getMultiLineTolerance() -
setMultiLineTolerance
public void setMultiLineTolerance(int multiLineTolerance) -
getTotalRows
public int getTotalRows() -
setTotalRows
public void setTotalRows(int totalRows) -
setIdCardFrontKeys
设置身份证正面关键词。系统默认会初始化这些参数。- 参数:
text- 如:姓名、性别、公民身份号码
-