Can we read barcode from the image captured through phone camera

Hi team ,

I have downloaded Aspose using NuGet packages (3.4.1.9004) for VS 2015 (version 18.6.0.0) and it’s reading barcode from uploaded barcode image .

But we have two issues .

Issue 1. It’s only reading Code39 standard and getting error Evaluation limit if we try to Upload other standard like Code128.

Issue 2 : It’s work fine when we upload barcode imagebut not reading when we took photo of the barcode through phone and try to upload that image ?

Kindly help on this , is this license issue or any thing we are missing ?

Below is the code .

if (file.ContentLength > 0)
{
var fileName = Path.GetFileName(file.FileName);
path = Path.Combine(Server.MapPath("~/App_Data"), fileName);
file.SaveAs(path);
}

            // Now we try to read the barcode
            // Instantiate BarCodeReader object
            BarCodeReader reader = new BarCodeReader(path, DecodeType.Code39Standard);
            System.Drawing.Image img = System.Drawing.Image.FromFile(path);
            System.Diagnostics.Debug.WriteLine("Width:" + img.Width + " - Height:" + img.Height);
           
            try
            {
                // read Code39 bar code
                while (reader.Read())
                {

                    // detect bar code orientation
                    ViewBag.Title = reader.GetCodeText();
                    barcode = reader.GetCodeText();
                }
                reader.Close();
            }

Thanks

@sundarl,

We are working over this query and will get back to you soon with our findings.

@sundarl,

Thank you for your inquiry. Following are the details:

Answer to issue #1: API allows reading only Code39 Standard barcode in the non-license version. That is why it is reading only Code39 Standard barcode and showing evaluation limitation error upon reading other symbologies. Please note that complete features can be tested by using the temporary license for 30 days. Get a temporary license, use in your project and share the feedback.

Answer to issue #2: This should work fine and recognize the barcde. Because API need an image as an input and it dose not know whether it is captured using smart phone or from any other source. Please share the sample input barcode image that you are using at your end. We will look into it and update you about our findings.