CapCognition.Net.BarcodeScanning 2.2.1

dotnet add package CapCognition.Net.BarcodeScanning --version 2.2.1
                    
NuGet\Install-Package CapCognition.Net.BarcodeScanning -Version 2.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CapCognition.Net.BarcodeScanning" Version="2.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CapCognition.Net.BarcodeScanning" Version="2.2.1" />
                    
Directory.Packages.props
<PackageReference Include="CapCognition.Net.BarcodeScanning" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CapCognition.Net.BarcodeScanning --version 2.2.1
                    
#r "nuget: CapCognition.Net.BarcodeScanning, 2.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CapCognition.Net.BarcodeScanning@2.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CapCognition.Net.BarcodeScanning&version=2.2.1
                    
Install as a Cake Addin
#tool nuget:?package=CapCognition.Net.BarcodeScanning&version=2.2.1
                    
Install as a Cake Tool

Barcode and QR-Code Recognition

High-performance recognition of 1D and 2D barcodes with support for multi-barcode detection (multiple barcodes per image).
Recognized content can optionally be displayed as an overlay.

Supported Formats

  • Aztec
  • Codabar
  • Code39
  • Code93
  • Code128
  • DataMatrix
  • EAN-8
  • EAN-13
  • ITF
  • MaxiCode
  • PharmaCode
  • PDF417
  • QR Code
  • RSS14
  • RSS Expanded
  • UPC-A
  • UPC-E
  • UPC-EAN
  • MSI
  • IMB

Fluent API

Since version 2.1.0, a modern Fluent API is available to simplify configuration and integration of the barcode recognition workflow into your applications.
This makes setup more intuitive and reduces boilerplate code.

Licensing

This library can be used in trial mode.
The trial version is limited to a fixed number of recognition operations per application start.
Once the limit is reached, recognition will stop working until the application is restarted.

  • The trial version is intended for testing and development purposes only.
  • It is not intended for production use.
  • The trial version can be used without time limits.

For production deployments, a license must be purchased.

Examples

See .NET LTS examples at CapCognition GitHub.

Documentation

See Documentation for more details.

Platform Support

  • Windows x64
  • Linux 64-bit
  • Linux ARM 64-bit (e.g. Raspberry Pi OS)
    • Raspberry Pi OS 64-bit Bullseye (legacy)
    • Raspberry Pi OS 64-bit Bookworm

Only 64-bit operating systems are supported.


Release Notes

Version 2.2.1

  • Improved compatibility with the updated asynchronous processing lifecycle in CapCognition.Net.Core
  • Improved stability during parallel and continuous recognition

Version 2.2.0

  • .NET 10
  • AOT compilation support
  • Library initialization simplified
  • Continuous capturing and recognition switched to "Pull-Frame" mechanism for simpler and more efficient stream capturing

Version 2.1.5

  • Updated NuGet dependencies

Version 2.1.4

  • Multi-barcode detection performance improved
  • New Binarizer (AdaptiveHybridBinarizer) added for better QR recognition in distorted and blurry images
  • New QR Finder (ImprovedQRFinder) added for improved QR recognition in difficult conditions with shadows and low contrast
  • New QR Decoder (ImprovedQRDecoder) added for better QR recognition in difficult conditions and perspective distortions
  • Many speed optimizations and improvements for barcode recognition on ARM based systems (e.g. Raspberry Pi)

Version 2.1.3

  • option switch fixed and optimized

Version 2.1.2

  • Updated NuGet dependencies

Version 2.1.1

  • options made disposable and some tool functions added

Version 2.1.0

  • Added Fluent API for simplified configuration and integration

Version 2.0.2

  • Updated NuGet dependencies

Decoder updates

MaxiCode and PharmaCode are publicly selectable again, and MSI/PharmaCode work in mixed format selections. Plessey has no decoder and is no longer listed in the public format enum; MSI remains a separate supported format. Numeric values of the other formats are unchanged.

All formats means the publicly supported enum entries. Undefined numeric format values are rejected. MaxiCode expects an isolated, axis-aligned symbol; it does not add a general perspective detector. PharmaCode has no direction marker or checksum: reading it backwards may yield a different valid number. In mixed selections it runs after the other decoders, including on subsequent frames.

The scanner tries full images in all enabled rotations first. If those attempts fail, it searches quadrants and the centre. Disable this extra work using BarcodeRecognitionOptions.TryQuadrantFallback = false or the builder's SetTryQuadrantFallback(false).

QR results include mask, symbology identifier and corrected-error count metadata. Error counts are also returned for Aztec, Data Matrix, PDF417 and MaxiCode. Unsupported ECI encodings fail decoding rather than silently substituting UTF-8. Applications requiring legacy code pages should register their encoding provider before the first scan.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.1 137 10/18/2026
2.2.0 173 6/21/2026
2.1.5 147 2/23/2026
2.1.4 173 12/27/2025
2.1.3 198 10/18/2025
2.1.2 254 10/13/2025
2.1.1 192 8/23/2025
2.1.0 180 8/23/2025
2.0.2 264 6/22/2025
2.0.1 239 2/16/2025
2.0.0 233 1/22/2025
1.2.1 267 9/26/2024
1.2.0 240 5/12/2024
1.1.2 261 4/7/2024

BarcodeScanning