Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yushulx/dotnet-maui-blazor-barcode-scanner
.NET MAUI Blazor barcode reader & scanner built with Dynamsoft JavaScript Barcode SDK
https://github.com/yushulx/dotnet-maui-blazor-barcode-scanner
barcode blazor code128 code39 datamatrix dotnet maui-blazor pdf417 qrcode
Last synced: 3 months ago
JSON representation
.NET MAUI Blazor barcode reader & scanner built with Dynamsoft JavaScript Barcode SDK
- Host: GitHub
- URL: https://github.com/yushulx/dotnet-maui-blazor-barcode-scanner
- Owner: yushulx
- Created: 2023-04-11T08:12:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-25T06:57:26.000Z (4 months ago)
- Last Synced: 2024-10-09T08:08:37.450Z (4 months ago)
- Topics: barcode, blazor, code128, code39, datamatrix, dotnet, maui-blazor, pdf417, qrcode
- Language: C#
- Homepage: https://www.dynamsoft.com/codepool/dotnet-maui-blazor-barcode-reader-scanner.html
- Size: 297 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# .NET MAUI Blazor Barcode Scanner
This repository contains a .NET MAUI (Multi-platform App UI) Blazor application that allows users to scan barcodes using their device's camera. The application uses the [Dynamsoft JavaScript Barcode SDK](https://www.npmjs.com/package/dynamsoft-javascript-barcode) to decode 1D and 2D barcodes.## Supported Platforms
- Windows
- macOS
- Android
- iOSTo run the application on your web browser, please visit [https://github.com/yushulx/blazor-barcode-qrcode-reader-scanner](https://github.com/yushulx/blazor-barcode-qrcode-reader-scanner).
**Known Issue**
`WKWebView` does not support `getUserMedia()` on macOS.
![.NET MAUI blazor barcode scanner software](https://www.dynamsoft.com/codepool/img/2023/04/maui-macos-webview-camera-error.png)
## Prerequisites
- Obtain a [30-day trial license](https://www.dynamsoft.com/customer/license/trialLicense/?product=dcv&package=cross-platform).
## How to Use
1. Set the license key in `wwwroot/jsInterop.js`:
```js
Dynamsoft.DBR.BarcodeReader.license = "DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTE2NDk4Mjk3OTI2MzUiLCJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSIsInNlc3Npb25QYXNzd29yZCI6IndTcGR6Vm05WDJrcEQ5YUoifQ==";
```
2. Launch the application.
![.NET MAUI blazor barcode scanner software](https://www.dynamsoft.com/codepool/img/2023/04/dotnet-maui-blazor-barcode-scanner.png)