Package trclib.vision
Interface TrcVideoSource<O>
- Type Parameters:
O
- specifies the type of the video frame.
- All Known Subinterfaces:
TrcVisionProcessor<I,
O>
- All Known Implementing Classes:
TrcOpenCvDetector
,TrcOpenCvFaceDetector
public interface TrcVideoSource<O>
This interface provides methods to get a video frame from a video source and render a video frame to a display
surface.
-
Method Summary
-
Method Details
-
getFrame
This method takes a snapshot of the video frame.- Parameters:
frame
- specifies the frame buffer to hold the video snapshot.- Returns:
- true if successful, false otherwise.
-
putFrame
This method displays a frame buffer to the display surface.- Parameters:
frame
- specifies the video frame to be displayed.
-