ZXing Blazor 扫码组件 / Barcode Scaner for Blazor 本项目是利用 ZXing 进行封装的 Blazor 组件库 直接调用手机或者桌面电脑摄像头进行扫码 1.ZXing Blazor 扫码组件 2.BarCodes 解码图片/QR码生成组件 3.Handwritten 手写签名组件 4.Viewer 图片浏览器 This project is a Blazor component library packaged with ZXing Directly call the mobile phone or desktop computer camera to scan the code Demo ssr https://zxingblazor.app1.es wasm https://zxingblazorwasm.app1.es Libs https://blazor.app1.es/barcodescanner #### Blazor 组件 [图片浏览器 Viewer](https://www.nuget.org/packages/BootstrapBlazor.Viewer#readme-body-tab) [手写签名 SignaturePad](https://www.nuget.org/packages/BootstrapBlazor.SignaturePad#readme-body-tab) [定位/持续定位 Geolocation](https://www.nuget.org/packages/BootstrapBlazor.Geolocation#readme-body-tab) [屏幕键盘 OnScreenKeyboard](https://www.nuget.org/packages/BootstrapBlazor.OnScreenKeyboard#readme-body-tab) [百度地图 BaiduMap](https://www.nuget.org/packages/BootstrapBlazor.BaiduMap#readme-body-tab) [谷歌地图 GoogleMap](https://www.nuget.org/packages/BootstrapBlazor.Maps#readme-body-tab) [蓝牙和打印 Bluetooth](https://www.nuget.org/packages/BootstrapBlazor.Bluetooth#readme-body-tab) [PDF阅读器 PdfReader](https://www.nuget.org/packages/BootstrapBlazor.PdfReader#readme-body-tab) [文件系统访问 FileSystem](https://www.nuget.org/packages/BootstrapBlazor.FileSystem#readme-body-tab) [光学字符识别 OCR](https://www.nuget.org/packages/BootstrapBlazor.OCR#readme-body-tab) [电池信息/网络信息 WebAPI](https://www.nuget.org/packages/BootstrapBlazor.WebAPI#readme-body-tab) [视频播放器 VideoPlayer](https://www.nuget.org/packages/BootstrapBlazor.VideoPlayer#readme-body-tab) #### AlexChow [今日头条](https://www.toutiao.com/c/user/token/MS4wLjABAAAAGMBzlmgJx0rytwH08AEEY8F0wIVXB2soJXXdUP3ohAE/?) | [博客园](https://www.cnblogs.com/densen2014) | [知乎](https://www.zhihu.com/people/alex-chow-54) | [Gitee](https://gitee.com/densen2014) | [GitHub](https://github.com/densen2014)
$ dotnet add package ZXingBlazorEnglish | Other Blazor components
This project is a Blazor component library packaged with ZXing, Support barcode, QR code, PDF417 format.
https://blazor.app1.es/barcodescanner
https://zxingblazorwasm.app1.es
https://www.nuget.org/packages/ZXingBlazor/

NuGet install pack
ZXingBlazor
_Imports.razor or Razor page
@using ZXingBlazor.Components
Razor page
Razor
https://github.com/densen2014/ZXingBlazor/blob/master/Demo.Server/Pages/Index.razor
<b>Result:</b>
<br />
<pre>@BarCode</pre>
<BarcodeReader ScanResult="ScanResult" />
@code{
/// <summary>
/// BarCode
/// </summary>
public string? BarCode { get; set; }
private void ScanResult(string e)
{
BarCode = e;
ShowScanBarcode = !ShowScanBarcode;
}
}
2023.12.2 v1.1.2
2023.11.14 v1.0.11
2023.11.5 v1.0.8
2023.11.1
2023.8.16
2022.11.23 Add optiones
2022.3.6
2021.5.13
本项目是利用 ZXing 进行封装的 Blazor 组件库, 支持条码,二维码,PDF417格式.
https://zxingblazor.app1.es https://zxingblazorwasm.app1.es https://blazor.app1.es/barcodescanner
https://www.nuget.org/packages/ZXingBlazor/
安装 NuGet 包
ZXingBlazor
_Imports.razor 或者 Razor 页面引用
@using ZXingBlazor.Components
Razor 页面代码
Razor
https://github.com/densen2014/ZXingBlazor/blob/master/Demo.Server/Pages/Index.razor
<b>Result:</b>
<br />
<pre>@BarCode</pre>
<BarcodeReader ScanResult="ScanResult" />
@code{
/// <summary>
/// BarCode
/// </summary>
public string? BarCode { get; set; }
private void ScanResult(string e)
{
BarCode = e;
ShowScanBarcode = !ShowScanBarcode;
}
}
2023.12.2 v1.1.1
2023.11.14 v1.0.11
2023.11.5 v1.0.8
2023.11.1
2023.8.16
2022.11.23 添加选项
2022.3.6
2021.5.13
今日头条 | 博客园 | 知乎 | Gitee | GitHub
