WindowsOCR.TextAngle
--------------------

Gets the clockwise rotation of the recognized text, in degrees, around the center of the image.

| 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.TextAngle"; OCR ) 

**MBS**( **"WindowsOCR.TextAngle";** /\* Gets the clockwise rotation of the recognized text, in degrees, around the center of the image. \*/  
**$OCR**) /\* The reference number of the ocr engine. \*/ 

### Parameters

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

### Result

Returns number or error.

### Description

Gets the clockwise rotation of the recognized text, in degrees, around the center of the image.  
Can be called after you recognised some text.  
  
The clockwise rotation of the recognized text, in degrees, around the center of the image. If the angle of the text can't be detected, the value of this property is null. If the image contains text at different angles, only part of the text will be recognized correctly.  
  
Use the TextAngle property to overlay recognition results correctly on the original image. If the value of the TextAngle property is not null or 0 (zero), then to overlay the recognized text correctly on the original image, you either have to rotate the original image by the detected angle in a counter-clockwise direction, or rotate the recognized text by the detected angle in a clockwise direction.  
### Blog Entries

- [MBS Plugin Advent calendar: 5 - WindowsOCR](https://www.mbsplugins.de/archive/2023-12-05/MBS_Plugin_Advent_calendar_5_-/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 22nd January 2023

  
[WindowsOCR.Text](WindowsOCRText.md) - [WindowsScript.AddCode](WindowsScriptAddCode.md)

[HTML Version](WindowsOCRTextAngle.shtml)