For certain scan-intensive use cases, you may need to optimize your settings for battery life.
You should first try to optimize the scan performance of the Web SDK.
If this is not enough, make sure that you access the camera (see setFrameSource and captureMode.isEnabled parameter) only when needed and release it (see how to pause and stop the scanning) as soon as you do not need to scan anymore.
Our default settings are optimized for barcode recognition. In some cases, it may be worthwhile to trade off performance for battery life. You can try the following:
- Reduce camera resolution
- Throttle the frame rate
WebSDK 5.X(Legacy)
For certain scan-intensive use cases, you may need to optimize your settings for battery life.
You should first try to optimize the scan performance of the Web SDK.
If this is not enough, make sure that you access the camera (see accessCamera parameter of create()) only when needed and release it (see pauseCamera parameter of pauseScanning()) as soon as you do not need to scan anymore.
Our default settings are optimized for barcode recognition. In some cases, it may be worthwhile to trade off performance for battery life. . You can try the following: