SoftekBarcode(3) User Contributed Perl Documentation SoftekBarcode(3)

NAME

SoftekBarcode - Perl extension for the Softek Barcode Reader Toolkit

SYNOPSIS

use SoftekBarcode ;

# Create object
my $bar = SoftekBarcode->new() ;

#Set properties
$bar->{ReadCode39} = 1 ;
$bar->{MultipleRead} = 1 ;

# Scan for barcode
my $count = $bar->ScanBarCode("/tmp/image.tif") ;

printf "Found %d barcodes\n", $count ;

# Read results\n
foreach my $i (1..$count)
{
   my $barcode = $bar->GetBarString($i) ;
   printf "barcode is %s\n", $barcode ;
   my $type = $bar->GetBarStringType($i) ;
   printf "Type is %s\n", $type ;
}

DESCRIPTION

The SoftekBarcode module provides a Perl interface to the Softek Barcode Reader Toolkit and requires the libbardecode.so file to function. The Perl interface is free to use, but the Softek Barcode Reader toolkit is a commercial product.

The module contains the following methods:

new

Create a new instance of the barcode reader toolkit

ScanBarCode ($filePath)

Scan the specified file for barcodes and return the number of barcodes
found.

GetBarString ($index)

Get the value of a barcode found after calling ScanBarCode. The argument is a 1 based index to the barcode.

GetBarStringType ($index)

Get the type of a barcode found after calling ScanBarCode. The argument
is a 1 based index to the barcode.

The following properties are available and a description for each one
can be found at http://www.bardecode.com/help/

AllowDuplicateValues
Code39Checksum
Code39NeedStartStop
ColorThreshold
ConvertUPCEToEAN13
Despeckle
ErrorCorrection
ExtendedCode39
LineJump = > 3
Maxlength
MinLength
MinOccurrence
MinSeparation
MinSpaceBarWidth
MultipleRead
NoiseReduction
PageNo
Pattern
PrefOccurrence
QuietZoneSize
ReadCodabar
ReadCode128
ReadCode25
ReadCode25ni
ReadCode39
ReadEAN13
ReadEAN8
ReadNumeric
ReadPatchCodes
ReadPDF417
ReadUPCA
ReadUPCE
ScanDirection
ShowCheckDigit
SkewTolerance
UseOverSampling

EXPORT

None by default.

SEE ALSO
http://www.bardecode.com

AUTHOR
Andy Beezer, andy.beezer@softeksoftware.co.uk

COPYRIGHT AND LICENSE
Copyright (C) 2007 by Andy Beezer, Softek Software Ltd

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.0 or, at your option, any later version of Perl 5 you may have available.

perl v5.8.0 2007-10-11 SoftekBarcode(3)