bardecode.com
barcode reading software
  • Home
  • Download
  • Purchase
  • SDK Licensing
  • Pricing
    • Windows SDK Price List
    • Windows SDK with PDF Extension Price List
    • Linux SDK Price List
    • Linux SDK with PDF Extension Price List
    • PDF Extension For Windows Price List
    • Multi-Platform Toolkit for .NET Price List
    • BardecodeFiler Desktop Only Price List
    • BardecodeFiler Windows Service Price List
    • DOS Command Prompt Barcode Tool Price List
    • Terms and Conditions
    • Refund Policy
  • Products
    • Softek Barcode Reader Toolkit for Windows
    • Softek Barcode Reader Toolkit for Linux
    • BardecodeFiler Desktop App
    • BardecodeFiler Windows Service
    • Windows DOS Command Prompt Tool
    • Multi-platform barcode reader toolkit for .NET
    • Aquaforest’s Autobahn DX
  • Knowledge Base
    • Documentation
    • Specifications
  • News
  • Contact
    • About Us
    • Terms and Conditions
    • Resellers
    • Links
Select Page ...

News

A test script for Linux

admin June 25, 2019 Knowledge Base, Software Development Kits

The following script can be used for barcode testing on Linux in a similar way to the test option in SoftekSDKDemo (using the same options):

echo “Test only with supplied options”
r=`./bardecode $*`
if test -n “$r”
then
echo “Found barcode: $r”
exit
fi

echo “Test: Small quiet zones around barcodes (-q 10)”
r=`./bardecode -q 10 $*`
if test -n “$r”
then
echo “Found barcode: $r”
exit
fi

echo “Test: Skewed barcodes (–DeskewMode 3)”
r=`./bardecode –DeskewMode 3 $*`
if test -n “$r”
then
echo “Found barcode: $r”
exit
fi

echo “Test: Noise Reduction and Despeckle (-N 10)”
r=`./bardecode -N 10 $*`
if test -n “$r”
then
echo “Found barcode: $r”
exit
fi

echo “Test: Short barcode values (–MinLength 1)”
r=`./bardecode –MinLength 1 $*`
if test -n “$r”
then
echo “Found barcode: $r”
exit
fi

echo “Test: Low hit counts (–PrefOccurrence 2)”
r=`./bardecode –PrefOccurrence 2 $*`
if test -n “$r”
then
echo “Found barcode: $r”
exit
fi

echo “Test: Less common barcodes (–ReadCode25ni 1 –ReadPatchCodes 1 –ReadCodabar 1 –ReadDatabar 1)”
r=`./bardecode –ReadCode25ni 1 –ReadPatchCodes 1 –ReadCodabar 1 –ReadDatabar 1 $*`
if test -n “$r”
then
echo “Found barcode: $r”
exit
fi

← QR Codes and Chinese characters
Basic regex pattern matching →
admin

  • Copyright © 2023 Softek Software Ltd. All Rights Reserved