J4L-Datamatrix Vision for .NET
Copyright J4L (http://www.java4less.com)
2006
Installation
J4L Datamatrix Vision is a .NET component
which can read (scan) datamatrix barcodes images. It support the following features:
- Finding all barcodes in large
images (for example in a scanned page or document)
- Supports byte, ascii , c40 and
text encoding.
- Supports all formats except the
following rectangular formats: C8X18,
C8x32, C12X26, C12X36,, C16X36 and C16X48
The requirements are:
Know limitations are:
- Best result are achieved with
black barcodes on white background.
- Shadowed or blurred barcodes can
be unreadable.
- Barcodes shall not be rotated
Installation
In order to use the component you
only need to add rvisionDM*.dll to your project.
Examples
The delivered ZIP file includes a
sample applicaion (DatamatrixSample*.exe) that scans all images in the "images"
subdirectory and displays the result in the standard output (MSDOS console).
The use of the component is very
simple. You must follow these steps:
- Create a DatamatrixReader instance:
[c#]
DatamatrixReader reader=new DatamatrixDReader();
- Load your image into an Image
class (format must be PixelFormat.Format24bppRgb). The application DatamatrixSample.cs
includes a method called loadImage() you can use for this purpose.
[c#]
Image image=loadImage("myFile.gif");
// see loadImage method in DatamatrixSample.cs
- Create a RImage instance and call
the scan() method of the Barcode1DReader
[c#]
DatamatrixData[]
barcodes=reader.scan(new RImage(im));
- Read the result. The DatamatrixData
objects contain the following information: Value ( of the barcode) and position
( x , y).
If no barcode has been found the array returned by read() will be empty.