Class USBFrameProvider
java.lang.Object
org.photonvision.vision.frame.FrameProvider
org.photonvision.vision.frame.provider.CpuImageProcessor
org.photonvision.vision.frame.provider.USBFrameProvider
- All Implemented Interfaces:
Supplier<Frame>
,Releasable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.photonvision.vision.frame.provider.CpuImageProcessor
CpuImageProcessor.CapturedFrame
-
Field Summary
Fields inherited from class org.photonvision.vision.frame.FrameProvider
cameraPropertiesCached, sequenceID
-
Constructor Summary
ConstructorDescriptionUSBFrameProvider
(UsbCamera camera, VisionSourceSettables visionSettables, Runnable connectedCallback) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
boolean
void
void
release()
void
updateSettables
(VisionSourceSettables settables) Methods inherited from class org.photonvision.vision.frame.provider.CpuImageProcessor
get, requestFrameCopies, requestFrameRotation, requestFrameThresholdType, requestHsvSettings
Methods inherited from class org.photonvision.vision.frame.FrameProvider
hasConnected
-
Constructor Details
-
USBFrameProvider
public USBFrameProvider(UsbCamera camera, VisionSourceSettables visionSettables, Runnable connectedCallback)
-
-
Method Details
-
checkCameraConnected
public boolean checkCameraConnected()- Specified by:
checkCameraConnected
in classFrameProvider
-
getInputMat
-
getName
- Specified by:
getName
in classFrameProvider
-
release
public void release() -
onCameraConnected
public void onCameraConnected()- Overrides:
onCameraConnected
in classFrameProvider
-
isConnected
public boolean isConnected()- Specified by:
isConnected
in classFrameProvider
-
updateSettables
-