Skip to content

Commit 7f01145

Browse files
committed
Release 24.6
1 parent 1e3bcdd commit 7f01145

File tree

1 file changed

+9
-1
lines changed
  • ocr/developer-reference/settings/result-format

1 file changed

+9
-1
lines changed

ocr/developer-reference/settings/result-format/_index.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
weight: 30
3-
date: "2023-11-27"
3+
date: "2024-06-10"
44
author: "Vladimir Lapin"
55
type: docs
66
url: /result-format/
@@ -24,11 +24,19 @@ Format | REST API setting | Applies to
2424
Plain text | `"resultType": "Text"`<br />`"resultTypeTable": "Text"`<br />`"resultType": "TextAndPdf"`<br />`"resultType": "TextAndHocr"`<br />`"resultType": "TextAndPdfAndHocr"` | [Image recognition](/ocr/recognize-image/)<br />[PDF recognition](/ocr/recognize-pdf/)<br />[Receipt recognition](/ocr/recognize-receipt/)<br />[Table recognition](/ocr/recognize-table/)<br />[Regions recognition](/ocr/recognize-regions/)
2525
PDF | `"resultType": "Pdf"`<br />`"resultType": "TextAndPdf"`<br />`"resultType": "PdfAndHocr"`<br />`"resultType": "TextAndPdfAndHocr"` | [Image recognition](/ocr/recognize-image/)<br />[PDF recognition](/ocr/recognize-pdf/)<br />[Receipt recognition](/ocr/recognize-receipt/)<br />[Regions recognition](/ocr/recognize-regions/)
2626
hOCR | `"resultType": "Hocr"`<br />`"resultType": "TextAndHocr"`<br />`"resultType": "PdfAndHocr"`<br />`"resultType": "TextAndPdfAndHocr"` | [Image recognition](/ocr/recognize-image/)<br />[PDF recognition](/ocr/recognize-pdf/)<br />[Receipt recognition](/ocr/recognize-receipt/)<br />[Regions recognition](/ocr/recognize-regions/)
27+
JSON | `"resultType": "JSON"` | [Image recognition](/ocr/recognize-image/)<br />[PDF recognition](/ocr/recognize-pdf/)<br />[Receipt recognition](/ocr/recognize-receipt/)<br />[Table recognition](/ocr/recognize-table/)
2728
Excel | `"resultType": "Excel"`<br />`"resultTypeTable": "CsvAndExcel"` | [Table recognition](/ocr/recognize-table/)
2829
CSV | `"resultType": "Csv"`<br />`"resultTypeTable": "CsvAndExcel"` | [Table recognition](/ocr/recognize-table/)
2930
WAV | `"resultType": "Wav"` | [Text to speech conversion](/ocr/text-to-speech/)
3031
PNG | `"resultType": "ImagePNG"` | [Image preprocessing](/ocr/preprocess-image/)
3132

33+
## Returning recognition result as JSON
34+
35+
When the recognition result is returned as JSON, the resulting file will contain the array of all content block found in the image and the recognized text found in the block:
36+
37+
- The coordinates of the top left and bottom right corners of the content block.
38+
- The recognized text (plain text string).
39+
3240
## Important considerations
3341

3442
- You can get more than one result type from a single request. Use combined formats, such as `TextAndPdf`, `TextAndHocr`, `PdfAndHocr`, or `TextAndPdfAndHocr`.

0 commit comments

Comments
 (0)