Method: Aspose::Cloud::Barcode::Reader#read_barcode_count
- Defined in:
- lib/Barcode/reader.rb
#read_barcode_count(symbology, barcodesCount) ⇒ Object
Recognize Specified count of Barcodes
@param string symbology Type of .
@param string Recognize specified count of .
126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/Barcode/reader.rb', line 126 def (symbology, ) raise 'Symbology not provided.' if symbology.empty? raise 'Barcode count not provided.' if .nil? str_uri = "#{Aspose::Cloud::Common::Product.product_uri}/barcode/#{@filename}/recognize" str_uri = "#{str_uri}?type=#{symbology}&barcodesCount=#{barcodesCount}" signed_uri = Aspose::Cloud::Common::Utils.sign(str_uri) response = RestClient.get(signed_uri, {:accept => 'application/json'}) json = JSON.parse(response) json['Code'] == 200 ? json['Barcodes'] : nil end |