OCR.GetBoxText
--------------

The recognized text is returned as a text which is coded in the same format as a box file used in training.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [OCR](component_OCR.md) | [2.9](newinversion29.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "OCR.GetBoxText" { ; Page } ) 

**MBS**( **"OCR.GetBoxText";** /\* The recognized text is returned as a text which is coded in the same format as a box file used in training. \*/  
**$Page**) /\* Optional; The page index you want to use in html. Default value is 0.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Page | The page index you want to use in html. Default value is 0. | 0 | Optional |

### Result

Returns the text.

### Description

The recognized text is returned as a text which is coded in the same format as a box file used in training.   
Constructs coordinates in the original image - not just the rectangle. Page is a 0-based page index that will appear in the box file.  
### Examples

Queries text of first page:

 $text = MBS ( "OCR.GetBoxText"; 0 )  
### See also

- [OCR.GetHOCRText](OCRGetHOCRText.md)
- [OCR.GetText](OCRGetText.md)

This function is free to use.

Created 18th August 2014 , last changed 2nd November 2017

  
[OCR.Clear](OCRClear.md) - [OCR.GetHOCRText](OCRGetHOCRText.md)

[HTML Version](OCRGetBoxText.shtml)