Package org.photonvision.vision.pipeline
Class CVPipeline<R extends CVPipelineResult,S extends CVPipelineSettings>
java.lang.Object
org.photonvision.vision.pipeline.CVPipeline<R,S>
- All Implemented Interfaces:
Releasable
- Direct Known Subclasses:
AprilTagPipeline
,ArucoPipeline
,Calibrate3dPipeline
,ColoredShapePipeline
,DriverModePipeline
,ObjectDetectionPipeline
,ReflectivePipeline
public abstract class CVPipeline<R extends CVPipelineResult,S extends CVPipelineSettings>
extends Object
implements Releasable
-
Field Summary
Modifier and TypeFieldDescriptionprotected QuirkyCamera
protected FrameStaticProperties
protected boolean
protected S
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract R
void
release()
Release any native memory associated with this pipeline.run
(Frame frame, QuirkyCamera cameraQuirks) protected void
setPipeParams
(FrameStaticProperties frameStaticProperties, S settings, QuirkyCamera cameraQuirks) protected abstract void
void
setSettings
(S s)
-
Field Details
-
settings
-
frameStaticProperties
-
cameraQuirks
-
released
protected volatile boolean released
-
-
Constructor Details
-
CVPipeline
-
-
Method Details
-
getThresholdType
-
setPipeParams
protected void setPipeParams(FrameStaticProperties frameStaticProperties, S settings, QuirkyCamera cameraQuirks) -
setPipeParamsImpl
protected abstract void setPipeParamsImpl() -
process
-
getSettings
-
setSettings
-
run
-
release
public void release()Release any native memory associated with this pipeline. Called by pipelinemanager at pipeline switch. Stubbed out, but override if needed.- Specified by:
release
in interfaceReleasable
-