boofcv.io
Interface VideoCallBack<T extends ImageBase>
-
public interface VideoCallBack<T extends ImageBase>Callback for video streams.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidinit(int width, int height, ImageType<T> imageType)Called when the camera has been initialized and the image properties are known.voidnextFrame(T frame, java.lang.Object sourceData, long timeStamp)Passes in the next frame in the sequence.voidstopped()Called when the video stream has stopped.booleanstopRequested()Used to inform the video stream if a request has been made to stop processing the video sequence.
-
-
-
Method Detail
-
init
void init(int width, int height, ImageType<T> imageType)Called when the camera has been initialized and the image properties are known.
-
nextFrame
void nextFrame(T frame, java.lang.Object sourceData, long timeStamp)
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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG