Class: Motion::OCR

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-ocr/ocr.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ OCR

Returns a new instance of OCR.



3
4
5
6
# File 'lib/motion-ocr/ocr.rb', line 3

def initialize(options={})
  options[:language] ||= "eng"
  @motion_ocr = MotionOCR.alloc.initWithOptions stringify(options)
end

Instance Method Details

#scan(image) ⇒ Object



8
9
10
# File 'lib/motion-ocr/ocr.rb', line 8

def scan(image)
  @motion_ocr.scan image
end