Skip to content

yushulx/dynamsoft-sdk-nodejs-REST-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js REST Endpoints for Dynamsoft SDKs

This repository demonstrates how to build RESTful APIs with Node.js for Dynamic Web TWAIN (Document Scanning), Dynamsoft Barcode Reader (Barcode Reading), Dynamsoft Label Recognizer (MRZ Recognition) and Dynamsoft Document Normalizer (Document Rectification).

nodejs-rest-endpoint-dynamsoft-sdk.mp4

Usage

  1. Request a 30-day FREE trial license here for different SDKs, and then update the license keys in the app.js file.

    // Dynamic Web TWAIN
    let parameters = {
        license: "LICENSE-KEY",
    };
    
    // Dynamsoft Barcode Reader
    barcode4nodejs.initLicense(
        "LICENSE-KEY",
    );
    
    // Dynamsoft Label Recognizer
    mrz4nodejs.initLicense(
        "LICENSE-KEY",
    );
    
    // Dynamsoft Document Normalizer
    docrectifier4nodejs.initLicense(
        "LICENSE-KEY",
    );
  2. Install Dynamsoft service for Dynamic Web TWAIN:

  3. Run the app:

    npm install
    npm start
  4. Open a web browser and visit http://localhost:3000/. image

Microsoft Power App Demo

The following API endpoints can empower low-code platforms.

  • /dynamsoft/dbr/DecodeBarcode/base64 - Decodes barcodes from a base64 encoded image.
  • /dynamsoft/dlr/DetectMrz/base64 - Detects Machine Readable Zones (MRZ) in a base64 encoded image.
  • /dynamsoft/ddn/rectifyDocument/base64 - Rectifies document images from a base64 encoded input.
power-app-barcode-mrz-document-scan.mp4