目录

About This Kit

Scan Kit provides a system-level barcode scanning service that collaborates software and hardware. It innovatively introduces a simpler "scan-to-access" capability. You can utilize the system's scanning capability to achieve seamless redirection to your app with minimal integration workload, eliminating the need to develop a dedicated code scanning module within your app itself. The kit also offers barcode recognition and barcode image generation capabilities for all kinds of scenarios in your app.

Leveraging multiple computer vision technologies and AI algorithms, Scan Kit can automatically scan barcodes that are far away from the camera and recognize barcodes in low-light environments as well as barcodes that are damaged, unclear, or in a hard-to-read position for accurate scanning in all kinds of environments. This leads to a higher barcode recognition rate and improved user experience.

To make it easier for you to integrate the capability, a detailed sample project is provided for your reference.

Use Cases

Scan Kit provides various capabilities, including scan-to-access and in-app barcode scanning. You need to integrate the scan-to-access capability first to achieve one-step direct access to your app service with minimal effort.

Scan Kit supports recognition and generation for barcodes of 13 mainstream types in the world, as well as recognition for multifunctional codes. Currently, the following barcode types are supported: QR Code, Data Matrix, PDF417, Aztec, EAN-8, EAN-13, UPC-A, UPC-E, Codabar, Code 39, Code 93, Code 128, and ITF-14.

Constraints

[h2]Supported Devices

[h2]Function Restrictions

Capability Restriction
Scan-to-access capability

1. This capability currently supports only HTTPS-based links. If you need to use other access modes, such as HTTP, submit a ticket to contact us.

2. Currently, this capability is available only in the Chinese mainland.

Barcode scanning by default UI The isDefaultScanSupported API can be called to check whether a device in use supports barcode scanning on the default UI since API version 26.0.0. The title can be dynamically displayed based on the setting of scanTypes in ScanOptions since API version 6.1.0(23). The floating window and split-screen scenarios are supported since API version 6.0.0(20). Gallery-based barcode scanning can only recognize one barcode at a time. The default UI does not support custom settings.
Barcode scanning by custom UI The isCustomScanSupported API can be called to check whether a device in use supports barcode scanning on a custom UI since API version 26.0.0. This capability requires the camera permission and needs you to implement the interactive scanning UI by yourself.
Barcode image generation If the data that Scan Kit recognizes from a barcode image generated based on a byte array is garbled characters, a dedicated decoder is required to decode the byte array. Such cases include barcode recognition of subway turnstiles.

Emulator Support

This kit supports the Emulator, but there are some differences in feature support between real devices and the Emulator:

Sample Code

Scan Kit provides the sample code related to functions including barcode scanning by default UI, barcode scanning by custom UI, image-based barcode recognition, and barcode image generation. You can refer to the sample code to implement desired functions.