Class ImageReader.Builder

java.lang.Object
com.digimarc.dms.readers.image.ImageReader.Builder
Enclosing class:
ImageReader

public static class ImageReader.Builder extends Object
  • Constructor Details

    • Builder

      protected Builder(SdkSession sdkSession)
      Builder's constructor
      Parameters:
      sdkSession - SdkSession object initialized with a valid license key.
  • Method Details

    • setSymbologies

      @NonNull public ImageReader.Builder setSymbologies(int symbologyMask)
      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

      @NonNull public ImageReader.Builder setReaderOptions(@Nullable ReaderOptions options)
      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 performed
      allowFrameSkipping - 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

      @NonNull public ImageReader build() throws ReaderException
      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 in BaseReader.ImageSymbology) or options entry is specified for this reader. An exception will also be thrown if a valid Sdk Session key is not available.