- Type Parameters:
P- the type of the pipeline this listener is for
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface VisionRunner.Listener<P extends VisionPipeline>Listener interface for a callback that should run after a pipeline has processed its input.
void copyPipelineOutputs(P pipeline)Called when the pipeline has run. This shouldn't take much time to run because it will delay later calls to the pipeline's
processmethod. Copying the outputs and code that uses the copies should be synchronized on the same mutex to prevent multiple threads from reading and writing to the same memory at the same time.
pipeline- the vision pipeline that ran