Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for iOS

SBSScanAreaSettings Class Reference

Inherits NSObject.

Class Methods

(instancetype) + defaultPortraitSettings
 
(instancetype) + defaultLandscapeSettings
 

Properties

CGRect searchArea
 
CGRect wideCodesLocationArea
 
SBSCodeLocationConstraint wideCodesLocationConstraint
 
CGRect squareCodesLocationArea
 
SBSCodeLocationConstraint squareCodesLocationConstraint
 

Detailed Description

Scanning area settings control where codes are to be searched in images/frames.

The areas as well as the hot-spot is specified in relative coordinates. The coordinates are rotated with the device: The top-left corner of the camera preview is 0,0, whereas 1,1 is the bottom-right corner. Coordinates specified outside of the supported range raise an exception.

For most use-cases, the "active scanning area portrait/active scanning area landscape" available as part of the SBSScanSettings is sufficient and is simpler to use. We only recommend to use the SBSScanAreaSettings if you have very specific needs for your application that can't be met with the "active scanning area" interface.

This class allows to control the areas separately for wide and square symbologies. Classification of symbologies into square and wide is according to their aspect ratio: symbologies that have a width/height ratio different from one (1d codes, PDF417, etc.) are classified as wide, symbologies whose width/height aspect ratio is close to 1.0 (QR, Aztec etc.) are classified as square. Symbologies whose aspect ratio can vary, e.g. DataMatrix, or DataBar, are classified according to their pre-dominant aspect ratio.

Note
This interface is not part of the stable API yet and is subject to change. Functionality may dissappear, or change in future releases.
Since
5.0

Method Documentation

+ (instancetype) defaultPortraitSettings

Returns a new instance with default settings for portrait scanning.

Since
5.0
+ (instancetype) defaultLandscapeSettings

Returns a new instance with default settings for landscape scanning.

Since
5.0

Property Documentation

- (CGRect) searchArea
readwritenonatomicassign

The area in which codes are searched.

By default, codes are searched in the whole image.

Since
5.0
- (CGRect) wideCodesLocationArea
readwritenonatomicassign

Code location area for wide codes.

Since
5.0
- (SBSCodeLocationConstraint) wideCodesLocationConstraint
readwritenonatomicassign

Code location constraint for wide codes.

Since
5.0
- (CGRect) squareCodesLocationArea
readwritenonatomicassign

Code location area for square codes.

Since
5.0
- (SBSCodeLocationConstraint) squareCodesLocationConstraint
readwritenonatomicassign

Code location constraint for square codes.

Since
5.0

The documentation for this class was generated from the following file: