How to scan, read barcode from image target regions?

How to scan, read, decode barcode from image target regions using C# in ASP.NET Core web app and Windows application?

Using Free C# Souce Code to read, decode barcode from image specified regions for ASP.NET Web Application & IIS Projects



The following content will instruct you hwo to read and scan the barcodes from one or multiple target regions in the barcode image using C# code.






Common Asked Questions

How to scan specified regions inside the barcode image in C#?

You can define a rectangle inside an image by creating a SRegion object with two points coordinates (x, y) values passed. The two positions specify the positions of opposite vertices of the rectangle. Then pass all defined SRegion objects to scan options by calling method SetScanRegions().

How to accurately define the region position information for barcode reading in C#?

The coordinate values are expressed as the percentage of the image width and height. The origin (0,0) of the coordinate system is the upper left point of the image. The point (100, 100) is the bottom right point of the image. You can use Windows installed picture application, such as Microsoft Paint to find the rectangle region coordinates.

Can I specify the barcode scanning directon on crop regions using C#?

Yes. You can specify the barcode scanning direction on the crop regions using C# Barcode Reader library. You can specifiy the scanning directions through property ScanDirection, call method SetScanRegions() to define the crop regions inside the barcode image in C# project.

Will barcode scanning on partail image improve the barcode reading performance?

Yes. The barcode reading on partial image can improve the barcode reading performance by occupying less memory resources, and reducing image scanning time. It will significantly improve the barcode reading speed on high resolution images.

Can I combine barcode crop region with other scanner options in C#?

Yes. You can customize and apply other scanning options (such as scan step interval, image filters, multithreading) with barcode crop regions scanning to improve the reading performance in C# ASP.NET, MVC, WinForms and WPF applications.

When should I define crop regions for barcode reading?

Partial image barcode scanning is valuable when processing high resolution images, multiple pages document, low quality barcode images with noises, multiple barcodes with different formats. Barcode scanning on specified crop regions will greatly improve the barcode reading performance using C# Barcode Reader component.




































Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.