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

Public Attributes

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

Detailed Description

Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance).


 This sample shows how to use InverseImage mode
 

$reader = new BarCodeReader("test.png", null, array(DecodeType::CODE_39_FULL_ASCII, DecodeType::CODE_128));
$reader->getQualitySettings()->setInverseImage(InverseImageMode::ENABLED);
foreach($reader->readBarCodes() as $result)
{
print("BarCode CodeText: " . $result->getCodeText());
}

Member Data Documentation

◆ AUTO

const InverseImageMode::AUTO = 0

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

◆ DISABLED

const InverseImageMode::DISABLED = 1

Disables additional recognition of barcodes on inverse images.

◆ ENABLED

const InverseImageMode::ENABLED = 2

Enables additional recognition of barcodes on inverse images