Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Cannot Read Barcode from Font
Started by hturnage at 03-05-2008 13:58. Topic has 5 replies.

Print Search « Previous Thread Next Thread »
  03-05-2008, 13:58
hturnage is not online. Last active: 5/8/2008 4:05:02 PM hturnage

Top 500 Posts
Joined on 01-18-2007
Posts 9
Cannot Read Barcode from Font

Attachment: barcode.tif
Reply Quote
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 is not online. Last active: 9/2/2008 11:31:52 AM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,044
Re: Cannot Read Barcode from Font
Reply Quote
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 is not online. Last active: 5/8/2008 4:05:02 PM hturnage

Top 500 Posts
Joined on 01-18-2007
Posts 9
Re: Cannot Read Barcode from Font
Reply Quote
It's a 3 of 9 barcode. I think that string was either 'Test' or '1234567'.
   Report 
  03-10-2008, 8:31
Qasem Lubani is not online. Last active: 9/2/2008 11:31:52 AM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,044
Re: Cannot Read Barcode from Font
Reply Quote

The individual bars and spaces look similar to 3 of 9 barcodes. However, their combination together does not appear to be a valid code. I produced valid barcodes for the strings 'TEST' and '1234567', and neither of them resembled the image you sent me.

Does any non-LEAD software successfully recognize this image?
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  03-11-2008, 9:21
hturnage is not online. Last active: 5/8/2008 4:05:02 PM hturnage

Top 500 Posts
Joined on 01-18-2007
Posts 9
Re: Cannot Read Barcode from Font
Reply Quote
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 is not online. Last active: 9/2/2008 11:31:52 AM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,044
Re: Cannot Read Barcode from Font
Reply Quote
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 
Post
LEAD Support Fo... » LEAD/Axtel Barc... » Barcode » Cannot Read Barcode from Font

Powered by Community Server, by Telligent Systems