Sha256: 39cb9217bd4e221d899344784469481600a05613472311deb110490855863131
Contents?: true
Size: 453 Bytes
Versions: 8
Compression:
Stored size: 453 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].freeze 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
8 entries across 8 versions & 1 rubygems