Specifies the different options for a Form page when it is added to a form using FormRecognitionEngine.AddFormPage for Forms or FormRecognitionEngine.AddMasterFormPage for Master Forms.
[SerializableAttribute()]public class PageRecognitionOptions
<SerializableAttribute()>Public Class PageRecognitionOptions
[SerializableAttribute()]public ref class PageRecognitionOptions
IncludeRectangles forms the region of the image that will be considered for feature extraction, any region outside the include region will be ignored.
If IncludeRectangles doesn't have a rectangle then the whole image will be considered as one include region for the feature extraction.
ExcludeRectangles forms the region of the image that will be ignored for feature extraction.
IncludeRectangles are considered first then the ExcludeRectangles will be excluded from the include region.
SvgDocument is the optional SVG document representation of this page if the original format supports loading as SVG. This is created and used by the recognition or processing engine.
This example adds a page image to an attributes.
Imports Leadtools.FormsImports Leadtools.Forms.RecognitionImports Leadtools.Codecs'''This method add a page to the form attributes.Public Sub AddPageToFormAttributes(page As RasterImage, attributes As FormRecognitionAttributes, engine As FormRecognitionEngine)Dim pageOptions As New PageRecognitionOptions()pageOptions.AutoCleanUp = TruepageOptions.UpdateImage = TruepageOptions.TradeoffMode = FormsTradeoffMode.Accurate#If LEADTOOLS_V19_OR_LATER Then'Page is normal page, Not a cardpageOptions.PageType = FormsPageType.Normal#End IfpageOptions.IncludeRectangles.Add(New LogicalRectangle(0, 0, page.Width, page.Height, LogicalUnit.Pixel))pageOptions.ExcludeRectangles.Add(New LogicalRectangle(page.Width * 6 / 10, page.Height * 4 / 10, page.Width * 3 / 10, page.Height * 2 / 10, LogicalUnit.Pixel))pageOptions.RegionOfInterestRectangles.Add(New LogicalRectangle(page.Width * 1 / 10, page.Height * 1 / 10, page.Width * 2 / 10, page.Height * 2 / 10, LogicalUnit.Pixel))Dim properties As FormRecognitionProperties = engine.GetFormProperties(attributes)If properties.IsMaster Thenengine.OpenMasterForm(attributes)engine.AddMasterFormPage(attributes, page, pageOptions)engine.CloseMasterForm(attributes)Elseengine.OpenForm(attributes)engine.AddFormPage(attributes, page, pageOptions)engine.CloseForm(attributes)End IfEnd Sub
using Leadtools.Forms;using Leadtools.Forms.Recognition;using Leadtools.Codecs;///This method add a page to the form attributes.public void AddPageToFormAttributes(RasterImage page, FormRecognitionAttributes attributes, FormRecognitionEngine engine){PageRecognitionOptions pageOptions = new PageRecognitionOptions();pageOptions.AutoCleanUp = true;pageOptions.UpdateImage = true;pageOptions.TradeoffMode = FormsTradeoffMode.Accurate;#if LEADTOOLS_V19_OR_LATER//Page is normal page, Not a cardpageOptions.PageType = FormsPageType.Normal;#endif//#if LEADTOOLS_V19_OR_LATERpageOptions.IncludeRectangles.Add(new LogicalRectangle(0, 0, page.Width, page.Height, LogicalUnit.Pixel));pageOptions.ExcludeRectangles.Add(new LogicalRectangle(page.Width * 6 / 10,page.Height * 4 / 10,page.Width * 3 / 10,page.Height * 2 / 10,LogicalUnit.Pixel));pageOptions.RegionOfInterestRectangles.Add(new LogicalRectangle(page.Width * 1 / 10,page.Height * 1 / 10,page.Width * 2 / 10,page.Height * 2 / 10,LogicalUnit.Pixel));FormRecognitionProperties properties = engine.GetFormProperties(attributes);if (properties.IsMaster){engine.OpenMasterForm(attributes);engine.AddMasterFormPage(attributes, page, pageOptions);engine.CloseMasterForm(attributes);}else{engine.OpenForm(attributes);engine.AddFormPage(attributes, page, pageOptions);engine.CloseForm(attributes);}}
|
Products |
Support |
Feedback: PageRecognitionOptions Class - Leadtools.Forms.Recognition |
Introduction |
Help Version 19.0.2017.3.22
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.