Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
To Recognize Barcode using Aspose.Barcode Java for Ruby, simply invoke RecognizeBarcode module. Here you can see example code.
Ruby Code
data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
\# initialize barcode reader
img = data_dir + "barcode.jpg"
barcode_reader_type = Rjb::import('com.aspose.barcoderecognition.BarCodeReadType')
rd = Rjb::import('com.aspose.barcoderecognition.BarCodeReader').new(img, barcode_reader_type.Code39Standard)
\# read barcode
while rd.read()
# print the code text, if barcode found
puts "CodeText: " + rd.getCodeText().to_s
# print the symbology type
puts "Type: " + rd.getReadType().to_s
end
Download Barcode Recognition (Aspose.BarCode) from any of the below mentioned social coding sites:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.