Package com.digimarc.dms.readers.image
Class VideoCaptureReader.Builder
java.lang.Object
com.digimarc.dms.readers.image.VideoCaptureReader.Builder
- Enclosing class:
- VideoCaptureReader
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a reader using the settings specified.setCameraHelper
(CameraHelper camera) Set camera image source for this reader.setDetectionStrategy
(BaseReader.ImageDetectionType detectionType, boolean allowFrameSkipping) Set strategy options for how the reader will perform detection operations.setReaderOptions
(ReaderOptions options) Set of options that this reader will use.setResultListener
(ResultListener listener) Set a listener that will receive detection and error result callbacks for this reader.setSymbologies
(int symbologyMask) Set the symbologies that this reader will detect.
-
Method Details
-
setCameraHelper
Set camera image source for this reader.- Parameters:
camera
- Camera instance.- Returns:
- Builder
-
setSymbologies
Set the symbologies that this reader will detect.- Parameters:
symbologyMask
- A bitmask value containing the audio symbologies that the reader should use.- Returns:
- Builder
-
setReaderOptions
Set of options that this reader will use.- Parameters:
options
- A dictionary of flags and settings for the reader. The available entries are documented separately.- Returns:
- Builder
-
setDetectionStrategy
@NonNull public VideoCaptureReader.Builder setDetectionStrategy(@NonNull BaseReader.ImageDetectionType detectionType, boolean allowFrameSkipping) Set strategy options for how the reader will perform detection operations.- Parameters:
detectionType
- Type of detection being performedallowFrameSkipping
- Can the reader optimize device performance by skipping frames? If set to false then each frame or bitmap passed to the reader will be read. If true then some frames may be ignored in order to reduce CPU usage and battery drain.
-
setResultListener
Set a listener that will receive detection and error result callbacks for this reader. A Listener is required in order to construct a VideoCaptureReader.- Parameters:
listener
- Listener for receiving reader callbacks.- Returns:
- Builder
-
build
Build a reader using the settings specified.- Returns:
- A new reader object
- Throws:
ReaderException
- An exception will be thrown if an invalid symbology (i.e. not inBaseReader.ImageSymbology
) or options entry is specified for this reader. An exception will also be thrown if a valid Sdk Session key is not available.
-