DPM Mode Example
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:
-
DataMatrixdecoding 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:
Barkoder.setBarcodeTypeEnabled(BarcodeType.datamatrix, true);
Barkoder.setDatamatrixDpmModeEnabled(true);
Barkoder.setDecodingSpeed(DecodingSpeed.slow);
Barkoder.setBarkoderResolution(BarkoderResolution.FHD);
Barkoder.setRegionOfInterest(40, 40, 20, 10);
Barkoder.setRegionOfInterestVisible(true);