Class: ABBYY::Cloud::Models::OcrWarningType

Inherits:
String
  • Object
show all
Defined in:
lib/abbyy/cloud/models/ocr_warning_type.rb

Constant Summary collapse

VALUES =
%w(
  BrightnessIsTooHigh
  BrightnessIsTooLow
  ErrorWhenUsingDocumentAuxData
  NoRecognizableBlocksFound
  ProbablyLanguageIsIncorrect
  ResolutionIsLowForTinyTextPhoto
  ResolutionIsLowForTinyTextScanned
  ResolutionIsTooHigh
  ResolutionIsTooLow
  SuspiciousResolution
  TooManyBaseLanguages
  TooManyBaseLanguagesForDetection
  TooManyLanguagesDetected
  UnknownWarning
).freeze

Class Method Summary collapse

Class Method Details

.new(string) ⇒ Object



21
22
23
# File 'lib/abbyy/cloud/models/ocr_warning_type.rb', line 21

def self.new(string)
  super Types::Strict::String.constrained(included_in: VALUES)[string]
end