Module: SemaApiRuby
- Extended by:
- Configuration
- Defined in:
- lib/sema_api_ruby.rb,
lib/sema_api_ruby/client.rb,
lib/sema_api_ruby/version.rb,
lib/sema_api_ruby/client/ocr.rb,
lib/sema_api_ruby/exceptions.rb,
lib/sema_api_ruby/configuration.rb,
lib/sema_api_ruby/get_text_to_image_ratio.rb
Defined Under Namespace
Modules: Configuration Classes: Client, GetTextToImageRatio
Constant Summary collapse
- VERSION =
'0.1.1'
Constants included from Configuration
Configuration::DEFAULT_API_ENDPOINT, Configuration::DEFAULT_API_VERSION, Configuration::DEFAULT_CONTENT_TYPE, Configuration::DEFAULT_DEBUG_OUTPUT, Configuration::DEFAULT_OCR_SETTINGS, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_CONFIG_KEYS
Class Method Summary collapse
Methods included from Configuration
configure, extended, options, reset
Class Method Details
.default_ocr_options ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/sema_api_ruby.rb', line 19 def self. { lang: 'en', # english language outform: 'json', # output as json sp: 'True', # perform spellcheck mh: 'True', # multi-hypothesis... increases accuracy at slight performance cost df: 'True', # dictionary based word filtering noempty: 'True' # only return detected objects that are not empty } end |
.new(options = {}) ⇒ Object
11 12 13 |
# File 'lib/sema_api_ruby.rb', line 11 def self.new( = {}) SemaApiRuby::Client.new() end |
.root ⇒ Object
15 16 17 |
# File 'lib/sema_api_ruby.rb', line 15 def self.root File.dirname __dir__ end |