public class VisionThread extends java.lang.Thread
VisionPipeline
,
VisionRunner
,
Thread.setDaemon(boolean)
Constructor and Description |
---|
VisionThread(VideoSource videoSource,
P pipeline,
VisionRunner.Listener<? super P> listener)
Creates a new vision thread that continuously runs the given vision pipeline.
|
VisionThread(VisionRunner<?> visionRunner)
Creates a vision thread that continuously runs a
VisionPipeline . |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public VisionThread(VisionRunner<?> visionRunner)
VisionPipeline
.visionRunner
- the runner for a vision pipelinepublic VisionThread(VideoSource videoSource, P pipeline, VisionRunner.Listener<? super P> listener)
new VisionThread(new VisionRunner<>(videoSource, pipeline, listener))
.P
- the type of the pipelinevideoSource
- the source for images the pipeline should processpipeline
- the pipeline to runlistener
- the listener to copy outputs from the pipeline after it runs