subscribeTo

abstract fun subscribeTo(onFrameAvailable: Consumer<ImageProcessor.Input>): Closeable

Subscribes to the provided onFrameAvailable to be notified when a new Frame is available for this input. The returned Closeable must be closed when done working with this input otherwise underlying resources will be leaked.