How to enable dotcode mode for best performance
Since Python is typically used for processing static images rather than live camera streams, setting a region of interest is unnecessary in the case of Dotcode Recognition. This differs from other platforms where live image processing might benefit from such a feature.
So, in this case we will only set the desired symbology and the decoding speed to "slow".
Dotcode = BarkoderSDK.constants["Decoders"]["Dotcode"];
#set Dotcode decoder only
BarkoderSDK.setEnabledDecoders([Dotcode], 1);
decodingSpeed = BarkoderSDK.constants["DecodingSpeed"]["Slow"];
BarkoderSDK.setDecodingSpeed(decodingSpeed);