| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
OCR.SetRectangle
Restrict recognition to a sub-rectangle of the image.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| OCR | 2.9 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "OCR.SetRectangle"; X; Y; Width; Height ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| X | The x coordinate. | 0 |
| Y | The y coordinate. | 0 |
| Width | The width of the rectangle. | 100 |
| Height | The height of the rectangle. | 100 |
Result
Returns OK on success.
Description
Restrict recognition to a sub-rectangle of the image.Call after SetImage. Each SetRectangle clears the recognition results so multiple rectangles can be recognized with the same image.
Examples
Set Rectangle to 800x600:
MBS( "OCR.SetRectangle"; 0; 0; 800; 600 )
See also
This function is free to use.
Created 18th August 2014, last changed 20th January 2020