SmartZone v7.0 for .NET - Updated
Define and Edit Data Validation Lists
Developer Guide > How To > Define and Edit Data Validation Lists

SmartZone ICR/OCR allow you to provide a list of expected data contents. If you know potential actual values, providing that information will make your recognition results more accurate.

ICR Example - Clear a data validation list and add from a checkbox list

//Clear previous DVL
smartZoneICR1.Reader.DataValidationListClear();
//Add new ones
for (int i = 0; i < checkedListBoxDVL.Items.Count; i++) {
  object curritem = checkedListBoxDVL.Items[i];
  if (checkedListBoxDVL.CheckedItems.Contains(curritem))
  {
    smartZoneICR1.Reader.DataValidationListAddEntry(curritem.ToString());
  }
}

OCR Example - Clear a data validation list and add from a checkbox list

//Clear previous DVL
smartZoneOCR1.Reader.DataValidationListClear();
//Add new ones
for (int i = 0; i < checkedListBoxDVL.Items.Count; i++) {
  object curritem = checkedListBoxDVL.Items[i];
  if (checkedListBoxDVL.CheckedItems.Contains(curritem))
  {
    smartZoneOCR1.Reader.DataValidationListAddEntry(curritem.ToString());
  }
}

Using a Data Validation list provides additional feedback on recognition by way of the returned FieldType value. For example, a regular string will return a FieldType of GeneralText. 

Practical Uses of Data Validation Lists

Case Sensitivity

When comparing list entries and recognized text, the Data Validation engine assumes both are words with standard capitalization.

Scenarios with Mixed Cased List Entries and Recognized Text

Refer to the following behaviors for scenarios with mixed cased list entries and recognized text:

Is this page helpful?
Yes No
Thanks for your feedback.