• Dynamsoft BarcodeReader SDK Java 9.6.30 Crack


    Dynamsoft BarcodeReader SDK is Barcode Scanning at a Speed of 500+ per Minute
    Fastest scanning and decoding in the industry that can be applied in distinct scenarios:

    Live video feed of multiple barcodes/QR codes
    PDF files in an automated desktop service
    Static images from high-resolution industrial cameras
    The scan of multiple barcodes at once function further boosts the already impressive scanning and decoding efficiency.

    Scan Challenging Barcodes and QR Codes
    Robust and reliable enterprise-grade barcode detection algorithm that excels even in the most challenging conditions:

    Multiple barcodes at once
    Curved surfaces
    Barcodes in motion
    High-density barcodes
    Low light and shadows
    Barcodes in any orientation
    Glare reflections
    Skewed and wide angles
    Blurred barcodes
    Inverted color barcodes
    Long distance
    Low-resolution cameras
    Incomparable Reading Rate and Accuracy
    With an astonishing 34.9% more barcode recognized than the industry’s 2nd best, Dynamsoft Barcode Reader SDK beats 6 QR Code libraries and ranks the 1st for best recognition rate in the performance test for decoding 1000+ QR Codes in 16 image quality categories.

     

    Getting Started with Java

    In this guide, you will learn step by step on how to build a barcode reading application with Dynamsoft Barcode Reader SDK using Java.

    Requirements

    • Operating systems:
      • Windows 7, 8, 10, 11
      • Windows Server 2003, 2008, 2008 R2, 2012, 2019, 2022
      • Linux x64 (Ubuntu 14.04.4+ LTS, Debian 8+, etc.)
      • Linux arm 64bit
      • macOS x64: 10.12+
      • macOS ARM: 11+
    • Developing Environment:
      • JDK 1.7 and above

    Note: Dynamsoft Barcode Reader provides both online and offline license options. The online license option might not work in an environment that doesn’t have network connection. In such case, you can get an offline trial license key via Customer Portal or by contacting us.

    Installation

    If you haven’t downloaded the SDK yet, download the Java Package now from Dynamsoft website and unpack the package into the directory of your choice.

    For this tutorial, we unpack it to [INSTALLATION FOLDER], change it to your unpacking path for the following content.

    Build Your First Application

    Let’s start by creating a console application which demonstrates how to use the minimum code to read barcodes from an image file.

    You can download the entire source code here.

    Create a New Project

    1. Open Eclipse. Go to File > New > Project, create a new Java project DBRJavaSample.

    2. Add a new Class named DBRJavaSample into the project.

    Add the Library Reference

    1. Right click on Project -> Properties > Java Build Path > Libraries > Add external JARs, Browse to [INSTALLATION FOLDER]\lib and Select dynamsoft-barcodereader-{version number}.jar.

    2. Import the package in the file DBRJavaSample.java

      import com.dynamsoft.dbr.*;
      

    Initialize a Barcode Reader Instance

    1. Initialize the license key.

       BarcodeReader.initLicense("<insert DBR license key here>");
      

      Please replace  with a valid DBR licensekey. There are two ways to obtain one:

      • Search initLicense and find the license from [INSTALLATION FOLDER]/samples/BarcodeReaderDemo/src/com/dynamsoft/demo/BarcodeReaderDemo.java.
      • Request a trial license from Customer Portal.
    2. Create an instance of Dynamsoft Barcode Reader.

      1. BarcodeReader reader = BarcodeReader.getInstance();
      2. if(reader != null)
      3. {
      4. // Add your code here to call decoding method, process barcode results and so on
      5. // ...
      6. // Recycle the instance
      7. reader.recycle();
      8. }

    Configure the Barcode Scanning Behavior (OPTIONAL)

    1. Set barcode format and count to read.

      1. PublicRuntimeSettings runtimeSettings = reader.getRuntimeSettings();
      2. runtimeSettings.barcodeFormatIds = EnumBarcodeFormat.BF_ONED | EnumBarcodeFormat.BF_QR_CODE;
      3. runtimeSettings.barcodeFormatIds_2 = EnumBarcodeFormat_2.BF2_POSTALCODE | EnumBarcodeFormat_2.BF2_DOTCODE;
      4. runtimeSettings.expectedBarcodesCount = 10;
      5. reader.updateRuntimeSettings(runtimeSettings);

      The barcode formats to enable is highly application-specific. We recommend that you only enable the barcode formats your application requires. Check out Barcode Format Enumeration for full supported barcode formats.

      If you know exactly the barcode count you want to read, specify expectedBarcodesCount to speed up the process and improve the accuracy.

      The Barcode Reader SDK comes with a large array of runtime settings to optimize the performance of the library. To learn about all the runtime settings, please visit the RuntimeSettings API page. To learn more about the cases and situations in which the settings can help, please visit the Explore Features page.

    Decode and Output Results

    1. Decode barcodes from an image file.
    2. Get and output barcode results.

      1. try
      2. {
      3. TextResult[] results = reader.decodeFile("[INSTALLATION FOLDER]/images/AllSupportedBarcodeTypes.png", "");
      4. if (results != null && results.length > 0) {
      5. System.out.println("Total barcodes found: " + results.length);
      6. for (int iIndex = 0; iIndex < results.length; iIndex++)
      7. {
      8. System.out.println("Barcode " + (iIndex + 1));
      9. System.out.println(" Barcode Format: " + results[iIndex].barcodeFormatString);
      10. System.out.println(" Barcode Text: " + results[iIndex].barcodeText);
      11. }
      12. }
      13. }
      14. catch (BarcodeReaderException exp)
      15. {
      16. System.out.println(exp.getMessage());
      17. }

      For the error handling mechanism, the SDK throws BarcodeReaderException for each function. You should add codes for exception handling based on your needs.

      The SDK returns multiple barcode information, including barcode count, barcode format, barcode text, location, barcode raw data, etc. Check out TextResult for full supported result data.

    Release Resource

    1. Destroy the instance to release all resources.

      1. if(reader != null)
      2. {
      3. reader.recycle();
      4. }
  • 相关阅读:
    2216. 美化数组的最少删除数 --力扣 --JAVA
    Admin.NET源码学习(3:LazyCaptcha使用浅析)
    定时器实现原理——时间轮
    6.nodejs--promise、async-await
    vm options、program arguments、environment property
    做得好 vs 做得快?
    第5章 链路层--单元测试--计算机网络
    AI图书推荐:ChatGPT等生成式AI在高等教育中的应用
    c++11 智能指针 (std::unique_ptr)(二)
    【路径规划】基于FMM快速行进法实现船舶路径规划附matlab代码
  • 原文地址:https://blog.csdn.net/john_dwh/article/details/134454368