
This component scans the bar code by calling the camera to obtain the bar code content bar code/QR code
BootstrapBlazor.BarCode
, which needs to reference its component package when using this componentBootstrapBlazor.BarCode
componentdotnet add package BootstrapBlazor.BarCode
<PackageReference Include="BootstrapBlazor.BarCode" Version="7.0.0" />
Install-Package BootstrapBlazor.BarCode
Pay special attention to:
- The site wants to enable
https
, which is required by browser vendors - The bar code recognition rate is related to the pixel, bar code size and mobile phone execution efficiency
The code is identified by the camera
Demo
How to do this:
- Tap to start turning on the camera
- Scan the barcode
- Click the close button to turn off the camera
Scan code recognition with still pictures
Demo
How to do this:
- Click the code to pop up the selection file box
- Select a picture that contains barcodes
- Start recognizing barcodes
Attributes
B station related video link
交流群