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:
BKDView.SetBarcodeTypeEnabled(Plugin.Maui.Barkoder.Enums.BarcodeType.Datamatrix, true);
BKDView.SetDatamatrixDpmModeEnabled(true);
BKDView.SetDecodingSpeed(Plugin.Maui.Barkoder.Enums.DecodingSpeed.Slow);
BKDView.SetBarkoderResolution(Plugin.Maui.Barkoder.Enums.BarkoderResolution.FHD);
BKDView.SetRegionOfInterest(40, 40, 20, 10);
BKDView.SetRegionOfInterestVisible(true);