"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Introducing STRICH: Barcode Scanning for Web Apps

Introducing STRICH: Barcode Scanning for Web Apps

Posted on 2025-03-22
Browse:304

Efficient and convenient web barcode scanning: Use STRICH library to build web applications

This article will introduce how to use the STRICH JavaScript library to implement real-time one-dimensional/two-dimensional barcode scanning function in web applications, and explain the advantages of barcode scanning of web applications over native applications.

Introducing STRICH: Barcode Scanning for Web Apps

Core advantages of STRICH library:

]
  • Real-time scan: The STRICH library supports all commonly used one-dimensional and two-dimensional barcode types and uses WebGL and WebAssembly technologies to achieve efficient and reliable scanning.
  • Simplify development: Simplify development for a single platform (Web browser), simplifies the development process and reduces development costs.
  • Easy deployment: No App Store audit required, the deployment is simple and fast, and can be updated at any time, avoiding the problem of publishing and updating native applications.
  • User-friendly: Built-in user-friendly features such as camera selection, touch focus and flash in low light conditions.

Traditional barcode scanning relies on dedicated scanning devices to transfer data to applications via cable or Bluetooth connection. Nowadays, the popularity of smartphones allows developers to directly use their mobile phone cameras to scan barcodes and directly associate them with cloud data. For example: equipment maintenance records, parcel delivery status update, return processing, etc.

Introducing STRICH: Barcode Scanning for Web Apps

Advantages of choosing a web application barcode scanning:

  • Simplified development: No need to develop for iOS and Android platforms respectively, just maintain a set of code.
  • Easy distribution: No App Store or Google Play review required, it is deployed directly, convenient and fast.
  • Avoid application fatigue: Users do not need to install additional applications to improve user experience.

Usage of STRICH library:

]
  1. Get the license key: Create an account in the customer portal and start a free trial to obtain the license key.
  2. Add SDK: Use npm to install @pixelverse/strichjs-sdk.
  3. Initialize SDK: In the application startup code, use the StrichSDK.initialize() method to initialize the SDK and pass in the license key.
  4. Configure the barcode reader: Use the BarcodeReader class to configure the barcode reader, specifying the scan area and supported barcode types.
  5. Handle barcode detection: Implement the barcode detection event handler and process scanning results.

Introducing STRICH: Barcode Scanning for Web Apps

Example of building barcode scanning application: Ticket Scanner

]

A simple ticket scanner application, including title, scan area, data display area (ticket number, holder information) and operation buttons (confirm, reject).

Introducing STRICH: Barcode Scanning for Web Apps

Summarize:

STRICH library makes it easy to build barcode scanning functions in web applications. Web applications have significant advantages in development, deployment and user experience, especially for applications used internally. Combined with the powerful features of the STRICH library, developers can quickly and efficiently create user-friendly barcode scanning applications.

Introducing STRICH: Barcode Scanning for Web Apps

(This article was written in collaboration with Pixelverse. Thanks to the partners who support SitePoint.)

]

Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3