tencentcloud-sdk-nodejs-ocr 4.0.592 → 4.0.594

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, BankCardOCRRequest, VehicleRegCertOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizePhilippinesTinIDOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RecognizePhilippinesVoteIDOCRResponse, InsuranceBillOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, RecognizePhilippinesSssIDOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, OrgCodeCertOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, RecognizePhilippinesSssIDOCRResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, EduPaperOCRRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VerifyBasicBizLicenseResponse, TextDetectRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, VerifyEnterpriseFourFactorsRequest, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, RideHailingDriverLicenseOCRRequest, QueryBarCodeResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VinOCRResponse, GetTaskStateResponse, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, QueryBarCodeRequest, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, ImageEnhancementRequest, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, VatInvoiceOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizePhilippinesTinIDOCRRequest, RecognizeTableOCRRequest, EstateCertOCRRequest, VerifyBasicBizLicenseRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, VerifyEnterpriseFourFactorsResponse, GeneralFastOCRResponse } from "./ocr_models";
2
+ import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, BankCardOCRRequest, VehicleRegCertOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizePhilippinesTinIDOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RecognizePhilippinesVoteIDOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, RecognizePhilippinesSssIDOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, OrgCodeCertOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, RecognizePhilippinesSssIDOCRResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, EduPaperOCRRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VerifyBasicBizLicenseResponse, TextDetectRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, RideHailingDriverLicenseOCRRequest, QueryBarCodeResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, VerifyEnterpriseFourFactorsRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VinOCRResponse, GetTaskStateResponse, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, QueryBarCodeRequest, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, ImageEnhancementRequest, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, VatInvoiceOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizePhilippinesTinIDOCRRequest, RecognizeTableOCRRequest, EstateCertOCRRequest, VerifyBasicBizLicenseRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, VerifyEnterpriseFourFactorsResponse, GeneralFastOCRResponse } from "./ocr_models";
3
3
  /**
4
4
  * ocr client
5
5
  * @class
@@ -723,6 +723,113 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
723
723
  * 菲律宾TinID识别
724
724
  */
725
725
  RecognizePhilippinesTinIDOCR(req: RecognizePhilippinesTinIDOCRRequest, cb?: (error: string, rep: RecognizePhilippinesTinIDOCRResponse) => void): Promise<RecognizePhilippinesTinIDOCRResponse>;
