TextifyConfig constructor

const TextifyConfig({
  1. int dilationSize = 22,
  2. bool excludeLongLines = true,
  3. bool attemptCharacterSplitting = true,
  4. bool applyDictionaryCorrection = false,
  5. double matchingThreshold = 0.4,
  6. int maxProcessingTimeMs = 30000,
})

Creates a Textify configuration with the specified options.

Implementation

const TextifyConfig({
  this.dilationSize = 22,
  this.excludeLongLines = true,
  this.attemptCharacterSplitting = true,
  this.applyDictionaryCorrection = false,
  this.matchingThreshold = 0.4,
  this.maxProcessingTimeMs = 30000,
}) : assert(dilationSize > 0, 'dilationSize must be positive'),
     assert(
       matchingThreshold >= 0.0 && matchingThreshold <= 1.0,
       'matchingThreshold must be between 0.0 and 1.0',
     ),
     assert(maxProcessingTimeMs > 0, 'maxProcessingTimeMs must be positive');