Skip to main content

Scanning a Barcode from an Image | Windows Barcode Scanner

Scanning barcodes from still images

You can also detect barcodes from a still image (SoftwareBitmap) regardless of the image source (e.g. image picked from the file system, photo library, etc).

SoftwareBitmap bitmap = ... // e.g. a JPG file coming from a file picker
var Scanner = new BarcodeScanner();
BarcodeResult result = Scanner.Recognize(bitmap, configuration);

This approach returns a BarcodeResult object which contains a list of barcodes, each with a SoftwareBitmap containing a crop of the detected barcode, and, if something went wrong, a Scanbot.Model.ScanbotSdkException object with a message.

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get your free Trial License

What do you think of this documentation?

On this page

Scroll to top