public interface VideoCallBack<T extends ImageBase<T>>
Callback for video streams.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when the camera has been initialized and the image properties are known.void
Passes in the next frame in the sequence.void
stopped()
Called when the video stream has stopped.boolean
Used to inform the video stream if a request has been made to stop processing the video sequence.
-
Method Details
-
init
Called when the camera has been initialized and the image properties are known. -
nextFrame
Passes in the next frame in the sequence. Time in this function should be minimized to avoid causing a back log in the video image buffer.- Parameters:
frame
- New image frame in BoofCV image format.sourceData
- Platform specific image data.timeStamp
- Time the video frame was collected.
-
stopped
void stopped()Called when the video stream has stopped. -
stopRequested
boolean stopRequested()Used to inform the video stream if a request has been made to stop processing the video sequence. This function is checked after each call tonextFrame(boofcv.struct.image.ImageBase,Object, long)
.- Returns:
- true if a request has been made to stop the steam
-