Package org.photonvision.vision.frame
Class FrameProvider
java.lang.Object
org.photonvision.vision.frame.FrameProvider
- All Implemented Interfaces:
Supplier<Frame>
,Releasable
- Direct Known Subclasses:
CpuImageProcessor
,LibcameraGpuFrameProvider
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
abstract String
getName()
boolean
Returns if the camera has connected at some point.abstract boolean
protected void
abstract void
requestFrameCopies
(boolean copyInput, boolean copyOutput) Ask the camera to provide either the input, output, or both frames.abstract void
requestFrameRotation
(ImageRotationMode rotationMode) Ask the camera to rotate frames it outputsabstract void
Ask the camera to produce a certain kind of processed image (e.g.abstract void
requestHsvSettings
(HSVPipe.HSVParams params) Ask the camera to rotate frames it outputsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.photonvision.vision.opencv.Releasable
release
-
Field Details
-
sequenceID
protected int sequenceID -
cameraPropertiesCached
public boolean cameraPropertiesCached
-
-
Constructor Details
-
FrameProvider
public FrameProvider()
-
-
Method Details
-
onCameraConnected
protected void onCameraConnected() -
isConnected
public abstract boolean isConnected() -
checkCameraConnected
public abstract boolean checkCameraConnected() -
hasConnected
public boolean hasConnected()Returns if the camera has connected at some point. This is not if it is currently connected. -
getName
-
requestFrameThresholdType
Ask the camera to produce a certain kind of processed image (e.g. HSV or greyscale) -
requestFrameRotation
Ask the camera to rotate frames it outputs -
requestFrameCopies
public abstract void requestFrameCopies(boolean copyInput, boolean copyOutput) Ask the camera to provide either the input, output, or both frames. -
requestHsvSettings
Ask the camera to rotate frames it outputs
-