Alltime Barcode Caption showing with Rotate issue
Problem reading Code-128 barcodes created using Aspose.Barcode
Barcode Recognition and Reliability Issues for v6.8.0.0
We've been experiencing issues with Aspose Barcode for .NET with regards to reliability and accuracy. Issues are detailed below:
1. Barcode Region Points Indexing
- Index for Bottom Left and Top Right seem to be interchanged
- According to this: http://www.aspose.com/docs/display/barcodenet/Getting+BarCode+Region+Information+from+the+Image, Points[1] correspond to Bottom Left, while Points[3] correspond to Top Right
- Based from actual results, Points[1] correspond to Top Right, while Points[3] correspond to Bottom Left
- See code implementation for ValidateRegionPointsOrder() method in the sample project
- Screenshot: issue-1.png
2. Barcode Region Points Accuracy
- In the sample project, four barcodes are printed in a 794 x 1123 image:
- A16-4: no rotation and located at (25,5)
- B16-4: 270 degree rotation and located at (5,1097)
- C16-4: 180 degree rotation and located at (768,1117)
- D16-4: 90 degree rotation and located at (788, 25)
- Barcode region points are significantly off from expected values
- See code implementation for ValidateBarcodeCornerCoordinates() method in the sample project
- Screenshot: issue-2.png
3. Barcode detection failure with Orientation Hint involved
- For NoRotate:
- Barcode B16-4 is detected twice
- For Rotate90:
- Only barcodes C16-4 and B16-4 are detected
- Barcode that doesn't exist in the sample image is detected (0697247)
- For Rotate180:
- All four barcodes are detected
- For Rotate270:
- Only barcodes D16-4, B16-4 and C16-4 are detected
- Results worsen if ImageBinarizationHint of InvertImage is removed
- See code implementation for ValidateRecognitionWithOrientation() method in the sample project
- Screenshot: issue-3.png
4. Barcode detection failure worsens with images generated using Aspose Barcode for .NET 6.8.0.0 DLL
- Sample image generated using new DLL is named "sample_new.jpg"
- Sample image generated using old DLL (5.7.0.0) is named "sample.jpg"
- Try to use "sample_new.jpg" to see how the recognition worsens for Issues 2 and 3
NOTES:
- Related issue for Issue 3 is already logged here: http://www.aspose.com/community/forums/thread/615598/barcode-recognition-efficiency-from-5.7.0.0-to-6.8.0.0.aspx
- License file was removed from the sample project for security purposes
Can't extract barcode value from these jpgs
Very Small Barcodes to generate
Hi,
I have a requirement to generate very small barcodes could be placed on chemical vials. Barcode(Code128) maximum size would be 1/2" inch. Could you please let me know whether we can generate the barcodes as expected.
I would like to generate the barcode for "123456-AB" and the barcode size should be half inch (1/2"), Zebra software is able to generate the barcode as half inch. It would be great to send some sample barcodes images that are below or around half inch for text "123456-AB" and could able to scan the images.
We are ready to purchase the software if we could be to generate the barcodes as expected.
I have written sample program to generate Code128.
BarCodeBuilder builder = new BarCodeBuilder(getBarcodeText(), Symbology.Code128);
BufferedImage bi = builder.getCustomSizeBarCodeImage(new Dimension(40,20), true);
above code thrown exception : com.aspose.barcode.BarCodeException: GetCustomSizeBarCodeImage - required size is too small to fit the image
Could you please suggest/guide me to accomplish barcode generation.
Thanks
Dhorrairaajj
DataMatrix BarCode Readable by 3.6.1.0 is not readable by 6.8
QR code generation
I'm struggling to understand the rather messy BarCodeBuilder class.
The javadoc for method setGraphicsUnit() vaguely refers to some System.Drawing.GraphicsUnit for which I cannot find any information.
Please direct me to the relevant documentation.
Thanks
Mario
Arial font size 10 and 12 not displaying text correctly
Cannot read Barcode from PDF
I am not able to read the barcode (Code39Standard) in the attached PDF. We have no control over the PDFs we receive or the barcodes included.
Using other products I am able to read the barcode. Using the PdfExtractor code that I have seen in a few other posts to this forum.
Code128 GetCodeText error?
Are appid and sid visible in barcode URL?
Transparent Background Problem
BarCodeBuilder builder = new BarCodeBuilder(); builder.GraphicsUnit = GraphicsUnit.Pixel; builder.SymbologyType = Symbology.QR;
builder.CodeText = "1"; builder.CodeLocation = CodeLocation.None; builder.AutoSize = false; builder.BarHeight = 250; builder.ImageQuality = ImageQualityMode.Default; builder.CaptionAbove.Visible = false; builder.CaptionBelow.Visible = false; builder.BackColor = Color.Transparent; builder.QRErrorLevel = eBABarcodeGenerator.QRErrorLevel.LevelH; builder.QREncodeMode = eBABarcodeGenerator.QREncodeMode.Auto;Bitmap code = builder.GetCustomSizeBarCodeImage(new Size(250, 250), false); code.Save(@"c:\e39.png", System.Drawing.Imaging.ImageFormat.Png);return code;
If I use like this result is like 1.png.
If I change the BackgroundColor = Color.FromArgb(254, Color.White) result is like 2.png
If I change the BacgroundColor = Color.White-Or Color.FromArgb(255, anyColor)- result is like 3.png
But I want to create a barcode like 3.png but transparent. What can i do?
PDF417 not recognised (version 6.8.0.0)
We have PDF417 barcode with special encoded string in some documents, and this barcode doesn't recognised by Aspose.BarCode.Toolkit.exe. see example in attachment.
Some applications can read this image on my android phone, so this barcode is valid.
We want to decode some paper docs in our applications and looking for working SDK now.
Issues with OneCode always giving us the same barcode
Barcode XDimension
I'ved tried the following code sample to create barcodes with different XDimension setting:
//Instantiate barcode objectBarCodeBuilder bb = new BarCodeBuilder();//Set the Code text for the barcodebb.CodeText = "1234567";//Set the symbology type to Code128bb.SymbologyType = Symbology.Code128;//Set the X-Dimension for the bars of the barcodebb.xDimension = 0.5f;//Set the measuring unit of barcode to millimeterbb.GraphicsUnit = System.Drawing.GraphicsUnit.Millimeter;//Save the image to your system//and set its image format to Jpegbb.Save("barcode5.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);
I used xDimension 0.3f (barcode3.jpg), 0.5f (barcode5.jpg) and 0.7f (barcode7.jpg).
The resulting images for 0.3 and 0.5 are identical, and also 0.7 doesn't match with the illustration here: http://www.aspose.com/docs/display/barcodenet/Manage+X+Dimension+and+Y+Dimension
I've used the latest version.
Not reading all Code128 Barcodes
In the attached document we are not reading all barcodes. What we are reading is:
Barcode found: BA0693955^ILDSR ^RB^04/09/12 MILLER DISTRIBUTING LLC ^ - on page 1
Barcode found: BA0693955^CADEC ^RB^04/09/12 MILLER DISTRIBUTING LLC ^ - on page 2
Barcode found: BA0693955^BA4BATCH^RB^12-13^ - on page 5
Barcode found: BA0693955^BA1322 ^RB^12-13^ - on page 8
Barcode found: BA0693955^CMDS02 ^RB^04/09/12 MILLER DISTRIBUTING LLC ^ - on page 10
Barcode found: BA0693955^IMSCH ^RB^12-13^ - on page 11
Barcode found: BA0693955^NBABATCH^RB^12-13^ - on page 12
Barcode found: '? - on page 13
Barcode found: '? - on page 20
Barcode found: BA0693955^MCS90 ^RB^12-13^ - on page 24
The barcodes that should have been read are:
Barcode found: BA0693955^ILDSR ^RB^04/09/12 MILLER DISTRIBUTING LLC ^ - on page 1
Barcode found: BA0693955^CADEC ^RB^04/09/12 MILLER DISTRIBUTING LLC ^ - on page 2
Barcode found: BA0693955^BA4BATCH^RB^12-13^ - on page 5
Barcode found: BA0693955^BA1322 ^RB^12-13^ - on page 8
Barcode found: BA0693955^CMDS02 ^RB^04/09/12 MILLER DISTRIBUTING LLC ^ - on page 10
Barcode found: BA0693955^IMSCH ^RB^12-13^ - on page 11
Barcode found: BA0693955^NBABATCH^RB^12-13^ - on page 12
Barcode found: BA0693955^NBCBATCH^RB^12-13^ - on page 22
Barcode found: BA0693955^MCS90 ^RB^12-13^ - on page 24
The barcode on page 22 is not being read.
The following is the code that I am using
Document pdfDocument = new Document(filename);
int pageCount = pdfDocument.Pages.Count;
for (var page = 1; page <= pageCount; page++)
{
Aspose.Pdf.Facades.PdfConverter converter = new Aspose.Pdf.Facades.PdfConverter();
converter.BindPdf(filename);
converter.RenderingOptions.BarcodeOptimization = true;
converter.StartPage = page;
converter.EndPage = page;
converter.Resolution = new Aspose.Pdf.Devices.Resolution(300);
converter.DoConvert();
MemoryStream stream = new MemoryStream();
converter.GetNextImage(stream, ImageFormat.Png);
using (BarCodeReader barcodeReader = new BarCodeReader(stream, BarcodeData.BarcodeSymbology))
{
if (BarcodeData.VerifyChecksum)
barcodeReader.ChecksumValidation = BarcodeData.ChecksumValidate;
while (barcodeReader.Read())
{
barcodesByPage = new AsposeBarcodesByPage();
barcodesByPage.Barcode = barcodeReader.GetCodeText();
barcodesByPage.Page = page;
barcodesColl.Add(barcodesByPage);
}
}
converter.Close();
converter.Dispose();
}
error when RecognizeBarCodeFromMultipageTiff using vs2012 C#
Bar Code random numbers
Incorrect GIF produced by Aspose BarCode
the attached QR code in GIF format has been produced by Aspose BarCode.
The byte at position 0xB is the background color index. Since the byte at position 0xA indicates the presence of a global color table, the background color index must be valid. However, the global color table only has 2 entries (6 bytes) while the background color index is 0xFF, which is plainly out of range.
Please either eliminate the global color table altogether or ensure that the background color index is correct.
Regards
Mario