Read the next frame of a Video or Stream object and returns it as an Image object.

# S3 method for Rcpp_Stream
readNext(obj)

# S3 method for Rcpp_Video
readNext(obj)

readNext(obj)

Arguments

obj

A Video or Stream object.

Value

An Image object.

See also

Examples

balloon <- video(system.file("sample_vid/Balloon.mp4", package = "Rvision")) plot(readNext(balloon))
release(balloon)
#> Video released successfully.