Class CVPipelineResult
java.lang.Object
org.photonvision.vision.pipeline.result.CVPipelineResult
- All Implemented Interfaces:
Releasable
- Direct Known Subclasses:
CalibrationPipelineResult
,DriverModePipelineResult
-
Field Summary
Modifier and TypeFieldDescriptionfinal double
final Frame
final double
final long
final List<TrackedTarget>
-
Constructor Summary
ConstructorDescriptionCVPipelineResult
(long sequenceID, double processingNanos, double fps, List<TrackedTarget> targets, Optional<MultiTargetPNPResult> multiTagResult) CVPipelineResult
(long sequenceID, double processingNanos, double fps, List<TrackedTarget> targets, Optional<MultiTargetPNPResult> multiTagResult, Frame inputFrame) CVPipelineResult
(long sequenceID, double processingNanos, double fps, List<TrackedTarget> targets, Optional<MultiTargetPNPResult> multiTagResult, Frame inputFrame, List<String> classNames) CVPipelineResult
(long sequenceID, double processingNanos, double fps, List<TrackedTarget> targets, Frame inputFrame) CVPipelineResult
(long sequenceID, double processingNanos, double fps, List<TrackedTarget> targets, Frame inputFrame, List<String> classNames) -
Method Summary
Modifier and TypeMethodDescriptionlong
double
Deprecated.double
boolean
void
release()
void
setImageCaptureTimestampNanos
(long imageCaptureTimestampNanos)
-
Field Details
-
sequenceID
public final long sequenceID -
processingNanos
public final double processingNanos -
fps
public final double fps -
targets
-
inputAndOutputFrame
-
multiTagResult
-
objectDetectionClassNames
-
-
Constructor Details
-
CVPipelineResult
public CVPipelineResult(long sequenceID, double processingNanos, double fps, List<TrackedTarget> targets, Frame inputFrame) -
CVPipelineResult
public CVPipelineResult(long sequenceID, double processingNanos, double fps, List<TrackedTarget> targets, Frame inputFrame, List<String> classNames) -
CVPipelineResult
public CVPipelineResult(long sequenceID, double processingNanos, double fps, List<TrackedTarget> targets, Optional<MultiTargetPNPResult> multiTagResult, Frame inputFrame) -
CVPipelineResult
public CVPipelineResult(long sequenceID, double processingNanos, double fps, List<TrackedTarget> targets, Optional<MultiTargetPNPResult> multiTagResult, Frame inputFrame, List<String> classNames) -
CVPipelineResult
public CVPipelineResult(long sequenceID, double processingNanos, double fps, List<TrackedTarget> targets, Optional<MultiTargetPNPResult> multiTagResult)
-
-
Method Details
-
hasTargets
public boolean hasTargets() -
release
public void release()- Specified by:
release
in interfaceReleasable
-
getLatencyMillis
Deprecated.Get the latency between now (wpi::Now) and the time at which the image was captured. FOOTGUN: the latency is relative to the time at which this method is called. Waiting to call this method will change the latency this method returns. -
getProcessingMillis
public double getProcessingMillis() -
getImageCaptureTimestampNanos
public long getImageCaptureTimestampNanos() -
setImageCaptureTimestampNanos
public void setImageCaptureTimestampNanos(long imageCaptureTimestampNanos)
-