Video
Module Visual.Video
This module has two functions for reading frames. Video.frames gives generator-style access, Video.capture gives callback-style access.
Both give back frames as ImageData
. See Image Data for tips on how to read pixel values from these objects.
In both cases, you can use the maxIntervalMs
option to set the speed at which frames are read. By default the value is 0, reading as fast as possible. If you’re doing heavy processing, you may want to increase this value to not overload your device.
Frames
Video.frames returns frames as a generator.
Capture
Video.capture returns frames to a callback function.