How do I create a simple application to perform OMR analysis without using an FDL on a single field?
Please refer to the sample code listed below: 1) Pass the image to the SmartScan control and create the form. ssx.ImageSource = IMGSRC_DIB ssx.hDIB = Xpress.CopyDIB ssx.CreateForm “OMRForm” ssx.SetFormBounds 0, 0, Xpress.IWidth, Xpress.IHeight 2) Set the field boundaries and the various OMR settings. ssx.AddFormField “OMR” ssx.SetFieldBounds 203, 1018, 156, 457 ssx.FieldType = FIELDTYPE_OMR ssx.FieldOMRBubbleShape = OMRBUBBLESHAPE_CIRCLE ssx.FieldOMRBubbleReadOrder = OMRREADORDER_HORIZONTAL ssx.FieldOMRMarkThreshold = 25 ssx.FieldOMRColumns = 5 ssx.FieldOMRRows = 8 3) Set the string values to return for the filled in bubbles. For col = 1 To 5 charint = Chr$(Asc(“A”) + col – 1) For row = 1 To 8 ssx.SetFieldOMRBubbleValue row, col, charint Next Next 4) Start processing the image and retrieve the results for the defined field. ssx.StartFormProcessing Me.Caption = ssx.SSError MsgBox ssx.
Related Questions
- Should all the Java files or classes in my application be added to JCover project to perform coverage analysis?
- How do I create a simple OCR application without using an FDL file to analyze a single field on the image?
- How do I create a simple application to perform OMR analysis without using an FDL on a single field?