I initially thought that the ZBarSDK
configuration couldn't be modified while the camera was working, but it actually can.
One can then simply use :
- (void)disableQRCodeDetection
{
// disabling all symbols detection for performance reasons
[self.scanner setSymbology: 0
config: ZBAR_CFG_ENABLE
to: 0];
}
- (void)enableQRCodeDetection
{
// We enable QR Code detection
[self.scanner setSymbology: ZBAR_QRCODE
config: ZBAR_CFG_ENABLE
to: 1];
}