M B Capture Session Options
class MBCaptureSessionOptions
Content copied to clipboard
Describes the capture session options, they are initially set by a default value.
Parameters
numberOfFrameToCollect
describes the number of frames to collect during the capture session.
frameInterval
after collected the first frame, is the number of frames to skip before collecting a frame.
numberOfFramesBeforeCapture
describes the number of frames to skip before it start collecting.
automaticCapture
tells whether the capture is automatic or manual
targetResolution
are the resolution values from caller device.
timeBeforeAutomaticCapture
is the set time in second the capture should wait to start collecting frames.
cameraSelector
describes whether we want to use front or rear camera.
scaleType
fits the video content to the view either by cropping or letterboxing maintaining the original aspect ratio
Types
Builder
Link copied to clipboard
data class Builder(numberOfFrameToCollect: Int, frameInterval: Int, numberOfFramesBeforeCapture: Int, referenceImage: ByteArray, automaticCapture: Boolean, targetResolution: Size, timeBeforeAutomaticCapture: Int, cameraSelector: MBCaptureSessionOptions.MBCameraSelector, scaleType: MBPreviewScaleType)
Content copied to clipboard
CaptureMode
Link copied to clipboard
MBCameraSelector
Link copied to clipboard
Properties
automaticCapture
Link copied to clipboard
cameraSelector
Link copied to clipboard
frameInterval
Link copied to clipboard
numberOfFramesBeforeCapture
Link copied to clipboard
numberOfFrameToCollect
Link copied to clipboard
scaleType
Link copied to clipboard
targetResolution
Link copied to clipboard
timeBeforeAutomaticCapture
Link copied to clipboard