Method: Rocrad#ocr!
- Defined in:
- lib/rocrad.rb
#ocr! ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/rocrad.rb', line 28 def ocr! if @src.instance_of? Pathname and @src.file? ocr_via_path @txt elsif @src.instance_of? URI::HTTP ocr_via_http @txt else raise ImageNotSelectedError end end |