Full Page OCR Service.
POST {{baseUrl}}/session/services/fullpageocr
The Full Page OCR Real-Time Service will provide full page OCR processing on submitted images or PDF documents and return the OCR content in the specified output type. Service Properties Env - Metadata environment identifier. Value is one of OcrEngineName - String. This specifies the OCR engine name to use. Currently supported engine is “Advanced”. "Advanced” OCR engine is currently assigned to the “OpenText Capture Recognition Engine” for this release. The default OCR engine is “Advanced”. AutoRotate - Boolean. This is an optional value specifying whether auto rotation should be enabled for the engine. The default is true. Country - String. This optional value specifies the country for the engine. The default is ProcessingMode - String. This optional value specifies proessing mode value for the engine. The default is Number of Request Items This Real-Time Service supports one or more items. Values Per Request Item OutputType - Required String. This setting specifies the OCR output type for the request item. It can be one of these values Files Per Request Item Each item can have one or more files. It can either be an embedded file or a reference to a file ID previously posted to the Files Resource. The supported file input types for color and grayscale images are JPEG and PNG. The supported file input type for binary images is TIFF G4.
D
, T
or P
. Default value is P
.USA
. When passing mutiple values in comma separated list, values must be within countries/languages groups given below:
VoteOcrAndEText
. This can be one of the following values:
Pdf
, Text
. The additional values you can make on the request item are based on what is assigned to the OutputType.
Pdf
Pdf
, Pdf14
, Pdf15
, Pdf16
, Pdf17
, PdfA1A
, PdfA1B
, PdfA2A
, PdfA2B
, PdfA2U
. If not provided, the default value is “Pdf”. Mapping to Acrobat version:“Pdf” -> PDF 1.7, PDF14
-> Pdf 1.4, Pdf15
-> Pdf 1.5, Pdf16
-> Pdf 1.6, Pdf17
-> Pdf1.7, PdfA1A
-> Pdf/A-1a, PdfA1B
-> Pdf/A-1b, PdfA2A
-> PDF/A-2a and “PdfA2B” - > PDF/A-2b, PdfA2U
-> Pdf/A-2u
Text
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Curl curl -X POST 'https://capture.ot2.opentext.com/cp-rest/v2/session/services/fullpageocr' -H 'Content-Type: application/hal+json' -d '{"serviceProps":[{"name":"Env","value":"D"},{"name":"OcrEngineName","value":"Advanced"}],"requestItems":[{"nodeId":1,"values":[{"name":"OutputType","value":"text"}],"files":[{"name":"DoodadPage1","value":"F_5fca44b57c4b4cddae84a7be36864c4bTIF","contentType":"image/tiff"}]}]}' ENDPOINTS |