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

Public Attributes

const AUTO = 0
 
const DISABLED = 1
 
const ENABLED = 2
 

Detailed Description

Mode which enables or disables additional recognition of color barcodes on color images.


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

Member Data Documentation

◆ AUTO

const ComplexBackgroundMode::AUTO = 0

At this time the same as Disabled. Disables additional recognition of color barcodes on color images.

◆ DISABLED

const ComplexBackgroundMode::DISABLED = 1

Disables additional recognition of color barcodes on color images.

◆ ENABLED

const ComplexBackgroundMode::ENABLED = 2

Enables additional recognition of color barcodes on color images.