Introducing Barcode Recognition in PHP

Aspose.BarCode - Barcode Recognition

To Recognize Barcode using Aspose.Barcode Java for PHP, simply invoke RecognizeBarcode module. Here you can see example code.


 # initialize barcode reader

$img = $dataDir . "barcode.jpg";

$barcode_reader_type = new BarCodeReadType();

$rd = new BarCodeReader($img, $barcode_reader_type->Code39Standard);

\# read barcode

while (java_values($rd->read())) {

\# print the code text, if barcode found

print "CodeText: " . (string)$rd ->getCodeText().PHP_EOL;

\# print the symbology type

print "Type: " . (string)$rd ->getReadType().PHP_EOL;



Download Running Code

Download Barcode Recognition (Aspose.BarCode) from any of the below mentioned social coding sites: