class TxOcr::Text
Public Class Methods
new(file_url, ocr_type = 'GeneralBasicOCR')
click to toggle source
# File lib/tx_ocr/text.rb, line 5 def initialize(file_url, ocr_type = 'GeneralBasicOCR') @ocr_type = ocr_type @file_url = file_url end
Public Instance Methods
encoded_image_url()
click to toggle source
# File lib/tx_ocr/text.rb, line 14 def encoded_image_url URI.encode(@file_url) end
remote_image_url()
click to toggle source
# File lib/tx_ocr/text.rb, line 10 def remote_image_url @file_url end