Table of contents
Swift
Objective-C

Zoom Control

Zoom control is commonly used when processing small barcodes or scanning from a long distance. There are two zoom control features:

  • Auto-zoom: Lets the library determine whether to zoom in.
  • Zoom factor: Lets you set the zoom factor directly. This is commonly used when focusing on small barcodes.

Auto Zoom

Enable auto-zoom so the camera can zoom in automatically.

auto-zoom

Auto Zoom

  • Objective-C
  • Swift
  1. [self.dce enableEnhancedFeatures:DSEnhancedFeaturesAutoZoom];
    
  2. dce.enableEnhancedFeatures(EnhancedFeatures.autoZoom)
    

Related API

Zoom Factor

  • Objective-C
  • Swift
  1. [self.dce setZoomFactor:2.0];
    
  2. dce.setZoomFactor(2.0)
    

Related API

This page is compatible for: