Re: Cannot Read Barcode from Font
Started by hturnage at 03-05-2008 13:58. Topic has 5 replies.
|
|
03-05-2008, 13:58
|
hturnage
Joined on 01-18-2007
Posts 9
|
|
|
Attached is a barcode generated from a free barcode font (http://www.barcodesinc.com/free-barcode-font/). I've had great results reading barcodes until hitting this issue.
Anyone else had any issues with barcodes generated from fonts? Is there any other information I could provide to help track down my issue?
Here's my 'read' code:
///
///
///
private RasterCollection GetBarcodeDataCollection(RasterImage image)
{
RasterCollection retval = null;
try
{
retval = _barcodeEngine.Read(image, Rectangle.Empty, BarcodeSearchTypeFlags.Barcode1dCode3Of9, BarcodeUnit.ScanlinesPerPixels, BarcodeReadFlags.None, 0, GetBarcode1d(), null, GetBarcodeColor());
}
catch
{
// Leadtools throws an exception when there aren't any barcodes present on an image.
}
return retval;
}
///
///
///
private Barcode1d GetBarcode1d()
{
Barcode1d retval = new Barcode1d();
retval.MinimumLength = 3;
retval.Granularity = 9;
retval.WhiteLines = 3;
retval.StandardFlags = Barcode1dStandardFlags.Barcode1dFast;
retval.Direction = BarcodeDirectionFlags.Horizontal | BarcodeDirectionFlags.Vertical;
return retval;
}
///
///
///
private BarcodeColor GetBarcodeColor()
{
BarcodeColor retval = new BarcodeColor();
retval.BarColor = Color.Black;
retval.SpaceColor = Color.White;
return retval;
}
|
|
|
|
|
Report
|
|
|
|
03-06-2008, 9:51
|
Qasem Lubani

Joined on 08-13-2006
Posts 1,044
|
Re: Cannot Read Barcode from Font
|
 
 
|
|
|
You're right about
this image, our barcode engine did not recognize it. It seems this is a 3 or 9
barcode type. Is this true? Do you have the string that is supposed to be
encoded in this symbol?
Qasem Al-Lubani LEAD Technical Support www.leadtools.com
|
|
|
|
|
Report
|
|
|
|
03-07-2008, 16:10
|
hturnage
Joined on 01-18-2007
Posts 9
|
Re: Cannot Read Barcode from Font
|
 
 
|
|
|
It's a 3 of 9 barcode. I think that string was either 'Test' or '1234567'.
|
|
|
|
|
Report
|
|
|
|
03-11-2008, 9:21
|
hturnage
Joined on 01-18-2007
Posts 9
|
Re: Cannot Read Barcode from Font
|
 
 
|
|
|
I've had success in the past reading these barcodes with an actual hand scanner but never through an API like Leadtools. The hand scanner was set to read 3 of 9 from what I recall.
How about a better question... Is there a barcode font out there that you know works with Leadtools? I'm not set on using this one in particular.
|
|
|
|
|
Report
|
|
|
|
03-12-2008, 5:49
|
Qasem Lubani

Joined on 08-13-2006
Posts 1,044
|
Re: Cannot Read Barcode from Font
|
 
 
|
|
|
I'm afraid we have
not tested barcode fonts and therefore cannot comment on their correctness of
compatibility with our toolkit. However, you probably know that our Barcode
engine is capable of writing 3 of 9 barcodes (and many other types). Can't you
make part of your own application perform the encoding of strings to barcodes
using our engine?
Qasem Al-Lubani LEAD Technical Support www.leadtools.com
|
|
|
|
|
Report
|
|
|
|
|
LEAD Support Fo... » LEAD/Axtel Barc... » Barcode » Re: Cannot Read Barcode from Font
|
|
Copyright LEAD Technologies, Inc. 2008
