High-level APIs for Document AI tasks.
More...
#include <document_ai.h>
High-level APIs for Document AI tasks.
Definition at line 207 of file document_ai.h.
◆ Dewarp:andOutputImage:
| + (ErrorCode) Dewarp: |
|
(id) | input |
| andOutputImage: |
|
(CDEWARPResult *) | outputImage |
Dewarp the input image (deskew/flatten).
- Parameters
-
| input | Input source (NSString file path or NSImage). |
| outputImage | Input: optional points to guide dewarp; Output: points + image. |
- Note
- Two-phase usage supported: first call may return only points; call again with those points to get the corrected image.
- Returns
- Error code, 0 for success.
◆ LayoutAnalysis:andResults:
| + (ErrorCode) LayoutAnalysis: |
|
(id) | input |
| andResults: |
|
(NSMutableArray< LayoutAnalysisResult * > *) | LayoutResult |
Perform page layout analysis.
- Parameters
-
| input | Input source (NSString file path or NSImage). |
| LayoutResult | Output array filled with layout elements. |
- Returns
- Error code, 0 for success.
◆ MagicColor:andOutputImage:
| + (ErrorCode) MagicColor: |
|
(id) | input |
| andOutputImage: |
|
(CMAGICCOLORResult *) | outputImage |
Apply MagicColor enhancement to the input image.
- Parameters
-
| input | Input source (NSString file path or NSImage). |
| outputImage | Output enhanced image container. |
- Returns
- Error code, 0 for success.
◆ Ocr:andResult:
| + (ErrorCode) Ocr: |
|
(id) | input |
| andResult: |
|
(NSMutableArray< COCRResult * > *) | ocrResult |
Run OCR on the page/image.
- Parameters
-
| input | Input source (NSString file path or NSImage). |
| ocrResult | Output array filled with OCR results. |
- Returns
- Error code, 0 for success.
◆ StampDetection:andResults:
| + (ErrorCode) StampDetection: |
|
(id) | input |
| andResults: |
|
(NSMutableArray< StampDetectionResult * > *) | StampResult |
Detect stamps/seals on the page.
- Parameters
-
| input | Input source (NSString file path or NSImage). |
| StampResult | Output array filled with stamp results. |
- Returns
- Error code, 0 for success.
◆ TableRec:andResult:
| + (ErrorCode) TableRec: |
|
(id) | input |
| andResult: |
|
(NSMutableArray< CTABResult * > *) | tabResult |
Recognize tables from the page/image.
- Parameters
-
| input | Input source (NSString file path or NSImage). |
| tabResult | Output array filled with table results. |
- Returns
- Error code, 0 for success.
The documentation for this class was generated from the following file: