- Using Barcode Reader
- When I scan barcodes, why are the barcode results marked with asterisks (*)?
- Why does it return strange characters (messy code, gibberish, or non-printable) as a result?
- How to get the “result image” with overlays once barcodes are found in the image?
- The barcode reader SDK sometimes return false results with four or less characters. How to avoid it?
- Can I scan barcodes on US Driver’s Licenses?
How to find my license key for the full version?
You can find the license key from the license email. It is also available under the “License Center” -> “Barcode Reader SDK” section inside your Dynamsoft account.
Does Dynamsoft Barcode Scanner SDK require an Internet connection?
For web applications, it doesn’t require any Internet connection.
For mobile apps, the device must go online to complete the device registration for the first time of using the barcode scanning feature. Afterwards, the mobile device can work offline until the current runtime license key expires.
For desktop applications, an Internet connection is required the first time the device opens the barcode scanner (i.e. the InitLicenseFromServer() method is executed). After the device connects to our license server successfully, you can use the OutputLicenseToString API to get the information of the license and store the information to the device. Afterwards, you can use initLicenseFromServerContent API to use the SDK in offline mode. For more information, please refer to this article.
When does a device counts as an activated device?
Invoking InitLicenseFromServer() method automatically activated the device.
For an environment with no internet connection allowed, can I use your barcode reader SDK?
Yes. You can follow the instruction here to manually register the device. For enterprise customers who can't manually register devices, we offer a few flexible options, please contact Dynamsoft for details.
Using Barcode Reader
When I scan barcodes, why are the barcode results marked with asterisks (*)?
Your trial license has expired or you don’t have a valid license key included in the code. You can log into the customer portal to generate a free 30-day trial license or purchase a full license on the Online Store.
Check out Dynamsoft Barcode Reader SDK Edition Comparison to identify the right product/edition.
Why does it return strange characters (messy code, gibberish, or non-printable) as a result?
Some barcodes are encoded with non-printable characters (such as \0) or other different types (UTF-16, GB2312, etc.). We are using UTF-8 encoding type in our sample applications for demonstration purposes. In your application, you need to use BarcodeBytes to get the raw data and then convert it to the desired encoding instead of using BarcodeText directly.
How to get the “result image” with overlays once barcodes are found in the image?
It is possible to get the resulting image with overlays. When a barcode is found, our library will not only return the barcode text, but also the coordinates of the barcode. You can add a rectangle on the barcode to highlight it so that users know which barcode is being scanned.
The barcode reader SDK sometimes return false results with four or fewer characters. How to avoid it?
You may get results with four or fewer characters for Industrial_25 and ITF barcode symbologies. This is because these two symbologies have weak error protection and checksum. To avoid such cases, you can try:
- Use MinResultConfidence to filter out barcode results having Confidence of less than 35. The Confidence tells us how confident it is about the decoding result. The value ranges from 0 (uncertain) to 100 (100% correct).
- Use MinBarcodeTextLength to set a minimum character length for the barcode results. For more information to filter out unwanted barcode results, please refer to this article.
Can I scan barcodes on US Driver’s Licenses?
Yes, the barcode on US Driver’s Licenses is a PDF417 code and can be scanned with our library. The result is returned in raw data and you’ll need to parse it into human-readable formats.