DPM Mode Example

Enable DPM Mode #

What is DPM Mode #

Direct Part Marking (DPM) mode is a feature designed to scan barcodes that are directly marked on an item, usually etched or printed onto a surface, instead of printed on a paper label.

Enable DPM Mode #

This mode is particularly useful in industries where items need to be tracked throughout their lifespan.

To enable DPM mode:

  • DataMatrix decoding is enabled - setBarcodeTypeEnabled(Barkoder.BarcodeType.datamatrix, true);
  • DPM mode is set to true - setDatamatrixDpmModeEnabled(true).
  • For best results, the decoding speed is set to slow - setDecodingSpeed(Barkoder.DecodingSpeed.slow)
  • Resolution is set to high. - setBarkoderResolution(Barkoder.BarkoderResolution.FHD)
  • A Region of Interest (ROI) is also set to optimize the viewfinder for scanning. - setRegionOfInterest(40,40,20,10)

Code Example #

In your code this would look something like:

                private setDpmMode() : void {

    this.barkoderView.setBarcodeTypeEnabled(
        [BarkoderConstants.DecoderType.Datamatrix]
    )
    this.barkoderView.setRegionOfInterestVisible(true)
    this.barkoderView.setDatamatrixDpmModeEnabled(true)
    this.barkoderView.setRegionOfInterestVisible(true)
    this.barkoderView.setDecodingSpeed(BarkoderConstants.DecodingSpeed.Slow)
    this.barkoderView.setBarkoderResolution(BarkoderConstants.BarkoderResolution.FHD)
    this.barkoderView.setRegionOfInterest(40, 40, 20, 10);

}

            

Page Contents