Sha256: a11ecd0edff79970f17adf1a8a3ea6d63b1db3726084b08d9677832c8731157d
Contents?: true
Size: 355 Bytes
Versions: 1
Compression:
Stored size: 355 Bytes
Contents
module Motion class OCR def initialize(options={}) options[:language] ||= "eng" @motion_ocr = MotionOCR.alloc.initWithOptions stringify(options) end def scan(image) @motion_ocr.scan image end private def stringify(hash) stringified = hash.flatten.map(&:to_s) Hash[*stringified] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-ocr-0.1.0 | lib/motion-ocr/ocr.rb |