Web Demos

BARCODE READER SDK DEMO

Explore the flexibe barcode reading settings to optimize for your specific usage scenario.

WEB TWAIN SDK DEMO

Try the most popular web scanner features: scan images, import local images and PDF files, edit, save to local, upload to database, and etc.

BARCODE READER JAVASCRIPT DEMO

Transform any camera-equipped devices into real-time, browser-based barcode and QR code scanners.

MRZ SCANNER WEB DEMO

Detects the machine-readable zone of a passport, scans the text, and parses into human-readable data.

APP STORE DEMOS

BARCODE READER SDK FOR IOS

BARCODE READER SDK FOR ANDROID

VIEW MORE DEMOS >
< Back

Inverted DPM Codes

Issue: Direct Part Marks (DPM) are codes, symbols, and texts that are etched or printed directly onto the surface of a part, which has a different texture from marks printed on paper. They are often inverted on a dark surface.

Solution: Enable the DPM reading mode and invert the color of the image using GrayscaleTransformationModes.

JSON Template:

{
  "Version": "3.0",
  "ImageParameter": 
  {
    "Name": "Test1",
    "GrayscaleTransformationModes":[
      {
        "Mode":"GTM_INVERTED"
      }
    ],
    "DPMCodeReadingModes":[
      {
        "Mode":"DPMCRM_GENERAL"
      }
    ],
    "DeblurLevel": 9,
    "Timeout": 99999
  }
}

×

Binarized image produced by Dynamsoft Barcode Reader:

Template for Dynamsoft Barcode Reader:

JavaScript Code Snippet to Use the Template:

barcodeReader.initRuntimeSettingsWithString(template);
Single
Clean
Direct part marking
Other
Data Matrix