tenyun
Version:
Promise based and chained Tencent Cloud OpenAPI client for NodeJS
2,229 lines (2,107 loc) • 272 kB
TypeScript
/// <reference types="node" />
import { AxiosPromise, AxiosRequestConfig } from "axios";
/** 广告文字识别结果 */
declare interface AdvertiseTextDetection {
/** 识别出的文本行内容 */
DetectedText?: string;
/** 置信度 0 ~100 */
Confidence?: number;
/** 文本行坐标,以四个顶点坐标表示 */
Polygon?: Coord[];
/** 此字段为扩展字段。GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。 */
AdvancedInfo?: string;
}
/** 航空运输电子客票行程单信息 */
declare interface AirTicketInfo {
/** 旅客姓名 */
PassengerName?: string;
/** 有效身份证件号码 */
ValidIdNumber?: string;
/** 签注 */
Endorsement?: string;
/** GP单号 */
NumberOfGPOrder?: string;
/** 发票号码 */
ElectronicInvoiceAirTransportReceiptNumber?: string;
/** 机票详细信息元组 */
DetailInformationOfAirTicketTuple?: DetailInformationOfAirTicketTupleList[];
/** 票价 */
Fare?: string;
/** 燃油附加费 */
FuelSurcharge?: string;
/** 增值税税率 */
VatRate?: string;
/** 增值税税额 */
VatTaxAmount?: string;
/** 民航发展基金 */
CivilAviationDevelopmentFund?: string;
/** 其他税费 */
OtherTaxes?: string;
/** 合计 */
TotalAmount?: string;
/** 电子客票号码 */
ElectronicTicketNum?: string;
/** 验证码 */
VerificationCode?: string;
/** 提示信息 */
PromptInformation?: string;
/** 保险费 */
Insurance?: string;
/** 销售网点代号 */
AgentCode?: string;
/** 填开单位 */
IssueParty?: string;
/** 填开时间 */
IssueDate?: string;
/** 开具状态 */
IssuingStatus?: string;
/** 国内国际标识 */
MarkingOfDomesticOrInternational?: string;
/** 购买方名称 */
NameOfPurchaser?: string;
/** 销售方名称 */
NameOfSeller?: string;
/** 统一社会信用代码 */
UnifiedSocialCreditCodeOfPurchaser?: string;
}
/** 机票行程单 */
declare interface AirTransport {
/** 发票名称 */
Title?: string;
/** 电子客票号码 */
Number?: string;
/** 校验码 */
CheckCode?: string;
/** 印刷序号 */
SerialNumber?: string;
/** 开票日期 */
Date?: string;
/** 销售单位代号 */
AgentCode?: string;
/** 销售单位代号第一行 */
AgentCodeFirst?: string;
/** 销售单位代号第二行 */
AgentCodeSecond?: string;
/** 姓名 */
UserName?: string;
/** 身份证号 */
UserID?: string;
/** 填开单位 */
Issuer?: string;
/** 票价 */
Fare?: string;
/** 合计税额 */
Tax?: string;
/** 燃油附加费 */
FuelSurcharge?: string;
/** 民航发展基金 */
AirDevelopmentFund?: string;
/** 保险费 */
Insurance?: string;
/** 合计金额(小写) */
Total?: string;
/** 发票消费类型 */
Kind?: string;
/** 国内国际标签 */
DomesticInternationalTag?: string;
/** 客票生效日期 */
DateStart?: string;
/** 有效截止日期 */
DateEnd?: string;
/** 签注 */
Endorsement?: string;
/** 是否存在二维码(1:有,0:无) */
QRCodeMark?: number;
/** 条目 */
FlightItems?: FlightItem[];
/** 提示信息 */
PromptInformation?: string;
/** 统一社会信用代码/纳税人识别号 */
BuyerTaxID?: string;
/** 购买方名称 */
Buyer?: string;
/** 发票号码 */
ReceiptNumber?: string;
/** 开票状态 */
InvoiceStatus?: string;
/** 增值税税率 */
TaxRate?: string;
/** 增值税税额 */
TaxAmount?: string;
}
/** 银行回单 */
declare interface BankSlip {
/** 银行回单信息 */
BankSlipInfos?: BankSlipInfo[] | null;
/** 银行回单信息常用字段 */
CommonBankSlipInfos?: BankSlipInfo[];
}
/** 银行回单识别出的字段 */
declare interface BankSlipInfo {
/** 识别出的字段名称(关键字),支持以下字段:付款开户行、收款开户行、付款账号、收款账号、回单类型、回单编号、币种、流水号、凭证号码、交易机构、交易金额、手续费、日期等字段信息。 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。 */
Value?: string;
/** 文本行在旋转纠正之后的图像中的像素坐标。 */
Rect?: Rect;
}
/** 汽车票 */
declare interface BusInvoice {
/** 发票名称 */
Title?: string;
/** 是否存在二维码(1:有,0:无) */
QRCodeMark?: number;
/** 发票号码 */
Number?: string;
/** 发票代码 */
Code?: string;
/** 开票日期 */
Date?: string;
/** 乘车时间 */
TimeGetOn?: string;
/** 乘车日期 */
DateGetOn?: string;
/** 出发车站 */
StationGetOn?: string;
/** 到达车站 */
StationGetOff?: string;
/** 票价 */
Total?: string;
/** 姓名 */
UserName?: string;
/** 消费类型 */
Kind?: string;
/** 身份证号 */
UserID?: string;
/** 省 */
Province?: string;
/** 市 */
City?: string;
/** 乘车地点 */
PlaceGetOn?: string;
/** 检票口 */
GateNumber?: string;
/** 客票类型 */
TicketType?: string;
/** 车型 */
VehicleType?: string;
/** 座位号 */
SeatNumber?: string;
/** 车次 */
TrainNumber?: string;
}
/** 汽车票字段信息 */
declare interface BusInvoiceInfo {
/** 识别出的字段名称(关键字),支持以下字段:发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、身份证号、省、市、开票日期、乘车地点、检票口、客票类型、车型、座位号、车次。 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。 */
Value?: string;
/** 文本行在旋转纠正之后的图像中的像素坐标。 */
Rect?: Rect;
}
/** 名片识别结果 */
declare interface BusinessCardInfo {
/** 识别出的字段名称(关键字,可能重复,比如多个手机),能识别的字段名为:姓名、英文姓名、英文地址、公司、英文公司、职位、英文职位、部门、英文部门、手机、电话、传真、社交帐号、QQ、MSN、微信、微博、邮箱、邮编、网址、公司账号、其他。 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段name对应的字符串结果。 */
Value?: string;
/** 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height) */
ItemCoord?: ItemCoord;
}
/** 非营业执照的营业类证件识别结果,将以结构化形式呈现。 */
declare interface BusinessCertificateInfo {
/** 识别出的名称 */
Name?: string;
/** 识别出的字段名称对应的值 */
Value?: string;
/** 坐标 */
Rect?: Rect;
}
/** 候选字符集(包含候选字Character以及置信度Confidence) */
declare interface CandWord {
/** 候选字符集的单词信息(包括单词Character和单词置信度confidence) */
CandWords: Words[];
}
/** 购车发票识别结果 */
declare interface CarInvoiceInfo {
/** 识别出的字段名称(关键字),支持以下字段:发票代码、 机打代码、 发票号码、 发动机号码、 合格证号、 机打号码、 价税合计(小写)、 销货单位名称、 身份证号码/组织机构代码、 购买方名称、 销售方纳税人识别号、 购买方纳税人识别号、主管税务机关、 主管税务机关代码、 开票日期、 不含税价(小写)、 吨位、增值税税率或征收率、 车辆识别代号/车架号码、 增值税税额、 厂牌型号、 省、 市、 发票消费类型、 销售方电话、 销售方账号、 产地、 进口证明书号、 车辆类型、 机器编号、备注、开票人、限乘人数、商检单号、销售方地址、销售方开户银行、价税合计、发票类型。 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段name对应的字符串结果。 */
Value?: string;
/** 字段在旋转纠正之后的图像中的像素坐标。 */
Rect?: Rect;
/** 字段在原图中的四点坐标。 */
Polygon?: Polygon | null;
}
/** 卡证告警信息返回 */
declare interface CardWarnInfo {
/** 证件边缘是否完整0:正常1:边缘不完整 */
BorderCheck?: number;
/** 证件是否被遮挡0:正常1:有遮挡 */
OcclusionCheck?: number;
/** 是否复印0:正常1:复印件 */
CopyCheck?: number;
/** 是否屏幕翻拍0:正常1:翻拍 */
ReshootCheck?: number;
/** 证件是否有PS0:正常1:有PS */
PSCheck?: number;
/** 是否模糊:0:正常1:模糊 */
BlurCheck?: number;
/** 模糊分数, 范围:0.0-1.0,分数越高越模糊,建议阈值为0.5 */
BlurScore?: number;
/** 是否电子身份证0:否1:是电子身份证 */
ElectronCheck?: number;
}
/** 单元格识别结果 */
declare interface CellContent {
/** 段落编号 */
ParagNo?: number | null;
/** 字体大小 */
WordSize?: number | null;
}
/** 卡证智能分类结果 */
declare interface ClassifyDetectInfo {
/** 分类名称,包括:身份证、护照、名片、银行卡、行驶证、驾驶证、港澳台通行证、户口本、港澳台来往内地通行证、港澳台居住证、不动产证、营业执照 */
Name?: string;
/** 分类类型 */
Type?: string | null;
/** 位置坐标 */
Rect?: Rect;
}
/** 支持模版的单个属性配置 */
declare interface ConfigAdvanced {
/** 模版的单个属性配置 */
Scene?: string;
}
/** 卡证字段信息返回值 */
declare interface ContentInfo {
/** 字段内容 */
Content?: string;
/** 结果置信度 */
Confidence?: number;
/** 字段是否不完整(value内容)0 字段正常1 字段不完整 */
IsInComplete?: number;
/** 字段反光(value内容)0 字段正常1 字段有反光 */
IsReflect?: number;
/** 字段是否不完整(key内容)0 字段正常1 字段不完整 */
IsKeyInComplete?: number;
/** 字段反光(key内容)0 字段正常1 字段有反光 */
IsKeyReflect?: number;
}
/** 坐标 */
declare interface Coord {
/** 横坐标 */
X?: number;
/** 纵坐标 */
Y?: number;
}
/** 海关进/出口货物报关单 */
declare interface CustomsDeclaration {
/** 发票名称 */
Title?: string;
/** 识别出的字段名称(关键字) */
Content?: OtherInvoiceItem[];
}
/** 海关缴款书 */
declare interface CustomsPaymentReceipt {
/** 发票名称 */
Title?: string;
/** 识别出的字段名称(关键字),支持以下字段: 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。 示例值:纳税人识别号 */
Content?: OtherInvoiceItem[];
/** 海关缴款书常用字段 */
CommonContent?: OtherInvoiceItem[];
}
/** 机票详细信息元组 */
declare interface DetailInformationOfAirTicketTupleList {
/** 出发站(自) */
DepartureStation?: string;
/** 目的地(至) */
DestinationStation?: string;
/** 航班 */
FlightSegment?: string;
/** 航班 */
Carrier?: string;
/** 航班号 */
Flight?: string;
/** 座位等级 */
SeatClass?: string;
/** 日期 */
CarrierDate?: string;
/** 时间 */
DepartureTime?: string;
/** 客票级别/客票类别 */
FareBasis?: string;
/** 客票生效日期 */
EffectiveDate?: string;
/** 有效截止日期 */
ExpirationDate?: string;
/** 免费行李 */
FreeBaggageAllowance?: string;
}
/** 单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。 */
declare interface DetectedWordCoordPoint {
/** 单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。 */
WordCoordinate: Coord[];
}
/** 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence) */
declare interface DetectedWords {
/** 置信度 0 ~100 */
Confidence?: number;
/** 候选字Character */
Character?: string;
}
/** 识别出的字段 */
declare interface DutyPaidProofInfo {
/** 识别出的字段名称(关键字),支持以下字段:税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。 */
Value?: string;
/** 文本行在旋转纠正之后的图像中的像素坐标。 */
Rect?: Rect;
}
/** 全电发票(航空运输电子客票行程单) */
declare interface ElectronicAirTransport {
/** 发票代码 */
Code?: string | null;
/** 发票号码 */
Number?: string | null;
/** 开票日期 */
Date?: string | null;
/** 金额 */
Amount?: string | null;
/** 校验码 */
CheckCode?: string | null;
/** 价税合计 */
Total?: string | null;
/** 抵扣标志 */
DeductionMark?: string | null;
/** 发票状态代码,0正常 1 未更新 2作废 3已红冲 */
StateCode?: string | null;
/** 购方识别号 */
BuyerTaxCode?: string | null;
/** 购方名称 */
BuyerName?: string | null;
/** 合计税额 */
Tax?: string | null;
/** 国内国际标识 */
DomesticInternationalMark?: string | null;
/** 旅客姓名 */
PassengerName?: string | null;
/** 有效身份证件号码 */
PassengerNo?: string | null;
/** 电子客票号码 */
ElectronicNumber?: string | null;
/** 全电发票(航空运输电子客票行程单)详细信息 */
ElectronicAirTransportDetails?: ElectronicAirTransportDetail[] | null;
}
/** 全电发票(航空运输电子客票行程单)详细信息 */
declare interface ElectronicAirTransportDetail {
/** 航段序号 */
FlightSegment?: string | null;
/** 始发站 */
StationGetOn?: string | null;
/** 目的站 */
StationGetOff?: string | null;
/** 承运人 */
Carrier?: string | null;
/** 航班号 */
FlightNumber?: string | null;
/** 座位等级 */
SeatLevel?: string | null;
/** 承运日期 */
FlightDate?: string | null;
/** 起飞时间 */
DepartureTime?: string | null;
/** 客票级别/客票类别 */
FareBasis?: string | null;
}
/** 电子发票(机票行程单) */
declare interface ElectronicFlightTicketFull {
/** 旅客姓名 */
UserName?: string;
/** 有效身份证件号码 */
UserID?: string;
/** 签注 */
Endorsement?: string;
/** GP单号 */
GPOrder?: string;
/** 发票号码 */
Number?: string;
/** 票价 */
Fare?: string;
/** 燃油附加费 */
FuelSurcharge?: string;
/** 增值税税率 */
TaxRate?: string;
/** 增值税税额 */
Tax?: string;
/** 民航发展基金 */
DevelopmentFund?: string;
/** 其他税费 */
OtherTax?: string;
/** 合计 */
Total?: string;
/** 电子客票号码 */
ElectronicTicketNum?: string;
/** 验证码 */
VerificationCode?: string;
/** 提示信息 */
PromptInformation?: string;
/** 保险费 */
Insurance?: string;
/** 填开单位 */
Issuer?: string;
/** 填开时间 */
Date?: string;
/** 国内国际标识 */
DomesticInternationalTag?: string;
/** 购买方名称 */
Buyer?: string;
/** 销售方名称 */
Seller?: string;
/** 统一社会信用代码 */
BuyerTaxID?: string;
/** 机票详细信息元组 */
FlightItems?: FlightItemInfo[];
/** 机票开具状态 */
InvoiceStatus?: string;
}
/** 全电发票(铁路电子客票) */
declare interface ElectronicTrainTicket {
/** 购方名称 */
BuyerName?: string | null;
/** 购方识别号 */
BuyerTaxCode?: string | null;
/** 发票号码 */
Number?: string | null;
/** 开票日期 */
Date?: string | null;
/** 价税合计(中文大写) */
TotalCN?: string | null;
/** 税额 */
Tax?: string | null;
/** 业务类型,0:退票,1:售票 */
ServiceType?: string | null;
/** 出发时间 */
TimeGetOn?: string | null;
/** 车次 */
TrainNumber?: string | null;
/** 发票代码 */
Code?: string | null;
/** 席别 */
SeatType?: string | null;
/** 乘车日期 */
DateGetOn?: string | null;
/** 车厢 */
TrainCabin?: string | null;
/** 出发站 */
StationGetOn?: string | null;
/** 电子客票号 */
ElectronicNumber?: string | null;
/** 姓名 */
PassengerName?: string | null;
/** 证件号 */
PassengerNo?: string | null;
/** 金额 */
Amount?: string | null;
/** 到达站 */
StationGetOff?: string | null;
/** 税率 */
TaxRate?: string | null;
/** 席位 */
Seat?: string | null;
/** 价税合计 */
Total?: string | null;
/** 校验码 */
CheckCode?: string | null;
/** 发票状态代码,0正常 1 未更新 2作废 3已红冲 */
StateCode?: string | null;
}
/** 电子发票(火车票) */
declare interface ElectronicTrainTicketFull {
/** 电子发票类型 */
TypeOfVoucher?: string;
/** 电子客票号 */
ElectronicTicketNum?: string;
/** 开票日期 */
Date?: string;
/** 始发站 */
StationGetOn?: string;
/** 到达站 */
StationGetOff?: string;
/** 火车号 */
TrainNumber?: string;
/** 乘车日期 */
DateGetOn?: string;
/** 始发时间 */
TimeGetOn?: string;
/** 座位类型 */
Seat?: string;
/** 座位号 */
SeatNumber?: string;
/** 票价 */
Fare?: string;
/** 发票号码 */
Number?: string;
/** 身份证号 */
UserID?: string;
/** 乘车人姓名 */
UserName?: string;
/** 金额 */
Total?: string;
/** 税率 */
TaxRate?: string;
/** 税额 */
Tax?: string;
/** 购买方名称 */
Buyer?: string;
/** 统一社会信用代码 */
BuyerTaxID?: string;
/** 原发票号码 */
OriginalNumber?: string;
/** 标识信息 */
IDInfo?: string;
}
/** 试题识别结果-元素内容 */
declare interface Element {
/** 元素内容,当type为figure时该字段内容为图片的位置 */
Text?: string;
/** 元素坐标 */
Coord?: Polygon;
/** 元素group类型,包括multiple-choice(选择题)、fill-in-the-blank(填空题)、problem-solving(解答题)、arithmetic(算术题) */
GroupType?: string;
/** 结果列表 */
ResultList?: ResultList[] | null;
/** 元素索引 */
Index?: number;
}
/** 敏感数据加密 */
declare interface Encryption {
/** 有加密需求的用户,接入传入kms的CiphertextBlob(Base64编码),关于数据加密可查阅[敏感数据加密指引](https://cloud.tencent.com/document/product/866/106048)文档。 */
CiphertextBlob: string | null;
/** 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符,Base64编码)。 */
Iv: string | null;
/** 加密使用的算法(支持'AES-256-CBC'、'SM4-GCM'),不传默认为'AES-256-CBC' */
Algorithm?: string | null;
/** SM4-GCM算法生成的消息摘要(校验消息完整性时使用) */
TagList?: string[] | null;
/** 在使用加密服务时,指定要被加密的字段。本接口默认为EncryptedBody */
EncryptList?: string[] | null;
}
/** 企业证照单个字段的内容 */
declare interface EnterpriseLicenseInfo {
/** 识别出的字段名称(关键字),不同证件类型可能不同,证件类型包含企业登记证书、许可证书、企业执照、三证合一类证书;支持以下字段:统一社会信用代码、法定代表人、公司名称、公司地址、注册资金、企业类型、经营范围、成立日期、有效期、开办资金、经费来源、举办单位等; */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。 */
Value?: string;
}
/** 金融票据整单识别单个字段的内容 */
declare interface FinanBillInfo {
/** 识别出的字段名称(关键字),支持以下字段:【进账单】日期、出票全称、出票账号、出票开户行、收款人全称、收款人账号、收款开户行、大写金额、小写金额、票据种类、票据张数、票据号码;【支票】开户银行、支票种类、凭证号码2、日期、大写金额、小写金额、付款行编号、密码、凭证号码1;【银行承兑汇票】或【商业承兑汇票】出票日期、行号1、行号2、出票人全称、出票人账号、付款行全称、收款人全称、收款人账号、收款人开户行、出票金额大写、出票金额小写、汇票到期日、付款行行号、付款行地址。 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。 */
Value?: string;
}
/** 金融票据切片识别单个字段的内容 */
declare interface FinanBillSliceInfo {
/** 识别出的字段名称(关键字),支持以下字段:大写金额、小写金额、账号、票号1、票号2、收款人、大写日期、同城交换号、地址-省份、地址-城市、付款行全称、支票密码、支票用途。 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。 */
Value?: string;
}
/** 财务票据查验返回结果 */
declare interface FinancialBill {
/** 票据代码 */
Code?: string | null;
/** 票据号码 */
Number?: string | null;
/** 缴款人纳税识别号 */
BuyerTaxID?: string | null;
/** 校验码 */
CheckCode?: string | null;
/** 缴款人 */
Buyer?: string | null;
/** 开票日期 */
Date?: string | null;
/** 收款单位 */
SellerCompany?: string | null;
/** 复核人 */
Reviewer?: string | null;
/** 收款人 */
Seller?: string | null;
/** 票据名称 */
Title?: string | null;
/** 金额合计 */
Total?: string | null;
/** 金额合计中文大写 */
TotalCn?: string | null;
/** 冲红 */
RushRedStateCode?: string | null;
/** 冲红日期 */
RushRedDate?: string | null;
/** 冲红时间 */
RushRedTime?: string | null;
/** 冲红原因 */
RushRedReason?: string | null;
/** 项目明细 */
FinancialBillItems?: FinancialBillItem[] | null;
/** 项目清单 */
FinancialBillItemDetails?: FinancialBillItemDetails[] | null;
}
/** 财务票据查验返回结果-项目明细 */
declare interface FinancialBillItem {
/** 项目编号 */
ItemID?: string | null;
/** 项目名称 */
Name?: string | null;
/** 单位 */
Unit?: string | null;
/** 数量 */
Quantity?: string | null;
/** 规格标准 */
Standard?: string | null;
/** 金额 */
Total?: string | null;
/** 项目序号 */
SerialNumber?: string | null;
/** 备注 */
Remark?: string | null;
}
/** 财务票据查验返回结果-项目清单 */
declare interface FinancialBillItemDetails {
/** 项目编号 */
ItemID?: string | null;
/** 项目名称 */
Name?: string | null;
/** 单位 */
Unit?: string | null;
/** 数量 */
Quantity?: string | null;
/** 规格标准 */
Standard?: string | null;
/** 金额 */
Total?: string | null;
/** 项目序号 */
SerialNumber?: string | null;
/** 备注 */
Remark?: string | null;
}
/** 机票行程单识别结果 */
declare interface FlightInvoiceInfo {
/** 识别出的字段名称(关键字),支持以下字段:票价、合计金额、填开日期、有效身份证件号码、电子客票号码、验证码、旅客姓名、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李。 */
Name: string;
/** 识别出的字段名称对应的值,也就是字段 Name 对应的字符串结果。 */
Value: string;
/** 多个行程的字段所在行号,下标从0开始,非行字段或未能识别行号的该值返回-1。 */
Row: number;
}
/** 机票行程卡条目 */
declare interface FlightItem {
/** 出发航站楼 */
TerminalGetOn?: string;
/** 到达航站楼 */
TerminalGetOff?: string;
/** 承运人 */
Carrier?: string;
/** 航班号 */
FlightNumber?: string;
/** 座位等级 */
Seat?: string;
/** 乘机日期 */
DateGetOn?: string;
/** 乘机时间 */
TimeGetOn?: string;
/** 出发站 */
StationGetOn?: string;
/** 到达站 */
StationGetOff?: string;
/** 免费行李 */
Allow?: string;
/** 客票级别/客票类别 */
FareBasis?: string;
}
/** 机票详细信息元组 */
declare interface FlightItemInfo {
/** 出发站 */
TerminalGetOn?: string;
/** 到达站 */
TerminalGetOff?: string;
/** 承运人 */
Carrier?: string;
/** 航班号 */
FlightNumber?: string;
/** 座位等级 */
Seat?: string;
/** 乘机日期 */
DateGetOn?: string;
/** 乘机时间 */
TimeGetOn?: string;
/** 客票级别/客票类别 */
FareBasis?: string;
/** 免费行李额 */
Allow?: string;
/** 客票生效日期 */
DateStart?: string;
/** 有效截止日期 */
DateEnd?: string;
}
/** 通用卡证鉴伪告警信息 */
declare interface GeneralCardWarnInfo {
/** 是否存在该告警 */
IsWarn?: boolean;
/** 风险程度 */
RiskConfidence?: number;
/** 告警位置四点坐标 */
Polygon?: Polygon[];
}
/** 通用机打发票条目 */
declare interface GeneralMachineItem {
/** 项目名称 */
Name?: string;
/** 规格型号 */
Specification?: string;
/** 单位 */
Unit?: string;
/** 数量 */
Quantity?: string;
/** 单价 */
Price?: string;
/** 金额 */
Total?: string;
/** 税率 */
TaxRate?: string;
/** 税额 */
Tax?: string;
}
/** 通用告警详情 */
declare interface GeneralWarnInfo {
/** 是否存在该告警 */
IsWarn?: boolean;
/** 告警位置四点坐标 */
Polygon?: Polygon[];
/** 特殊判定,支持包括Finger:由手指导致的不完整,仅在不完整告警中返回 */
SpecificMatter?: string;
}
/** 组在图中的序号 */
declare interface GroupInfo {
/** 每一行的元素 */
Groups?: LineInfo[];
}
/** 身份证配置信息 */
declare interface IDCardConfig {
/** 复印件告警,默认为false */
CopyWarn?: boolean;
/** 边框和框内遮挡告警,默认为false */
BorderCheckWarn?: boolean;
/** 翻拍告警,默认为false */
ReshootWarn?: boolean;
/** 疑似存在PS痕迹告警,默认为false */
DetectPsWarn?: boolean;
/** 临时身份证告警,默认为false */
TempIdWarn?: boolean;
/** 身份证有效日期不合法告警,默认为false */
InvalidDateWarn?: boolean;
/** 是否开启反光检测,默认为false */
ReflectWarn?: boolean;
/** 是否开启头像剪切 */
CropPortrait?: boolean;
}
/** 身份证信息返回 */
declare interface IDCardInfo {
/** 姓名(人像面) */
Name?: ContentInfo;
/** 性别(人像面) */
Sex?: ContentInfo;
/** 民族(人像面) */
Nation?: ContentInfo;
/** 出生日期(人像面) */
Birth?: ContentInfo;
/** 地址(人像面) */
Address?: ContentInfo;
/** 公民身份号码(人像面) */
IdNum?: ContentInfo;
/** 发证机关(国徽面) */
Authority?: ContentInfo;
/** 证件有效期(国徽面) */
ValidDate?: ContentInfo;
/** WarnInfos,告警信息 */
WarnInfos?: CardWarnInfo;
/** IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回; */
CardImage?: ContentInfo;
/** Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回; */
PortraitImage?: ContentInfo;
}
/** 身份证ocr信息结果 */
declare interface IDCardInfoResult {
/** 警告代码 */
WarnCodes?: number[] | null;
/** 地址(人像面) */
Address?: string | null;
/** 发证机关(国徽面) */
Authority?: string | null;
/** 出生日期(人像面) */
Birth?: string | null;
/** 身份证号(人像面) */
IdNum?: string | null;
/** 名字(人像面) */
Name?: string | null;
/** 民族(人像面) */
Nation?: string | null;
/** 性别(人像面) */
Sex?: string | null;
/** 证件有效期(国徽面) */
ValidDate?: string | null;
/** 请求的id */
RequestId?: string | null;
/** 错误码 */
ErrorCode?: string | null;
/** 错误信息 */
ErrorMessage?: string | null;
/** 原图地址 */
ImageUrl?: string;
/** 身份证头像照片的地址(人像面) */
PortraitUrl?: string;
/** 整型错误码 */
IntErrorCode?: number;
}
/** IDCardResult */
declare interface IDCardResult {
/** 正面结果 */
Front?: IDCardInfoResult | null;
/** 反面结果 */
Back?: IDCardInfoResult | null;
}
/** 头像位置坐标 */
declare interface ImageCoordinates {
/** 头像左上角横坐标 */
X?: number | null;
/** 头像左上角纵坐标 */
Y?: number | null;
/** 头像框宽度 */
Width?: number | null;
/** 头像框高度 */
Height?: number | null;
}
/** 图片分辨率信息 */
declare interface ImageSize {
/** 图片的宽,单位像素 */
Width?: number | null;
/** 图片的高,单位像素 */
Height?: number | null;
}
/** 保险单据信息 */
declare interface InsuranceBillInfo {
/** 识别出的字段名称(关键字),支持以下字段:【病案首页】姓名、性别、出生日期、出院诊断、疾病编码、入院病情等。【费用清单】医疗参保人员类别、身份证号、入院方式、结账日期、项目、金额等。【结算单】名称、单价、数量、金额、医保内、医保外等。【医疗发票】姓名、性别、住院时间、收费项目、金额、合计等。 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。 */
Value?: string;
}
/** 票据检测结果 */
declare interface InvoiceDetectInfo {
/** 识别出的图片在混贴票据图片中的旋转角度。 */
Angle?: number;
/** 识别出的图片所属的票据类型。-1:未知类型0:出租车发票1:定额发票2:火车票3:增值税发票4:客运限额发票5:机票行程单6:酒店账单7:完税证明8:通用机打发票9:汽车票10:轮船票11:增值税发票(卷票 )12:购车发票13:过路过桥费发票14:购物小票 */
Type?: number;
/** 识别出的图片在混贴票据图片中的位置信息。与Angel结合可以得出原图位置,组成RotatedRect((X+0.5\*Width,Y+0.5\*Height), (Width, Height), Angle),详情可参考OpenCV文档。 */
Rect?: Rect;
/** 入参 ReturnImage 为 True 时返回 Base64 编码后的图片。 */
Image?: string | null;
}
/** 通用机打发票信息 */
declare interface InvoiceGeneralInfo {
/** 识别出的字段名称(关键字),支持以下字段识别(注:下划线表示一个字段):发票代码、发票号码、日期、合计金额(小写)、合计金额(大写)、购买方识别号、销售方识别号、校验码、购买方名称、销售方名称、时间、种类、发票消费类型、省、市、是否有公司印章、发票名称、购买方地址、电话、销售方地址、电话、购买方开户行及账号、销售方开户行及账号、经办人取票用户、经办人支付信息、经办人商户号、经办人订单号、货物或应税劳务、服务名称、数量、单价、税率、税额、金额、单位、规格型号、合计税额、合计金额、备注、收款人、复核、开票人、密码区、行业分类 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。 */
Value?: string;
/** 文本行在旋转纠正之后的图像中的像素坐标。 */
Rect?: Rect;
}
/** 混贴票据单张发票识别信息 */
declare interface InvoiceItem {
/** 识别结果。OK:表示识别成功;FailedOperation.UnsupportedInvoice:表示不支持识别;FailedOperation.UnKnowError:表示识别失败;其它错误码见各个票据接口的定义。 */
Code?: string;
/** 识别出的图片所属的票据类型。-1:未知类型0:出租车发票1:定额发票2:火车票3:增值税发票5:机票行程单8:通用机打发票9:汽车票10:轮船票11:增值税发票(卷票)12:购车发票13:过路过桥费发票15:非税发票16:全电发票17:医疗发票18:完税凭证19:海关缴款书20:银行回单 */
Type?: number;
/** 该发票在原图片中的四点坐标。 */
Polygon?: Polygon;
/** 识别出切图后各图片的旋转角度。 */
Angle?: number;
/** 识别到的内容。 */
SingleInvoiceInfos?: SingleInvoiceItem;
/** 发票处于识别图片或PDF文件中的页码,默认从1开始。 */
Page?: number;
/** 发票详细类型,详见票据识别(高级版)接口文档说明中 SubType 返回值说明 */
SubType?: string;
/** 发票类型描述,详见票据识别(高级版)接口文档说明中 TypeDescription 返回值说明 */
TypeDescription?: string;
/** 切割单图文件,Base64编码后的切图后的图片文件,开启 EnableCutImage 后进行返回 */
CutImage?: string;
/** 发票详细类型描述,详见上方 SubType 返回值说明 */
SubTypeDescription?: string;
/** 该发票中所有字段坐标信息。包括字段英文名称、字段值所在位置四点坐标、字段所属行号,具体内容请点击左侧链接。 */
ItemPolygon?: ItemPolygonInfo[];
/** 二维码数据。 */
QRCode?: string;
/** 印章信息 */
InvoiceSealInfo?: InvoiceSealInfo;
}
/** 印章信息 */
declare interface InvoiceSealInfo {
/** 是否有公司印章(0:没有,1:有) */
CompanySealMark?: string;
/** 是否有监制印章(0:没有,1:有) */
SupervisionSealMark?: string;
/** 公司印章信息 */
CompanySealMarkInfo?: string[];
/** 监制印章信息 */
SupervisionSealMarkInfo?: string[];
}
/** 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height) */
declare interface ItemCoord {
/** 左上角x */
X: number;
/** 左上角y */
Y: number;
/** 宽width */
Width: number;
/** 高height */
Height: number;
}
/** 智能结构化元素组 */
declare interface ItemInfo {
/** key信息组 */
Key?: Key | null;
/** Value信息组 */
Value?: Value | null;
}
/** 发票字段坐标信息。包括字段英文名称、字段值所在位置的四点坐标、字段所属行号,具体内容请点击左侧链接。 */
declare interface ItemPolygonInfo {
/** 发票的英文字段名称(如Title) */
Key?: string;
/** 字段值所在位置的四点坐标 */
Polygon?: Polygon;
/** 字段属于第几行,用于相同字段的排版,如发票明细表格项目,普通字段使用默认值为-1,表示无列排版。 */
Row?: number;
}
/** key信息组 */
declare interface Key {
/** 自动识别的字段名称 */
AutoName?: string;
/** 定义的字段名称(传key的名称) */
ConfigName?: string | null;
}
/** 全部车牌信息 */
declare interface LicensePlateInfo {
/** 识别出的车牌号码。 */
Number?: string;
/** 置信度,0 - 100 之间。 */
Confidence?: number;
/** 文本行在原图片中的像素坐标框。 */
Rect?: Rect;
/** 识别出的车牌颜色,目前支持颜色包括 “白”、“黑”、“蓝”、“绿“、“黄”、“黄绿”、“临牌”、“喷漆”、“其它”。 */
Color?: string;
}
/** 按行输出,行序号 */
declare interface LineInfo {
/** 每行的一个元素 */
Lines?: ItemInfo[];
}
/** 通用机打发票 */
declare interface MachinePrintedInvoice {
/** 发票名称 */
Title?: string;
/** 是否存在二维码(1:有,0:无) */
QRCodeMark?: number;
/** 发票代码 */
Code?: string;
/** 发票号码 */
Number?: string;
/** 开票日期 */
Date?: string;
/** 时间 */
Time?: string;
/** 校验码 */
CheckCode?: string;
/** 密码区 */
Ciphertext?: string;
/** 种类 */
Category?: string;
/** 税前金额 */
PretaxAmount?: string;
/** 价税合计(小写) */
Total?: string;
/** 价税合计(大写) */
TotalCn?: string;
/** 合计税额 */
Tax?: string;
/** 行业分类 */
IndustryClass?: string;
/** 销售方名称 */
Seller?: string;
/** 销售方纳税人识别号 */
SellerTaxID?: string;
/** 销售方地址电话 */
SellerAddrTel?: string;
/** 销售方银行账号 */
SellerBankAccount?: string;
/** 购买方名称 */
Buyer?: string;
/** 购买方纳税人识别号 */
BuyerTaxID?: string;
/** 购买方地址电话 */
BuyerAddrTel?: string;
/** 购买方银行账号 */
BuyerBankAccount?: string;
/** 发票消费类型 */
Kind?: string;
/** 省 */
Province?: string;
/** 市 */
City?: string;
/** 是否有公司印章(0:没有,1:有) */
CompanySealMark?: number;
/** 是否为浙江/广东通用机打发票(0:没有,1:有) */
ElectronicMark?: number;
/** 开票人 */
Issuer?: string;
/** 收款人 */
Receiptor?: string;
/** 复核人 */
Reviewer?: string;
/** 备注 */
Remark?: string;
/** 经办人支付信息 */
PaymentInfo?: string;
/** 经办人取票用户 */
TicketPickupUser?: string;
/** 经办人商户号 */
MerchantNumber?: string;
/** 经办人订单号 */
OrderNumber?: string;
/** 条目 */
GeneralMachineItems?: GeneralMachineItem[];
}
/** 港澳台来往内地通行证背面字段信息 */
declare interface MainlandTravelPermitBackInfos {
/** String 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证。 */
Type?: string | null;
/** 卡证背面的中文姓名 */
Name?: string | null;
/** 卡证背面的身份证号码 */
IDNumber?: string | null;
/** 历史通行证号码 */
HistoryNumber?: string | null;
}
/** 医疗票据信息 */
declare interface MedicalInvoice {
/** 发票名称 */
Title?: string;
/** 发票代码 */
Code?: string;
/** 发票号码 */
Number?: string;
/** 价税合计(小写) */
Total?: string;
/** 价税合计(大写) */
TotalCn?: string;
/** 开票日期 */
Date?: string;
/** 校验码 */
CheckCode?: string;
/** 发票属地 */
Place?: string;
/** 复核人 */
Reviewer?: string;
}
/** 医疗发票识别结果 */
declare interface MedicalInvoiceInfo {
/** 医疗发票识别结果条目 */
MedicalInvoiceItems: MedicalInvoiceItem[];
}
/** 医疗发票识别结果 */
declare interface MedicalInvoiceItem {
/** 识别出的字段名称分类name票据基本信息发票名称票据代码票据号码电子票据代码电子票据号码交款人统一社会信用代码校验码交款人开票日期收款单位复核人收款人业务流水号门诊号就诊日期医疗机构类型医保类型医保编号性别医保统筹基金支付其他支付个人账户支付个人现金支付个人自付个人自费病历号住院号住院科别住院时间预缴金额补缴金额退费金额发票属地发票类型总金额总金额大写总金额小写收费大项大项名称大项金额收费细项项目名称数量单位金额备注票据其他信息入院时间出院时间住院天数自付二自付一起付金额超封顶金额自费本次医保范围内金额累计医保内范围金额门诊大额支付残军补助支付年度门诊大额累计支付单位补充险[原公疗]支付社会保障卡号姓名交易流水号本次支付后个人账户余额基金支付现金支付复核自负结算方式医保统筹/公医记账其他个人支付金额欠费退休补充支付医院类型退款补收附加支付分类自负其它预交款个人缴费 */
Name: string;
/** 识别出的字段名称对应的值,也就是字段name对应的字符串结果 */
Content: string;
/** 识别出的文本行四点坐标 */
Vertex: Polygon | null;
/** 识别出的文本行在旋转纠正之后的图像中的像素坐标 */
Coord: Rect | null;
}
/** 混贴票据单张发票识别信息 */
declare interface MixedInvoiceItem {
/** 识别结果。OK:表示识别成功;FailedOperation.UnsupportedInvioce:表示不支持识别;FailedOperation.UnKnowError:表示识别失败;其它错误码见各个票据接口的定义。 */
Code?: string;
/** 识别出的图片所属的票据类型。-1:未知类型0:出租车发票1:定额发票2:火车票3:增值税发票5:机票行程单8:通用机打发票9:汽车票10:轮船票11:增值税发票(卷票)12:购车发票13:过路过桥费发票15:非税发票16:全电发票 */
Type?: number;
/** 识别出的图片在混贴票据图片中的位置信息。与Angel结合可以得出原图位置,组成RotatedRect((X+0.5\*Width,Y+0.5\*Height), (Width, Height), Angle),详情可参考OpenCV文档。 */
Rect?: Rect;
/** 识别出的图片在混贴票据图片中的旋转角度。 */
Angle?: number;
/** 识别到的内容。 */
SingleInvoiceInfos?: SingleInvoiceInfo[];
/** 发票处于识别图片或PDF文件中的页教,默认从1开始。 */
Page?: number;
}
/** 机动车销售统一发票 */
declare interface MotorVehicleSaleInvoice {
/** 发票名称 */
Title?: string;
/** 发票代码 */
Code?: string;
/** 发票号码 */
Number?: string;
/** 开票日期 */
Date?: string;
/** 税前金额 */
PretaxAmount?: string;
/** 价税合计(小写) */
Total?: string;
/** 价税合计(大写) */
TotalCn?: string;
/** 销售方名称 */
Seller?: string;
/** 销售方单位代码 */
SellerTaxID?: string;
/** 销售方电话 */
SellerTel?: string;
/** 销售方地址 */
SellerAddress?: string;
/** 销售方开户行 */
SellerBank?: string;
/** 销售方银行账号 */
SellerBankAccount?: string;
/** 购买方名称 */
Buyer?: string;
/** 购买方纳税人识别号 */
BuyerTaxID?: string;
/** 购买方身份证号码/组织机构代码 */
BuyerID?: string;
/** 主管税务机关 */
TaxAuthorities?: string;
/** 主管税务机关代码 */
TaxAuthoritiesCode?: string;
/** 车辆识别代码 */
VIN?: string;
/** 厂牌型号 */
VehicleModel?: string;
/** 发动机号码 */
VehicleEngineCode?: string;
/** 合格证号 */
CertificateNumber?: string;
/** 商检单号 */
InspectionNumber?: string;
/** 机器编号 */
MachineID?: string;
/** 车辆类型 */
VehicleType?: string;
/** 发票消费类型 */
Kind?: string;
/** 省 */
Province?: string;
/** 市 */
City?: string;
/** 合计税额 */
Tax?: string;
/** 税率 */
TaxRate?: string;
/** 是否有公司印章(0:没有,1:有) */
CompanySealMark?: number;
/** 吨位 */
Tonnage?: string;
/** 备注 */
Remark?: string;
/** 发票联次 */
FormType?: string;
/** 发票联名 */
FormName?: string;
/** 开票人 */
Issuer?: string;
/** 进口证明书号 */
TaxNum?: string;
/** 完税凭证号码 */
TaxPayNum?: string;
/** 税控码 */
TaxCode?: string;
/** 限乘人数 */
MaxPeopleNum?: string;
/** 产地 */
Origin?: string;
/** 机打发票代码 */
MachineCode?: string;
/** 机打发票号码 */
MachineNumber?: string;
/** 是否存在二维码(1:有,0:无) */
QRCodeMark?: number;
}
/** 非税收入 */
declare interface NonTaxIncomeBill {
/** 发票名称 */
Title?: string;
/** 发票号码 */
Number?: string;
/** 发票代码 */
Code?: string;
/** 校验码 */
CheckCode?: string;
/** 开票日期 */
Date?: string;
/** 价税合计(小写) */
Total?: string;
/** 价税合计(大写) */
TotalCn?: string;
/** 交款人名称 */
Buyer?: string;
/** 交款人纳税人识别号 */
BuyerTaxID?: string;
/** 收款人名称 */
Seller?: string;
/** 收款单位名称 */
SellerCompany?: string;
/** 备注 */
Remark?: string;
/** 币种 */
CurrencyCode?: string;
/** 复核人 */
Reviewer?: string;
/** 是否存在二维码(1:有,0:无) */
QRCodeMark?: number;
/** 其他信息 */
OtherInfo?: string;
/** 缴款码 */
PaymentCode?: string;
/** 执收单位编码 */
ReceiveUnitCode?: string;
/** 执收单位名称 */
Receiver?: string;
/** 经办人 */
Operator?: string;
/** 付款人账号 */
PayerAccount?: string;
/** 付款人开户银行 */
PayerBank?: string;
/** 收款人账号 */
ReceiverAccount?: string;
/** 收款人开户银行 */
ReceiverBank?: string;
/** 条目 */
NonTaxItems?: NonTaxItem[];
}
/** 非税收入条目 */
declare interface NonTaxItem {
/** 项目编码 */
ItemID?: string;
/** 项目名称 */
Name?: string;
/** 单位 */
Unit?: string;
/** 数量 */
Quantity?: string;
/** 标准 */
Standard?: string;
/** 金额 */
Total?: string;
}
/** ocr结果信息 */
declare interface OCRResult {
/** 身份证结果 */
IDCardResult?: IDCardResult | null;
}
/** 网约车行程单 */
declare interface OnlineTaxiItinerary {
/** 发票名称 */
Title?: string;
/** 识别出的字段名称(关键字) */
Content?: OtherInvoiceItem[];
}
/** 网约车行程单识别结果 */
declare interface OnlineTaxiItineraryInfo {
/** 识别出的字段名称(关键字),支持以下字段:发票代码、 机打代码、 发票号码、 发动机号码、 合格证号、 机打号码、 价税合计(小写)、 销货单位名称、 身份证号码/组织机构代码、 购买方名称、 销售方纳税人识别号、 购买方纳税人识别号、主管税务机关、 主管税务机关代码、 开票日期、 不含税价(小写)、 吨位、增值税税率或征收率、 车辆识别代号/车架号码、 增值税税额、 厂牌型号、 省、 市、 发票消费类型、 销售方电话、 销售方账号、 产地、 进口证明书号、 车辆类型、 机器编号、备注、开票人、限乘人数、商检单号、销售方地址、销售方开户银行、价税合计、发票类型。 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段name对应的字符串结果。 */
Value?: string;
/** 字段所在行,下标从0开始,非行字段或未能识别行号的返回-1 */
Row?: number;
}
/** 其他发票 */
declare interface OtherInvoice {
/** 发票名称 */
Title?: string;
/** 金额 */
Total?: string;
/** 列表 */
OtherInvoiceListItems?: OtherInvoiceItem[];
/** 表格 */
OtherInvoiceTableItems?: OtherInvoiceList[];
/** 发票日期 */
Date?: string;
}
/** OtherInvoiceItem */
declare interface OtherInvoiceItem {
/** 票面key值 */
Name?: string;
/** 票面value值 */
Value?: string;
}
/** 其他票Table */
declare interface OtherInvoiceList {
/** 列表 */
OtherInvoiceItemList?: OtherInvoiceItem[];
}
/** 海外发票 */
declare interface OverseasInvoice {
/** 发票名称 */
Title?: string;
/** 识别出的字段名称(关键字) */
Content?: OtherInvoiceItem[];
}
/** 通行费发票信息 */
declare interface PassInvoiceInfo {
/** 通行费车牌号 */
NumberPlate: string;
/** 通行费类型 */
Type: string;
/** 通行日期起 */
PassDateBegin: string;
/** 通行日期止 */
PassDateEnd: string;
/** 税收分类编码 */
TaxClassifyCode: string;
}
/** 信息区证件内容 */
declare interface PassportRecognizeInfos {
/** 证件类型(护照信息页识别结果) */
Type?: string;
/** 发行国家(护照信息页识别结果) */
IssuingCountry?: string;
/** 护照号码(护照信息页识别结果) */
PassportID?: string;
/** 姓(护照信息页识别结果) */
Surname?: string;
/** 名(护照信息页识别结果) */
GivenName?: string;
/** 姓名(护照信息页识别结果) */
Name?: string;
/** 国籍信息(护照信息页识别结果) */
Nationality?: string;
/** 出生日期(护照信息页识别结果) */
DateOfBirth?: string;
/** 性别(护照信息页识别结果) */
Sex?: string;
/** 发行日期(护照信息页识别结果) */
DateOfIssuance?: string;
/** 截止日期(护照信息页识别结果) */
DateOfExpiration?: string;
/** 持证人签名(护照信息页识别结果)仅中国大陆护照支持返回此字段,港澳台及境外护照不支持 */
Signature?: string;
/** 签发地点(护照信息页识别结果)仅中国大陆护照支持返回此字段,港澳台及境外护照不支持 */
IssuePlace?: string;
/** 签发机关(护照信息页识别结果)仅中国大陆护照支持返回此字段,港澳台及境外护照不支持 */
IssuingAuthority?: string;
}
/** 外国人永久居留证信息返回 */
declare interface PermanentResidencePermitInfo {
/** 姓名(人像面) */
Name?: ContentInfo;
/** 性别(人像面) */
Sex?: ContentInfo;
/** 民族(人像面) */
Nation?: ContentInfo;
/** 出生日期(人像面) */
Birth?: ContentInfo;
/** 地址(人像面) */
Address?: ContentInfo;
/** 公民身份号码(人像面) */
IdNum?: ContentInfo;
/** 发证机关(国徽面) */
Authority?: ContentInfo;
/** 证件有效期(国徽面) */
ValidDate?: ContentInfo;
/** WarnInfos,告警信息 */
WarnInfos?: CardWarnInfo;
/** IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回; */
CardImage?: ContentInfo;
/** Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回; */
PortraitImage?: ContentInfo;
/** 持证人持有号码,外国人永久居留证 返回该字段 */
HolderNum?: ContentInfo;
/** 国籍,外国人永久居留证 返回该字段 */
Nationality?: ContentInfo;
}
/** 文本的坐标,以四个顶点坐标表示注意:此字段可能返回 null,表示取不到有效值 */
declare interface Polygon {
/** 左上顶点坐标 */
LeftTop?: Coord;
/** 右上顶点坐标 */
RightTop?: Coord;
/** 右下顶点坐标 */
RightBottom?: Coord;
/** 左下顶点坐标 */
LeftBottom?: Coord;
}
/** 头像照片和坐标 */
declare interface PortraitImageInfo {
/** 头像 */
PortraitImage?: string | null;
/** 头像坐标 */
ImageCoordinates?: ImageCoordinates | null;
}
/** 图片大小 */
declare interface QrcodeImgSize {
/** 宽 */
Wide?: number;
/** 高 */
High?: number;
}
/** 二维码/条形码坐标信息 */
declare interface QrcodePositionObj {
/** 左上顶点坐标(如果是条形码,X和Y都为-1) */
LeftTop: Coord;
/** 右上顶点坐标(如果是条形码,X和Y都为-1) */
RightTop: Coord;
/** 右下顶点坐标(如果是条形码,X和Y都为-1) */
RightBottom: Coord;
/** 左下顶点坐标(如果是条形码,X和Y都为-1) */
LeftBottom: Coord;
}
/** 二维码/条形码识别结果信息 */
declare interface QrcodeResultsInfo {
/** 类型包括二维码:QR_CODE一维码:EAN-13、EAN-8、EAN-2、UPC-A、UPC-E、CODE-39、CODE-93、CODE-128 PDF:PDF_417DataMatrix:DATA_MATRIX小程序码:WX_CODE */
TypeName?: string;
/** 二维码/条形码包含的地址 */
Url?: string;
/** 二维码/条形码坐标 */
Position?: QrcodePositionObj;
}
/** 数学试题识别结构化对象 */
declare interface QuestionBlockObj {
/** 数学试题识别结构化信息数组 */
QuestionArr: QuestionObj[];
/** 题目主体区域检测框在图片中的像素坐标 */
QuestionBboxCoord: Rect;
}
/** 试题识别结果 */
declare interface QuestionInfo {
/** 旋转角度 */
Angle?: number;
/** 预处理后图片高度 */
Height?: number;
/** 预处理后图片宽度 */
Width?: number;
/** 文档元素 */
ResultList?: ResultList[] | null;
/** 输入图片高度 */
OrgHeight?: number;
/** 输入图片宽度 */
OrgWidth?: number;
/** 预处理后的图片base64编码 */
ImageBase64?: string;
}
/** 试题识别结构化信息 */
declare interface QuestionObj {
/** 题号 */
QuestionTextNo: string;
/** 题型:1: "选择题"2: "填空题"3: "解答题" */
QuestionTextType: number;
/** 题干 */
QuestionText: string;
/** 选择题选项,包含1个或多个option */
QuestionOptions: string;
/** 所有子题的question属性 */
QuestionSubquestion: string;
/** 示意图检测框在的图片中的像素坐标 */
QuestionImageCoords: Rect[];
}
/** 定额发票 */
declare interface QuotaInvoice {
/** 发票名称 */
Title?: string;
/** 发票代码 */
Code?: string;
/** 发票号码 */
Number?: string;
/** 价税合计(小写) */
Total?: string;
/** 价税合计(大写) */
TotalCn?: string;
/** 发票消费类型 */
Kind?: string;
/** 省 */
Province?: string;
/** 市 */
City?: string;
/** 是否存在二维码(1:有,0:无) */
QRCodeMark?: number;
/** 是否有公司印章(0:没有,1:有) */
CompanySealMark?: number;
}
/** 铁路电子客票信息 */
declare interface RailwayTicketInfo {
/** 电子发票类型 */
TypeOfVoucher?: string;
/** 电子客票号 */
ElectronicTicketNum?: string;
/** 开票日期 */
DateOfIssue?: string;
/** 售票或退票类型 */
TypeOfBusiness?: string;
/** 始发站 */
DepartureStation?: string;
/** 始发站英文 */
PhonicsOfDepartureStation?: string;
/** 到达站 */
DestinationStation?: string;
/** 到达站英文 */
PhonicsOfDestinationStation?: string;
/** 火车号 */
TrainNumber?: string;
/** 火车出发日期 */
TravelDate?: string;
/** 始发时间 */
DepartureTime?: string;
/** 空调特点 */
AirConditioningCharacteristics?: string;
/** 座位类型 */
SeatLevel?: string;
/** 火车第几车 */
Carriage?: string;
/** 座位号 */
Seat?: string;
/** 票价 */
Fare?: string;
/** 发票号码 */
ElectronicInvoiceRailwayETicketNumber?: string;
/** 身份证号 */
IdNumber?: string;
/** 姓名 */
Name?: string;
/** 金额 */
TotalAmountExcludingTax?: string;
/** 税率 */
TaxRate?: string;
/** 税额 */
TaxAmount?: string;
/** 购买方名称 */
NameOfPurchaser?: string;
/** 统一社会信用代码 */
UnifiedSocialCreditCodeOfPurchaser?: string;
/** 原发票号码 */
NumberOfOriginalInvoice?: string;
}
/** 矩形坐标 */
declare interface Rect {
/** 左上角x */
X?: number;
/** 左上角y */
Y?: number;
/** 宽度 */
Width?: number;
/** 高度 */
Height?: number;
}
/** 反光点覆盖区域详情结果 */
declare interface ReflectDetailInfo {
/** NationalEmblem 国徽位置Portrait 人像照片位置RecognitionField 识别字段位置Others 其他位置 */
Position?: string;
}
/** 请求 id 信息 */
declare interface RequestIdInfo {
/** 请求 api 的 requestid */
ApiRequestId?: string;
/** 请求 api 的错误码 */
ApiErrorCode?: string;
/** 告警码 */
WarnCodes?: number[];
}
/** 港澳台居住证信息返回 */
declare interface ResidencePermitInfo {
/** 姓名(人像面) */
Name?: ContentInfo;
/** 性别(人像面) */
Sex?: ContentInfo;
/** 民族(人像面) */
Nation?: ContentInfo;
/** 出生日期(人像面) */
Birth?: ContentInfo;
/** 地址(人像面) */
Address?: ContentInfo;
/** 公民身份号码(人像面) */
IdNum?: ContentInfo;
/** 发证机关(国徽面) */
Authority?: ContentInfo;
/** 证件有效期(国徽面) */
ValidDate?: ContentInfo;
/** WarnInfos,告警信息 */
WarnInfos?: CardWarnInfo;
/** IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回; */
CardImage?: ContentInfo;
/** Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回; */
PortraitImage?: ContentInfo;
/** 通行证号码,港澳台居住证国徽面 返回该字段 */
PassNum?: ContentInfo;
/** 签发次数,港澳台居住证国徽面 返回该字段 */
IssueNum?: ContentInfo;
}
/** 结果列表 */
declare interface ResultList {
/** 题干 */
Question?: Element[] | null;
/** 选项 */
Option?: Element[] | null;
/** 插图 */
Figure?: Element[] | null;
/** 表格 */
Table?: Element[] | null;
/** 答案 */
Answer?: Element[] | null;
/** 解析 */
Parse?: Element[];
/** 整题的坐标 */
Coord?: Polygon[] | null;
}
/** 销货清单 */
declare interface SaleInventory {
/** 发票名称 */
Title?: string;
/** 识别出的字段名称(关键字) */
Content?: OtherInvoiceItem[];
}
/** 印章信息 */
declare interface SealInfo {
/** 印章主体内容 */
SealBody: string;
/** 印章坐标 */
Location: Rect;
/** 印章其它文本内容 */
OtherTexts: string[];
/** 印章类型,表示为:圆形印章:0椭圆形印章:1方形印章:2菱形印章:3三角形印章:4 */
SealShape: string;
}
/** 轮船票字段信息 */
declare interface ShipInvoiceInfo {
/** 识别出的字段名称(关键字),支持以下字段:发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。 */
Value?: string;
/** 文本行在旋转纠正之后的图像中的像素坐标。 */
Rect?: Rect;
}
/** 轮船票 */
declare interface ShippingInvoice {
/** 发票名称 */
Title?: string;
/** 是否存在二维码(1:有,0:无) */
QRCodeMark?: number;
/** 发票代码 */
Code?: string;
/** 发票号码 */
Number?: string;
/** 姓名 */
UserName?: string;
/** 日期 */
Date?: string;
/** 时间 */
Time?: string;
/** 出发车站 */
StationGetOn?: string;
/** 到达车站 */
StationGetOff?: string;
/** 票价 */
Total?: string;
/** 发票消费类型 */
Kind?: string;
/** 省 */
Province?: string;
/** 市 */
City?: string;
/** 币种 */
CurrencyCode?: string;
}
/** 购物小票 */
declare interface ShoppingReceipt {
/** 发票名称 */
Title?: string;
/** 识别出的字段名称(关键字) */
Content?: OtherInvoiceItem[];
}
/** 混贴票据中单张发票的内容 */
declare interface SingleInvoiceInfo {
/** 识别出的字段名称 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段name对应的字符串结果。 */
Value?: string;
/** 字段属于第几行,用于相同字段的排版,如发票明细表格项目,普通字段使用默认值为-1,表示无列排版。 */
Row?: number;
}
/** 混贴票据中单张发票的内容 */
declare interface SingleInvoiceItem {
/** 增值税专用发票 */
VatSpecialInvoice?: VatInvoiceInfo | null;
/** 增值税普通发票 */
VatCommonInvoice?: VatInvoiceInfo | null;
/** 增值税电子普通发票 */
VatElectronicCommonInvoice?: VatInvoiceInfo | null;
/** 增值税电子专用发票 */
VatElectronicSpecialInvoice?: VatInvoiceInfo | null;
/** 区块链电子发票 */
VatElectronicInvoiceBlockchain?: VatInvoiceInfo | null;
/** 增值税电子普通发票(通行费) */
VatElectronicInvoiceToll?: VatInvoiceInfo | null;
/** 电子发票(专用发票) */
VatElectronicSpecialInvoiceFull?: VatElectronicInfo | null;
/** 电子发票(普通发票) */
VatElectronicInvoiceFull?: VatElectronicInfo | null;
/** 通用机打发票 */
MachinePrintedInvoice?: MachinePrintedInvoice | null;
/** 汽车票 */
BusInvoice?: BusInvoice | null;
/** 轮船票 */
ShippingInvoice?: ShippingInvoice | null;
/** 过路过桥费发票 */
TollInvoice?: TollInvoice | null;
/** 其他发票 */
OtherInvoice?: OtherInvoice | null;
/** 机动车销售统一发票 */
MotorVehicleSaleInvoice?: MotorVehicleSaleInvoice | null;
/** 二手车销售统一发票 */
UsedCarPurchaseInvoice?: UsedCarPurchaseInvoice | null;
/** 增值税普通发票(卷票) */
VatInvoiceRoll?: VatInvoiceRoll | null;
/** 出租车发票 */
TaxiTicket?: TaxiTicket | null;
/** 定额发票 */
QuotaInvoice?: QuotaInvoice | null;
/** 机票行程单 */
AirTransport?: AirTransport | null;
/** 非税收入通用票据 */
NonTaxIncomeGeneralBill?: NonTaxIncomeBill | null;
/** 非税收入一般缴款书(电子) */
NonTaxIncomeElectronicBill?: NonTaxIncomeBill | null;
/** 火车票 */
TrainTicket?: TrainTicket | null;
/** 医疗门诊收费票据(电子) */
MedicalOutpatientInvoice?: MedicalInvoice | null;
/** 医疗住院收费票据(电子) */
MedicalHospitalizedInvoice?: MedicalInvoice | null;
/** 增值税销货清单 */
VatSalesList?: VatInvoiceInfo | null;
/** 电子发票(火车票) */
ElectronicTrainTicketFull?: ElectronicTrainTicketFull | null;
/** 电子发票(机票行程单) */
ElectronicFlightTicketFull?: ElectronicFlightTicketFull | null;
/** 完税凭证 */
TaxPayment?: TaxPayment | null;
/** 海关缴款 */
CustomsPaymentReceipt?: CustomsPaymentReceipt | null;
/** 银行回单 */
BankSlip?: BankSlip | null;
/** 网约车行程单 */
OnlineTaxiItinerary?: OnlineTaxiItinerary | null;
/** 海关进/出口货物报关单 */
CustomsDeclaration?: CustomsDeclaration | null;
/** 海外发票 */
OverseasInvoice?: OverseasInvoice | null;
/** 购物小票 */
ShoppingReceipt?: ShoppingReceipt | null;
/** 销货清单 */
SaleInventory?: SaleInventory | null;
/** 机动车销售统一发票(电子) */
MotorVehicleSaleInvoiceElectronic?: MotorVehicleSaleInvoice | null;
/** 二手车销售统一发票(电子) */
UsedCarPurchaseInvoiceElectronic?: UsedCarPurchaseInvoice | null;
}
/** 门头照识别结果 */
declare interface StoreInfo {
/** 识别出的字段名称(关键字),如商店名称 */
Name?: string;
/** 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。 */
Value?: string;
/** 文本行在旋转纠正之后的图像中的像素坐标 */
Rect?: Rect;
}
/** 智能结构化识别 */
declare interface StructuralItem {
/** 识别出的字段名称(关键字)。 */
Name: string;
/** 识别出的字段名称对应的值。 */
Value: string;
/** 置信度 0 ~100。 */
Confidence: number;
/** 文本行在旋转纠正之后的图像中的像素坐标。 */
ItemCoord: ItemCoord;
/** 字段所在行号,下标从0开始,非行字段或未能识别行号的该值返回-1。 */
Row: number;
}
/** 单元格数据 */
declare interface TableCell {
/** 单元格左上角的列索引 */
ColTl?: number;
/** 单元格左上角的行索引 */
RowTl?: number;
/** 单元格右下角的列索引 */
ColBr?: number;
/** 单元格右下角的行索引 */
RowBr?: number;
/** 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开 */
Text?: string;
/** 单元格类型 */
Type?: string;
/** 单元格置信度 */
Confidence?: number;
/** 单元格在图像中的四点坐标 */
Polygon?: Coord[];
/** 此字段为扩展字段 */
AdvancedInfo?: string | null;
/** 单元格文本属性 */
Contents?: CellContent[];
}
/** 单元格数据 */
declare interface TableCellInfo {
/** 单元格左上角的列索引 */
ColTl: number;
/** 单元格左上角的行索引 */
RowTl: number;
/** 单元格右下角的列索引 */
ColBr: number;
/** 单元格右下角的行索引 */
RowBr: number;
/** 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开 */
Text: string;
/** 单元格类型 */
Type: string;
/** 单元格置信度 */
Confidence: number;
/** 单元格在图像中的四点坐标 */
Polygon: Coord[];
}
/** 表格内容检测 */
declare interface TableDetectInfo {
/** 单元格内容 */
Cells?: TableCell[] | null;
/** 表格标题 */
Titles?: TableTitle[] | null;
/** 图像中的文本块类型,0 为非表格文本,1 为有线表格,2 为无线表格(接口暂不支持日文无线表格识别,若传入日文无线表格,返回0) */
Type?: number | null;
/** 表格主体四个顶点坐标(依次为左上角,右上角,右下角,左下角) */
TableCoordPoint?: Coord[] | null;
}
/** 表格内容检测 */
declare interface TableInfo {
/** 单元格内容 */
Cells?: TableCellInfo[] | null;
/** 图像中的文本块类型:0为非表格文本、1为有线表格、2为无线表格,有线表格:在表格内部,有横线/竖线纵跨整个表格的宽/高;无线表格:在表格内部,无横线/竖线纵跨整个表格的宽/高。 */
Type?: number | null;
/** 表格主体四个顶点坐标(依次为左上角,右上角,右下角,左下角) */
TableCoordPoint?: Coord[] | null;
}
/** 表格标题 */
declare interface TableTitle {
/** 表格名称 */
Text?: string | null;
}
/** 完税凭证 */
declare interface TaxPayment {
/** 发票名称 */
Title?: string;
/** 识别出的字段名称(关键字),支持以下字段:税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。示例值:纳税人识别号 */
Content?: OtherInvoiceItem[];
/** 表格。 */
TableItems?: OtherInvoiceList[];
}
/** 出租车发票 */
declare interface TaxiTicket {
/** 发票名称 */
Title?: string;
/** 是否存在二维码(1:有,0:无) */
QRCodeMark?: number;
/** 发票代码 */
Code?: string;
/** 发票号码 */
Number?: string;
/** 开票日期 */
Date?: string;
/** 上车时间 */
TimeGetOn?: string;
/** 下车时间 */
TimeGetOff?: string;
/** 单价 */
Price?: string;
/** 里程 */
Mileage?: string;
/** 总金额 */
Total?: string;
/** 发票所在地 */
Place?: string;
/** 省 */
Province?: string;
/** 市 */
City?: string;
/** 发票消费类型 */
Kind?: string;
/** 车牌号 */
LicensePlate?: string;
/** 燃油附加费 */
FuelFee?: string;
/** 预约叫车服务费 */
BookingCallFee?: string;
/** 是否有公司印章(0:没有,1:有) */
CompanySealMark?: number;
}
/** 临时身份证信息返回 */
declare interface TemporaryIDCardInfo {
/** 姓名(人像面) */
Name?: ContentInfo;
/** 性别(人像面) */
Sex?: ContentInfo;
/** 民族(人像面) */
Nation?: ContentInfo;
/** 出生日期(人像面) */
Birth?: ContentInfo;
/** 地址(人像面) */
Address?: ContentInfo;
/** 公民身份号码(人像面) */
IdNum?: ContentInfo;
/** 发证机关(国徽面) */
Authority?: ContentInfo;
/** 证件有效期(国徽面) */
ValidDate?: ContentInfo;
/** WarnInfos,告警信息 */
WarnInfos?: CardWarnInfo;
/** IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回; */
CardImage?: ContentInfo;
/** Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回; */
PortraitImage?: ContentInfo;
}
/** 算式识别结果 */
declare interface TextArithmetic {
/** 识别出的文本行内容 */
DetectedText?: string;
/** 算式运算结果,true-正确 false-错误或非法参数 */
Result?: boolean;
/** 保留字段,暂不支持 */
Confidence?: number;
/** 原图文本行坐标,以四个顶点坐标表示(保留字段,暂不支持) */
Polygon?: Coord[] | null;
/** 保留字段,暂不支持 */
AdvancedInfo?: string;
/** 文本行旋转纠正之后在图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height) */
ItemCoord?: ItemCoord;
/** 算式题型编号:‘1’: 加减乘除四则‘2’: 加减乘除已知结果求运算因子‘3’: 判断大小‘4’: 约等于估算‘5’: 带余数除法‘6’: 分数四则运算‘7’: 单位换算‘8’: 竖式加减法‘9’: 竖式乘除法‘10’: 脱式计算‘11’: 解方程 */
ExpressionType?: string;
/** 错题推荐答案,算式运算结果正确返回为"",算式运算结果错误返回推荐答案 (注:暂不支持多个关系运算符(如`1<10<7`)、无关系运算符(如frac(1,2)+frac(2,3))、单位换算(如1元=100角)错题的推荐答案返回) */
Answer?: string;
}
/** 文字识别结果 */
declare interface TextDetection {
/** 识别出的文本行内容 */
DetectedText: string;
/** 置信度 0 ~100 */
Confidence: number;
/** 文本行坐标,以四个顶点坐标表示 */
Polygon: Coord[] | null;
/** 此字段为扩展字段。GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。 */
AdvancedInfo: string;
/** 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height) */
ItemPolygon: ItemCoord;
/** 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence), 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR */
Words: DetectedWords[];
/** 单字在原图中的四点坐标, 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR */
WordCoordPoint: DetectedWordCoordPoint[];
}
/** 英文识别结果 */
declare interface TextDetectionEn {
/** 识别出的文本行内容。 */
DetectedText?: string;
/** 置信度 0 ~100。 */
Confidence?: number;
/** 文本行在原图中的四点坐标。 */
Polygon?: Coord[] | null;
/** 此字段为扩展字段。目前EnglishOCR接口返回内容为空。 */
AdvancedInfo?: string;
/** 英文单词在原图中的四点坐标。 */
WordCoordPoint?: WordCoordPoint[];
/** 候选字符集(包含候选字Character以及置信度Confidence)。 */
CandWord?: CandWord[];
/** 识别出来的单词信息(包括单词Character和单词置信度confidence) */
Words?: Words[];
}
/** 数学试题识别结果 */
declare interface TextEduPaper {
/** 识别出的字段名称(关键字) */
Item?: string;
/** 识别出的字段名称对应的值,也就是字段Item对应的字符串结果 */
DetectedText?: string;
/** 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height) */
Itemcoord?: ItemCoord;
}
/** 数学公式识别结果 */
declare interface TextFormula {
/** 识别出的文本行内容 */
DetectedText?: string;
}
/** 公式识别结果 */
declare interface TextFormulaInfo {
/** 识别出的文本行内容 */
DetectedText?: string;
/** 识别出的文本行内容坐标 */
Coord?: Polygon;
}
/** 文字识别结果 */
declare interface TextGeneralHandwriting {
/** 识别出的文本行内容 */
DetectedText?: string;
/** 置信度 0 - 100 */
Confidence?: number;
/** 文本行坐标,以四个顶点坐标表示 */
Polygon?: Coord[];
/** 此字段为扩展字段。能返回文本行的段落信息,例如:{\"Parag\":{\"ParagNo\":2}},其中ParagNo为段落行,从1开始。 */
AdvancedInfo?: string;
/** 字的坐标数组,以四个顶点坐标表示 */
WordPolygon?: Polygon[] | null;
}
/** 表格识别结果 */
declare interface TextTable {
/** 单元格左上角的列索引 */
ColTl?: number;
/** 单元格左上角的行索引 */
RowTl?: number;
/** 单元格右下角的列索引 */
ColBr?: number;
/** 单元格右下角的行索引 */
RowBr?: number;
/** 单元格文字 */
Text?: string;
/** 单元格类型,包含body(表格主体)、header(表头)、footer(表尾)三种 */
Type?: string;
/** 置信度 0 ~100 */
Confidence?: number;
/** 文本行坐标,以四个顶点坐标表示 */
Polygon?: Coord[];
/** 此字段为扩展字段 */
AdvancedInfo?: string;
}
/** 拖拉机行驶证副页正面的识别结果 */
declare interface TextTractorVehicleBack {
/** 号牌号码 */
PlateNo?: string | null;
/** 准乘人数 */
AllowNum?: string | null;
/** 联合收割机质量 */
CombineHarvesterQuality?: string | null;
/** 拖拉机最小使用质量 */
TractorMinUsageWeight?: string | null;
/** 拖拉机最大允许载质量 */
TractorMaxAllowLoadCapacity?: string | null;
/** 外廓尺寸 */
ExternalSize?: string | null;
/** 检验记录 */
Record?: string | null;
/** 类型 */
VehicleType?: string | null;
/** 住址 */
Address?: string | null;
}
/** 增值税发票识别结果 */
declare interface TextVatInvoice {
/** 识别出的字段名称(关键字)。支持以下字段的识别:发票代码、 发票号码、 打印发票代码、 打印发票号码、 开票日期、 购买方识别号、 小写金额、 价税合计(大写)、 销售方识别号、 校验码、 购买方名称、 销售方名称、 税额、 复核、 联次名称、 备注、 联次、 密码区、 开票人、 收款人、