Class VideoCaptureReader.Builder

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

public static class VideoCaptureReader.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

    • setCameraHelper

      @NonNull public VideoCaptureReader.Builder setCameraHelper(@Nullable CameraHelper camera)
      Set camera image source for this reader.
      Parameters:
      camera - Camera instance.
      Returns:
      Builder
    • setSymbologies

      @NonNull public VideoCaptureReader.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 VideoCaptureReader.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 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 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.
    • setResultListener

      @NonNull public VideoCaptureReader.Builder setResultListener(@NonNull ResultListener listener)
      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

      @NonNull public VideoCaptureReader 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.