Aspose.Barcode for PHP via Java Generation and Recognition API docs
BarcodeQualityMode Class Reference

Public Attributes

const HIGH = 0
 
const NORMAL = 1
 
const LOW = 2
 

Detailed Description

Mode which enables methods to recognize barcode elements with the selected quality. Barcode element with lower quality requires more hard methods which slows the recognition.


 This sample shows how to use BarcodeQuality mode
 
$reader = new BarCodeReader("test.png", null, array(DecodeType::CODE_39_FULL_ASCII, DecodeType::CODE_128));
$reader->getQualitySettings()->setBarcodeQuality(BarcodeQualityMode::LOW);
foreach($reader->readBarCodes() as $result)
{
print("BarCode CodeText: " . $result->getCodeText());
}

Member Data Documentation

◆ HIGH

const BarcodeQualityMode::HIGH = 0

Enables recognition methods for High quality barcodes.

◆ LOW

const BarcodeQualityMode::LOW = 2

Enables recognition methods for Low quality barcodes.

◆ NORMAL

const BarcodeQualityMode::NORMAL = 1

Enables recognition methods for Common(Normal) quality barcodes.