Package com.digimarc.dms.readers.image
Class ImageReader.Builder
java.lang.Object
com.digimarc.dms.readers.image.ImageReader.Builder
- Enclosing class:
- ImageReader
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a reader using the settings specified.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.setSymbologies
(int symbologyMask) Set the symbologies that this reader will detect.
-
Method Details
-
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 ImageReader.Builder setDetectionStrategy(@NonNull BaseReader.ImageDetectionType detectionType, boolean allowFrameSkipping) Set strategy options for how the reader will perform detection operations. This method must be called in order create an ImageReader object.- 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.- 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.
-