We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

No recognize barcode in java

No recognize barcode in java.
img:

https://docs.google.com/leaf?id=0B2LxISwbHw3MMGIwNjIyMWItMjI4Mi00YTBjLTkzNDItZDMyMDEzNjViZmM2&hl=en_US

minimum resolution?

Hi Alcides,


Thank you for your interest in Aspose products.

In my personal experience, all the images having resolution of 300dpi or more, get easily scanned by Aspose.BarCode component. Also, I have confirmed this from the development end and according to them the minimum recommended resolution required to successfully scan a barcode from an image is 300dpi. Please note, with low resolution you may require to set RecognitionHints

Regarding the image provided by you, I am unable to scan a single barcode from it. I believe that the image has a resolution of 96dpi. Can you please provide a sample that has been scanned on some higher resolution?

Regards,
the component can be configured to perform an extensive search?

we use a resolution of 200 dpi, at the request of the customer.

List ol = new ArrayList();
ol.add(RecognitionHints.OrientationHints.getLeftToRight());
ol.add(RecognitionHints.OrientationHints.getRightToLeft());
ol.add(RecognitionHints.OrientationHints.getDownToTop());
ol.add(RecognitionHints.OrientationHints.getTopToDown());
for(OrientationHints hints:ol){
BarCodeReader b = new BarCodeReader(bi,BarCodeReadType.getCode128());
b.setHints(hints);
while (b.read() == true)
{
// Barcode found. Print result on screen
System.out.println("Barcode found. Codetext: " + b.getCodeText());
BarCode code=new BarCode( b.getCodeText());
if(!codes.contains(code))
codes.add(code);
}

With the bar code reader, if you recognize the bar code on the physical document.

300dpi full color

https://docs.google.com/open?id=0B2LxISwbHw3MZmI2OTNkN2QtN2QyOC00ZjI0LWE4OTMtY2RiNmVlYzc0OTMy
300dpi gray scale
https://docs.google.com/open?id=0B2LxISwbHw3MYTA4MDU5ZTgtZGI0Zi00NDBhLWFlYTMtYWFkZjA4MmMwODgz

Hi,


Thank you for providing more samples. You may have increased the resolution of your recent samples but the image quality of barcode label has decreased. The barcode bars are not distinguishable in both images. Please note, there are several other factors contributing in scan failure, like presence of noise in the image, skewness of barcode label, punch holes/white spots etc. Severity of one such factor or a combination of two or more makes it difficult for the BarCodeRecognition algorithm to scan a barcode properly.

Please find attached a sample image. It has several barcodes that you can try to recognize using the Aspose.BarCode for Java. It will also give you an idea of required image quality.

Please note that you can perform extensive scanning by setting the customized scan strength to 100 as below,

Java
reader.setCustomizedScanStrength(100);