EarthView.disp#
- EarthView.disp(animate: bool = False, fps: float | None = None, title: str | None = None, loop: bool = False, **kwargs) None#
Display images from the source interactively.
- Parameters:
animate (bool, optional) – if
True, play as timed animation; ifFalse(default), step through one frame at a timefps (float, optional) – playback rate in frames per second, used when
animate=True, defaults to None. If not Noneanimatemode is assumed.title (str or None, optional) – window title; defaults to the
topicattribute of each frame when presentloop (bool, optional) – restart when the source is exhausted (finite sources only), defaults to
Falsekwargs – additional keyword arguments passed to
Image.dispfor each frame, e.g.grid=True
Display images from the source. For example:
VideoFile("traffic_sequence.mpg").disp(fps=10)
will display an animation of the video at 10 frames per second.
By default, the display is
Keys — step-through mode (
animate=False):[space]— next frame[1-9]/[0]— jump 1–9 or 10 frames (finite sources only)[l]/[c]/[d]— jump 50 / 100 / 500 frames (finite sources only)[q]/[x]— quit
Keys — animate mode (
animate=True):[space]— pause / resume[+]/[=]— increase playback speed[-]/[_]— decrease playback speed[q]/[x]— quit
Note
Jump keys and
loopare only available for finite sources that implement__len__. For live streams such asVideoCameraorRosTopicthose controls are disabled automatically.- Seealso:
ImageSequence