WindowsOCR.Text
---------------

Gets the recognized text.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WindowsOCR](component_WindowsOCR.md) | [13.1](newinversion131.md) | ❌ No | ✅ Yes | ❌ No | ✅ Yes, on Windows | ❌ No |

MBS( "WindowsOCR.Text"; OCR ) 

**MBS**( **"WindowsOCR.Text";** /\* Gets the recognized text. \*/  
**$OCR**) /\* The reference number of the ocr engine. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| OCR | The reference number of the ocr engine. | $ocr |

### Result

Returns text or error.

### Description

Gets the recognized text.  
### Examples

Query text after running OCR:

 Set Variable \[ $ocr ; Value: MBS ( "[WindowsOCR.New](WindowsOCRNew.md)"; Windows OCR::Language ) \]   
If \[ MBS ("IsError") \]   
 Show Custom Dialog \[ "Windows OCR" ; "Failed to intiialize: " &amp; $ocr \]   
Else  
 Set Variable \[ $r ; Value: MBS ( "[WindowsOCR.Recognize](WindowsOCRRecognize.md)"; $ocr ; Windows OCR::InputImage ) \]   
 If \[ MBS ("IsError") \]   
 Show Custom Dialog \[ "Windows OCR" ; "Failed to recognize: " &amp; $r \]   
 Else  
 Set Field \[ Windows OCR::Text ; MBS ( "WindowsOCR.Text"; $ocr ) \]   
 End If  
 #   
 Set Variable \[ $r ; Value: MBS ( "[WindowsOCR.Release](WindowsOCRRelease.md)"; $ocr ) \]   
End If  
### See also

- [IsError](IsError.md)
- [OCR.Recognize](OCRRecognize.md)
- [WindowsOCR.List](WindowsOCRList.md)
- [WindowsOCR.New](WindowsOCRNew.md)
- [WindowsOCR.Recognize](WindowsOCRRecognize.md)
- [WindowsOCR.Release](WindowsOCRRelease.md)
- [WindowsOCR.Result](WindowsOCRResult.md)

### Example Databases

- [Win Only/Windows OCR](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/Windows%20OCR.shtml#2ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Advent calendar - Door 20 - Scan and Recognize](https://www.mbsplugins.de/archive/2024-12-20/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin Advent calendar: 5 - WindowsOCR](https://www.mbsplugins.de/archive/2023-12-05/MBS_Plugin_Advent_calendar_5_-/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 13.1](https://www.mbsplugins.de/archive/2023-03-15/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [OCR on Windows in FileMaker](https://www.mbsplugins.de/archive/2023-02-07/OCR_on_Windows_in_FileMaker/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 2/2023, Seite 28](https://filemaker-magazin.de/neuigkeit/4223-Appetithappen-FMM_202302)

This function checks for a license.

Created 22nd January 2023 , last changed 7th May 2023

  
[WindowsOCR.Result](WindowsOCRResult.md) - [WindowsOCR.TextAngle](WindowsOCRTextAngle.md)

[HTML Version](WindowsOCRText.shtml)