Free Support Forum - aspose.com

Barcode recognition speed not satisfying

Hi, We are using evaluation to test the barcode recognition and it seems that it takes 3-4 seconds to recognize an image 1900x2400 pixels for CODE_39 barcode. Is this normal?

Here are some of the settings we were trying to apply:
BufferedImage imageToOCR = ImageIO.read(new File(“C:\GRO.png”));
BarCodeReader reader = new BarCodeReader(imageToOCR);

	reader.setBarCodeReadType( DecodeType.CODE_39_STANDARD);
	reader.setQualitySettings(QualitySettings.getHighPerformance());
	reader.getQualitySettings().setAllowOneDFastBarcodesDetector(true);
	reader.getQualitySettings().setMedianSmoothingWindowSize(4);
    reader.getQualitySettings().setAllowOneDFastBarcodesDetector(true);
    reader.getQualitySettings().setMedianSmoothingWindowSize(4);

@JanuszM,
Couple of seconds for recognition of barcode are normal. If you notice lot of time then share your template and output file for our analysis.

@JanuszM,
I’ve noticed that you are using median smoothing. It can be time consuming for big images and it’s often not necessary for normal quality images. You can try if it works for your images without median smoothing.