Skip to content

Live playground

The parameters of <BbScanner> in one place. Changes apply to the running scanner without dropping the camera, except where a setting says otherwise. Camera selection, AcceptResult, the texts and the overlays each have a page of their own: camera, lifecycle and customisation.

Live Idle
Ready

Frame diagnostics

Frame 0.00 ms
Headroom 0 fps
Decoded size 0×0
Scan lines 0
Grayscale 0.00 ms Binarise 0.00 ms Matrix 0.00 ms Linear 0.00 ms

Formats

Narrowing the set is the cheapest speed-up available: an unused symbology costs nothing because its decoder is never created, and it is the main guard against a misread between similar linear symbologies.

Capture

Advanced tuning

Everything here is a property of BbScannerOptions, passed through the Options parameter. Formats, Region and an explicitly set DuplicateSuppressionWindow are still applied on top of it, so the common cases never need it.

Try harder and inverted symbols cost time on every frame, so they are off for live scanning and on for still images. Reading right to left is cheap and needed for a symbol held upside down; scanning columns, for one held sideways, costs about as much as the row pass. Both are on by default. An add-on is always read into Metadata.Extension when it is there; requiring it only holds back a symbol whose add-on has not been read yet.

Chrome

What the component draws over the video. Each is a bool parameter, and each can be turned off to build your own interface around the scanner.

The Clear log button in the control bar is this page's own, added through ControlsContent; the badge naming the last symbology over the video is ChildContent.

Feedback

Feedback takes BbScanFeedback.Vibrate, Beep or both. Browsers only sound a tone after the user has interacted with the page, and Safari does not vibrate, so the outline and the screen reader announcement always come too.

Programmatic control

The same operations the built-in controls perform, driven from the page through a @ref to the scanner, plus ResetDuplicateFilter, which forgets the values already reported so the one in view is reported again.

Results

0 total
Nothing scanned yet. Point the camera at a barcode, or use the sample codes.
An unhandled error has occurred. Reload 🗙