726
+ /**
727
+ * 本接口支持 PDF多页、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持非上述类型的其他发票的智能识别。
728
+
729
+ 默认接口请求频率限制:5次/秒。
730
+
731
+
732
+ 支持的细项目子票种SubType、子票种中文TypeDescription 返回说明如下列表:
733
+ <table style="width:715px">
734
+ <thead>
735
+ <tr>
736
+ <th style="width:200px">SubType 子票种英文</th>
737
+ <th >TypeDescription子票种中文</th>
738
+ </tr>
739
+ </thead>
740
+ <tbody>
741
+ <tr>
742
+ <td> VatSpecialInvoice</td>
743
+ <td> 增值税专用发票 </td>
744
+ </tr>
745
+ <tr>
746
+ <td> VatCommonInvoice</td>
747
+ <td> 增值税普通发票 </td>
748
+ </tr>
749
+ <tr>
750
+ <td> VatElectronicCommonInvoice </td>
751
+ <td> 增值税电子普通发票 </td>
752
+ </tr>
753
+ <tr>
754
+ <td> VatElectronicSpecialInvoice </td>
755
+ <td> 增值税电子专用发票 </td>
756
+ </tr>
757
+ <tr>
758
+ <td> VatElectronicInvoiceBlockchain</td>
759
+ <td> 区块链电子发票 </td>
760
+ </tr>
761
+ <tr>
762
+ <td> VatElectronicSpecialInvoiceFull</td>
763
+ <td> 增值税电子普通发票(通行费)</td>
764
+ </tr>
765
+ <tr>
766
+ <td> VatElectronicSpecialInvoiceFull</td>
767
+ <td> 电子发票(专用发票)</td>
768
+ </tr>
769
+ <tr>
770
+ <td> VatElectronicSpecialInvoiceFull</td>
771
+ <td> 电子发票(普通发票) </td>
772
+ </tr>
773
+ <tr>
774
+ <td> MotorVehicleSaleInvoice </td>
775
+ <td> 机动车销售统一发票 </td>
776
+ </tr>
777
+ <tr>
778
+ <td> UsedCarPurchaseInvoice </td>
779
+ <td> 二手车销售统一发票 </td>
780
+ </tr>
781
+ <tr>
782
+ <td> VatInvoiceRoll </td>
783
+ <td> 增值税普通发票(卷票) </td>
784
+ </tr>
785
+ <tr>
786
+ <td> TaxiTicket </td>
787
+ <td> 出租车发票 </td>
788
+ </tr>
789
+ <tr>
790
+ <td> QuotaInvoice </td>
791
+ <td> 定额发票 </td>
792
+ </tr>
793
+ <tr>
794
+ <td> TrainTicket </td>
795
+ <td> 火车票 </td>
796
+ </tr>
797
+ <tr>
798
+ <td> AirTransport </td>
799
+ <td> 机票行程单 </td>
800
+ </tr>
801
+ <tr>
802
+ <td> MachinePrintedInvoice </td>
803
+ <td> 通用机打发票 </td>
804
+ </tr>
805
+ <tr>
806
+ <td> BusInvoice </td>
807
+ <td> 汽车票 </td>
808
+ </tr>
809
+ <tr>
810
+ <td> ShippingInvoice </td>
811
+ <td> 轮船票 </td>
812
+ </tr>
813
+ <tr>
814
+ <td> NonTaxIncomeGeneralBill </td>
815
+ <td> 非税收入通用票据 </td>
816
+ </tr>
817
+ <tr>
818
+ <td> NonTaxIncomeElectronicBill </td>
819
+ <td> 非税收入一般缴款书(电子) </td>
820
+ </tr>
821
+ <tr>
822
+ <td> TollInvoice </td>
823
+ <td> 过路过桥费发票 </td>
824
+ </tr>
825
+ <tr>
826
+ <td> OtherInvoice </td>
827
+ <td> 其他发票 </td>
828
+ </tr>
829
+ </tbody>
830
+ </table>
831
+ */
832
+ RecognizeGeneralInvoice(req: RecognizeGeneralInvoiceRequest, cb?: (error: string, rep: RecognizeGeneralInvoiceResponse) => void): Promise<RecognizeGeneralInvoiceResponse>;
726
833
  /**
727
834
  * 本接口支持行驶证主页和副页所有字段的自动定位与识别。
728
835
 
@@ -908,6 +908,115 @@ class Client extends TencentCloudCommon.AbstractClient {
908
908
  async RecognizePhilippinesTinIDOCR(req, cb) {
909
909
  return this.request("RecognizePhilippinesTinIDOCR", req, cb);
910
910
  }
911
+ /**
912
+ * 本接口支持 PDF多页、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持非上述类型的其他发票的智能识别。
913
+
914
+ 默认接口请求频率限制:5次/秒。
915
+
916
+
917
+ 支持的细项目子票种SubType、子票种中文TypeDescription 返回说明如下列表:
918
+ <table style="width:715px">
919
+ <thead>
920
+ <tr>
921
+ <th style="width:200px">SubType 子票种英文</th>
922
+ <th >TypeDescription子票种中文</th>
923
+ </tr>
924
+ </thead>
925
+ <tbody>
926
+ <tr>
927
+ <td> VatSpecialInvoice</td>
928
+ <td> 增值税专用发票 </td>
929
+ </tr>
930
+ <tr>
931
+ <td> VatCommonInvoice</td>
932
+ <td> 增值税普通发票 </td>
933
+ </tr>
934
+ <tr>
935
+ <td> VatElectronicCommonInvoice </td>
936
+ <td> 增值税电子普通发票 </td>
937
+ </tr>
938
+ <tr>
939
+ <td> VatElectronicSpecialInvoice </td>
940
+ <td> 增值税电子专用发票 </td>
941
+ </tr>
942
+ <tr>
943
+ <td> VatElectronicInvoiceBlockchain</td>
944
+ <td> 区块链电子发票 </td>
945
+ </tr>
946
+ <tr>
947
+ <td> VatElectronicSpecialInvoiceFull</td>
948
+ <td> 增值税电子普通发票(通行费)</td>
949
+ </tr>
950
+ <tr>
951
+ <td> VatElectronicSpecialInvoiceFull</td>
952
+ <td> 电子发票(专用发票)</td>
953
+ </tr>
954
+ <tr>
955
+ <td> VatElectronicSpecialInvoiceFull</td>
956
+ <td> 电子发票(普通发票) </td>
957
+ </tr>
958
+ <tr>
959
+ <td> MotorVehicleSaleInvoice </td>
960
+ <td> 机动车销售统一发票 </td>
961
+ </tr>
962
+ <tr>
963
+ <td> UsedCarPurchaseInvoice </td>
964
+ <td> 二手车销售统一发票 </td>
965
+ </tr>
966
+ <tr>
967
+ <td> VatInvoiceRoll </td>
968
+ <td> 增值税普通发票(卷票) </td>
969
+ </tr>
970
+ <tr>
971
+ <td> TaxiTicket </td>
972
+ <td> 出租车发票 </td>
973
+ </tr>
974
+ <tr>
975
+ <td> QuotaInvoice </td>
976
+ <td> 定额发票 </td>
977
+ </tr>
978
+ <tr>
979
+ <td> TrainTicket </td>
980
+ <td> 火车票 </td>
981
+ </tr>
982
+ <tr>
983
+ <td> AirTransport </td>
984
+ <td> 机票行程单 </td>
985
+ </tr>
986
+ <tr>
987
+ <td> MachinePrintedInvoice </td>
988
+ <td> 通用机打发票 </td>
989
+ </tr>
990
+ <tr>
991
+ <td> BusInvoice </td>
992
+ <td> 汽车票 </td>
993
+ </tr>
994
+ <tr>
995
+ <td> ShippingInvoice </td>
996
+ <td> 轮船票 </td>
997
+ </tr>
998
+ <tr>
999
+ <td> NonTaxIncomeGeneralBill </td>
1000
+ <td> 非税收入通用票据 </td>
1001
+ </tr>
1002
+ <tr>
1003
+ <td> NonTaxIncomeElectronicBill </td>
1004
+ <td> 非税收入一般缴款书(电子) </td>
1005
+ </tr>
1006
+ <tr>
1007
+ <td> TollInvoice </td>
1008
+ <td> 过路过桥费发票 </td>
1009
+ </tr>
1010
+ <tr>
1011
+ <td> OtherInvoice </td>
1012
+ <td> 其他发票 </td>
1013
+ </tr>
1014
+ </tbody>
1015
+ </table>
1016
+ */
1017
+ async RecognizeGeneralInvoice(req, cb) {
1018
+ return this.request("RecognizeGeneralInvoice", req, cb);
1019
+ }
911
1020
  /**
912
1021
  * 本接口支持行驶证主页和副页所有字段的自动定位与识别。
913
1022