Skip to main content

๐Ÿ” OCR API Reference

Sub-package: poocr | Install: pip install poocr Import: import office or import poocr

VatInvoiceOCR2Excelโ€‹

office.ocr.VatInvoiceOCR2Excel(
input_path,
output_path='./',
output_excel='VatInvoiceOCR2Excel.xlsx',
img_url=None,
id=None,
key=None,
file_name=False,
trans=False
)

Parametersโ€‹

ParameterTypeDescription
input_pathstrInvoice image path or folder
output_pathstrOutput directory
output_excelstrOutput Excel name
img_urlstrImage URL
id / keystrBaidu API credentials
file_nameboolUse filename as sheet name
transboolTranslate to English

Examplesโ€‹

import office

office.ocr.VatInvoiceOCR2Excel(
input_path='./invoice.jpg',
output_path='./output/'
)

office.ocr.VatInvoiceOCR2Excel(
input_path='./invoices/',
output_path='./output/',
output_excel='all_invoices_summary.xlsx',
file_name=True
)
AI ๅŠžๅ…ฌๆ•ˆ็އ่ฏพ
35 ่ฎฒ AI ่‡ชๅŠจๅŒ–ๅŠžๅ…ฌๅฎžๆˆ˜่ฏพ็”จ Python + AI ๅค„็† Excelใ€Wordใ€PDFใ€้‚ฎไปถ็ญ‰ๅŠžๅ…ฌๅœบๆ™ฏใ€‚
ๅŽปๅญฆไน