Enable DPM Mode on Capacitor
What is DPM Mode #
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({ type: BarcodeType.datamatrix, enabled: true });
Barkoder.setDatamatrixDpmModeEnabled({ enabled: true });
Barkoder.setDecodingSpeed({ value: DecodingSpeed.slow });
Barkoder.setBarkoderResolution({ value: BarkoderResolution.FHD });
Barkoder.setRegionOfInterest({ left: 40, top: 40, width: 20, height: 10 });
Barkoder.setRegionOfInterestVisible({ value: true });