POST api/Getocr

Request Information

URI Parameters

None.

Body Parameters

VatInvoiceOCRRequest
NameDescriptionTypeAdditional information
ImageBase64

string

None.

ImageUrl

string

None.

IsPdf

boolean

None.

PdfPageNumber

unsigned integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ImageBase64": "sample string 1",
  "ImageUrl": "sample string 2",
  "IsPdf": true,
  "PdfPageNumber": 1
}

application/xml, text/xml

Sample:
<VatInvoiceOCRRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TencentCloud.Ocr.V20181119.Models">
  <ImageBase64>sample string 1</ImageBase64>
  <ImageUrl>sample string 2</ImageUrl>
  <IsPdf>true</IsPdf>
  <PdfPageNumber>1</PdfPageNumber>
</VatInvoiceOCRRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'VatInvoiceOCRRequest'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.