neoScan2
QR and Barcode real time reader based on:
https://github.com/mebjas/html5-qrcode
Sample App:
https://visualneo.com/tutorials/neoscan2
Be sure the target Container object is big enough or has property overflow-y set to auto value
Description
The neoScan2 plugin for VisualNEO Web extends the functionality of QR code and barcode scanning, offering real-time scanning capabilities via the device’s camera. This plugin is based on the html5-qrcode library and is well-suited for applications that require instant code reading, such as retail checkouts, event access, or interactive experiences. Here’s a detailed look at its primary features and practical applications:
Real-Time QR Code and Barcode Scanning
The neoScan2 command activates the camera to scan QR codes or barcodes, returning the scanned data in real time to a specified variable, with an optional callback function.
- Command: neoScan2
- Syntax: neoScan2 "objId" resultVar callback
- objId: Container or object to display the camera feed for scanning.
- resultVar: Variable to store the decoded data.
- callback: Optional subroutine to execute once a scan is successful.
Example:
neoScan2 "cameraContainer" "[scanResult]" "onScanComplete"
This command initiates live scanning in cameraContainer, storing results in scanResult, and triggers the onScanComplete subroutine upon a successful scan.
Setting the Interface Language
To accommodate a multilingual user base, neoScan2Language customizes the interface language of scanning prompts, enabling a localized experience.
- Command: neoScan2Language
- Syntax: neoScan2Language language
- language: Language code for interface text (e.g., "en" for English).
Example:
neoScan2Language "fr"
This sets the scanning interface to French, offering a tailored experience for French-speaking users.
Practical Applications
The neoScan2 plugin is highly adaptable and can be used in:
- Retail and Checkout Systems: Enabling quick barcode scanning for inventory and sales transactions.
- Event Management: Allowing contactless entry by scanning attendee QR codes.
- Educational Tools: Using real-time scanning for interactive learning activities, such as scavenger hunts or quizzes.
With real-time scanning capabilities and multi-language support, the neoScan2 plugin enhances VisualNEO Web applications by providing an interactive, seamless scanning experience.
neoScan2
Purpose: |
Read QR information from camera or image |
Category: |
neoScan2 |
Syntax: |
neoScan2 "objId" resultVar callBack
objId Select Container object resultVar Variable to store result callBack Callback subroutine (optional) |
neoScan2Language
Purpose: |
Set user interface language |
Category: |
neoScan2 |
Syntax: |
neoScan2Language language
language Desired language |
Created with the Personal Edition of HelpNDoc: Upgrade your help files and your workflow with HelpNDoc's WinHelp HLP to CHM conversion