Class InvoiceTypeConverter

java.lang.Object
cn.toint.oktool.spring.boot.bdocr.util.InvoiceTypeConverter

public class InvoiceTypeConverter extends Object
发票类型转换器 将OCR识别的发票类型转换为发票验真所需的参数
  • Constructor Details

    • InvoiceTypeConverter

      public InvoiceTypeConverter()
  • Method Details

    • convertOcrToVerifyType

      public static InvoiceVerifyType convertOcrToVerifyType(String ocrResult)
      将OCR识别的发票类型转换为发票验真所需的类型参数
      Parameters:
      ocrResult - OCR识别的发票类型文本
      Returns:
      发票验真类型枚举. 无法识别则返回null
    • convertOcrToVerifyTypeNotNull

      public static InvoiceVerifyType convertOcrToVerifyTypeNotNull(String ocrResult)
      将OCR识别的发票类型转换为发票验真所需的类型参数
      Parameters:
      ocrResult - OCR识别的发票类型文本
      Returns:
      发票验真类型枚举. 无法识别则返回InvoiceVerifyType.UNKNOWN