1 |
module OCRSDK::Verifiers::Profile |
24 |
2 |
# http://ocrsdk.com/documentation/specifications/processing-profiles/ |
|
3 |
PROFILES = [:document_conversion, :document_archiving, :text_extraction, |
24 |
4 |
:field_level_recognition, :barcode_recognition] |
|
5 | ||
6 |
def profile_to_s(profile) |
24 |
7 |
profile.to_s.camelize(:lower) |
27 |
8 |
end |
|
9 | ||
10 |
def supported_profile?(profile) |
24 |
11 |
profile = profile.underscore.to_sym if profile.kind_of? String |
105 |
12 | ||
13 |
PROFILES.include? profile |
105 |
14 |
end |
|
15 |
end |