Recognizing Multiple Symbologies in Single Image in PHP

Aspose.BarCode - Recognizing Multiple Symbologies in Single Image

To Recognize Multiple Symbologies in Single Image using Aspose.Barcode Java for PHP, simply invoke RecognizeMultipleSymbologies module. Here you can see example code.

PHPCode

 # initialize barcode reader

$img = $dataDir . "symbologies.png";

$barcode_reader_type = new BarCodeReadType();

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

\# 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 Recognizing Multiple Symbologies in Single Image (Aspose.BarCode) from any of the below mentioned social coding sites: