1D barcode recognition plugin example

Example requests & Code samples for GdPicture Toolkits.
Post Reply
Posts: 11
Joined: Mon Sep 14, 2009 10:25 pm

1D barcode recognition plugin example

Post by rjskelton » Thu Sep 17, 2009 5:10 pm

Can you please provide an example or guidelines for using the 1D barcode recognition plug-in? I would like to read barcodes from a multi page/document loaded into the GdViewer.

User avatar
Site Admin
Posts: 5743
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: 1D barcode recognition plugin example

Post by Loïc » Fri Sep 18, 2009 11:56 am


Here is a way to detect barcodes on the displayed image:

Code: Select all

Imaging1.SetNativeImage (GdViewer1.GetNativeImage)
Imaging1.SetLicenseNumber1DBarcodeRecognition ("XXX") 'Replace XXX by a commercial or a demo key
For i = 1 To Imaging1.Barcode1DReaderGetBarcodeCount
   MsgBox "Value: " + Imaging1.Barcode1DReaderGetBarcodeValue(i)
   MsgBox "Type: " + Str(Imaging1.Barcode1DReaderGetBarcodeType(i))
   MsgBox "Angle: " + Str(Imaging1.Barcode1DReaderGetBarcodeSkewAngle(i))
Next i

Note: Imaging1 is an Imaging object and GdViewer1 the GdViewer displaying the image.

Kind regards,


Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests