MBICameraSettings
@interface MBICameraSettings : NSObject <NSCopying>
Settings class containing parameters for camera capture
-
Camera preset. With this property you can set the resolution of the camera
Default: MBICameraPresetOptimal
Declaration
Objective-C
@property (nonatomic) MBICameraPreset cameraPreset;Swift
var cameraPreset: MBICameraPreset { get set } -
Camera type. You can choose between front and back facing.
Default: MBICameraTypeBack
Declaration
Objective-C
@property (nonatomic) MBICameraType cameraType;Swift
var cameraType: MBICameraType { get set } -
Interval between forcing two camera focuses. If <= 0, forced focuses arent performed and only continuous autofocus mode will be used.
Default
- 10.0f for BlinkID and BlinkOCR product
- 8.0f for PhotoPay, pdf417 and other products
Declaration
Objective-C
@property (nonatomic) NSTimeInterval autofocusInterval;Swift
var autofocusInterval: TimeInterval { get set } -
Range restriction for camera autofocus.
Default: MBICameraAutofocusRestrictionNone
Declaration
Objective-C
@property (nonatomic) MBICameraAutofocusRestriction cameraAutofocusRestriction;Swift
var cameraAutofocusRestriction: MBICameraAutofocusRestriction { get set } -
Gravity of Camera preview on screen.
Default: AVLayerVideoGravityResizeAspectFill
Declaration
Objective-C
@property (nonatomic, weak) NSString *videoGravity;Swift
weak var videoGravity: NSString! { get set } -
Point against which the autofocus will be performed
Default (0.5f, 0.5f) - middle of the screen.
Declaration
Objective-C
@property (nonatomic) CGPoint focusPoint;Swift
var focusPoint: CGPoint { get set } -
Tells whether camera input images should be mirrored horizontally before processing
Default: NO
Declaration
Objective-C
@property (nonatomic) BOOL cameraMirroredHorizontally;Swift
var cameraMirroredHorizontally: Bool { get set } -
Tells whether camera input images should be mirrored vertically before processing
Default: NO
Declaration
Objective-C
@property (nonatomic) BOOL cameraMirroredVertically;Swift
var cameraMirroredVertically: Bool { get set } -
Designated initializer. Initializes the object with default settings (see above for defaults)
Declaration
Objective-C
- (instancetype)init;Swift
init!()Return Value
object initialized with default values.
-
Returns an optimal AVFoundation session preset based on cameraPreset value.
Declaration
Objective-C
- (NSString *)calcSessionPreset;Swift
func calcSessionPreset() -> String!Return Value
optimal AVFoundation session preset
-
Returns an optimal AVFoundation autofocus range restriction value based on cameraAutofocusRestriction.
Declaration
Objective-C
- (AVCaptureAutoFocusRangeRestriction)calcAutofocusRangeRestriction;Swift
func calcAutofocusRangeRestriction() -> AVCaptureDevice.AutoFocusRangeRestrictionReturn Value
optimal AVFoundation autofocus range restriction
View on GitHub
MBICameraSettings Class Reference