Sha256: 45c6e31f07cf320409c118a34b5532d41f9016725150a593861b53d1c7de24e6

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

module OCRSDK::Verifiers::Profile
  # http://ocrsdk.com/documentation/specifications/processing-profiles/
  PROFILES = [:document_conversion, :document_archiving, :text_extraction,
    :field_level_recognition, :barcode_recognition]

  def profile_to_s(profile)
    profile.to_s.camelize(:lower)
  end

  def supported_profile?(profile)
    profile = profile.underscore.to_sym  if profile.kind_of? String

    PROFILES.include? profile
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ocrsdk-0.1.0 lib/ocrsdk/verifiers/profile.rb