Minimum length of the vertical line, relative to the image height that can be detected.
public int VerticalLineMinimumLength {get; set;}
public:
property Int32 VerticalLineMinimumLength
{
Int32 get()
void set(Int32 value)
}
VerticalLineMinimumLength # get and set (FindCandidateFormFieldsCommand)
Minimum length of the vertical line, relative to the image height that can be detected.
The value of this parameter should be between 1 to 100. The FindCandidateFormFieldsCommand returns the ERROR_INV_PARAMETER error code if the value is < 1 or > 100.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing.Core;
public void FindCandidateFormFieldsCommandExample()
{
RasterCodecs codecs = new RasterCodecs();
RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, @"Forms\Forms to be Recognized\OMR\AnswerSheet_Pattern.jpg"), 0, Leadtools.Codecs.CodecsLoadByteOrder.Bgr, 1, 1);
FindCandidateFormFieldsCommand findFields = new FindCandidateFormFieldsCommand();
findFields.HorizontalLineMinimumLength = (char)10;
findFields.VerticalLineMinimumLength = (char)3;
findFields.Run(image);
TextField[] textFields = findFields.TextFieldAreas;
OMRField[] omrFields = findFields.OMRFieldAreas;
foreach (TextField field in textFields)
{
// Function TODO : Drawing rectangle field.Bounds
// Function TODO : Drawing rectangle field.FilledAreaBounds
}
foreach (OMRField field in omrFields)
{
if (field.FieldType == BoxOMR)
{
// Function TODO : Drawing rectangle field.UnFilledBound
}
{
// Function TODO : Drawing circle field.UnFilledBound
}
}
image.Dispose();
codecs.Dispose();
}
static class LEAD_VARS
{
public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images";
}
FindCandidateFormFieldsCommand Class
FindCandidateFormFieldsCommand Members
Leadtools.ImageProcessing.Core Namespace
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
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.