Class CpuImageProcessor
java.lang.Object
org.photonvision.vision.frame.FrameProvider
org.photonvision.vision.frame.provider.CpuImageProcessor
- All Implemented Interfaces:
Supplier<Frame>
,Releasable
- Direct Known Subclasses:
FileFrameProvider
,USBFrameProvider
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.photonvision.vision.frame.FrameProvider
cameraPropertiesCached, sequenceID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Frame
get()
void
requestFrameCopies
(boolean copyInput, boolean copyOutput) Ask the camera to provide either the input, output, or both frames.void
requestFrameRotation
(ImageRotationMode rotationMode) Ask the camera to rotate frames it outputsvoid
Ask the camera to produce a certain kind of processed image (e.g.void
requestHsvSettings
(HSVPipe.HSVParams params) Ask the camera to rotate frames it outputsMethods inherited from class org.photonvision.vision.frame.FrameProvider
checkCameraConnected, getName, hasConnected, isConnected, onCameraConnected
Methods 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
-
Constructor Details
-
CpuImageProcessor
public CpuImageProcessor()
-
-
Method Details
-
get
-
requestFrameThresholdType
Description copied from class:FrameProvider
Ask the camera to produce a certain kind of processed image (e.g. HSV or greyscale)- Specified by:
requestFrameThresholdType
in classFrameProvider
-
requestFrameRotation
Description copied from class:FrameProvider
Ask the camera to rotate frames it outputs- Specified by:
requestFrameRotation
in classFrameProvider
-
requestHsvSettings
Ask the camera to rotate frames it outputs- Specified by:
requestHsvSettings
in classFrameProvider
-
requestFrameCopies
public void requestFrameCopies(boolean copyInput, boolean copyOutput) Description copied from class:FrameProvider
Ask the camera to provide either the input, output, or both frames.- Specified by:
requestFrameCopies
in classFrameProvider
-