Barcode Image Quality

I am having trouble reading barcodes via a PWA on a mobile device? Is there a way I can improve the image before I send? or a specific height and width in px that works best?
I am currently using
byte[] bytes = Convert.FromBase64String(rawfile);
using (MemoryStream ms = new MemoryStream(bytes))
{
using (BarCodeReader read = new BarCodeReader())
{
read.SetBarCodeImage(ms);

                        foreach (BarCodeResult result in read.ReadBarCodes())

{
returnBarcodes = (result.CodeText) + “\r\n” + returnBarcodes;

  1. We optimized our barcode scanner to read images in 300 dpi, in this way resizing barcode to lower size (from 1200 to 300 dpi) can increase both speed and recognition result (barcode minimal cell/bar should be 3-4 pixels). We planned to detect barcode zoom with AI (Support Vector Machines) but we do not have ETA, this will be implemented in far future.

  2. You can set required barcode types to improve recognition speed and avoid fake recognitions like obsolete MSI barcodes
    Barcode Recognition Basics - Read Barcode from Image in C# .NET|Documentation

  3. Also you can try different presets and options:
    Recognition Quality Options and Presets|Documentation

Thank you. I will look into these options

William​ MacDonald
Arc Furnace Monitoring System Engineer
GrafTech International Holdings Inc.

St. Marys , Pennsylvania 15857

William.MacDonald@graftech.com