platypush/plugins/camera/__init__.py
def capture_sequence(self, duration: Optional[float] = None, n_frames: Optional[int] = None, preview: bool = False,
                         **camera) -> str:
        """
        Capture a sequence of frames from a camera and store them to a directory.

        :param duration: Duration of the sequence in seconds (default: until :meth:`.stop_capture` is called).
        :param n_frames: Number of images to be captured (default: until :meth:`.stop_capture` is called).
        :param camera: Camera parameters override - see constructors parameters. ``frames_dir`` and ``fps`` in
            particular can be specifically tuned for ``capture_sequence``.
        :param preview: Show a preview of the camera frames.
        :return: The directory where the image files have been stored.
        """
        with self.open(**camera) as camera:
            self.start_camera(camera, duration=duration, n_frames=n_frames, preview=preview)
            self.wait_capture(camera)
            return camera.info.frames_dir

        Capture a sequence of frames from a camera and store them to a directory.

        :param duration: Duration of the sequence in seconds (default: until :meth:`.stop_capture` is called).
        :param n_frames: Number of images to be captured (default: until :meth:`.stop_capture` is called).
        :param camera: Camera parameters override - see constructors parameters. ``frames_dir`` and ``fps`` in
            particular can be specifically tuned for ``capture_sequence``.
        :param preview: Show a preview of the camera frames.
        :return: The directory where the image files have been stored.
        
Capture a sequence of frames from a camera and store them to a directory.
Capture a sequence of frames from a camera and store them to a directory .
def capture_sequence(self, duration: Optional[float] = None, n_frames: Optional[int] = None, preview: bool = False,
                         **camera) -> str:
        with self.open(**camera) as camera:
            self.start_camera(camera, duration=duration, n_frames=n_frames, preview=preview)
            self.wait_capture(camera)
            return camera.info.frames_dir
def capture_sequence ( self , duration : Optional [ float ] = None , n_frames : Optional [ int ] = None , preview : bool = False , ** camera ) -> str : with self . open ( ** camera ) as camera : self . start_camera ( camera , duration = duration , n_frames = n_frames , preview = preview ) self . wait_capture ( camera ) return camera . info . frames_dir
Capture a sequence of frames from a camera and store them to a directory.
Capture a sequence of frames from a camera and store them to a directory .
"""
        Capture a sequence of frames from a camera and store them to a directory.

        :param duration: Duration of the sequence in seconds (default: until :meth:`.stop_capture` is called).
        :param n_frames: Number of images to be captured (default: until :meth:`.stop_capture` is called).
        :param camera: Camera parameters override - see constructors parameters. ``frames_dir`` and ``fps`` in
            particular can be specifically tuned for ``capture_sequence``.
        :param preview: Show a preview of the camera frames.
        :return: The directory where the image files have been stored.
        """
The directory where the image files have been stored.
The directory where the image files have been stored .
self
duration
Optional[float]
Duration of the sequence in seconds (default: until :meth:`.stop_capture` is called).
Duration of the sequence in seconds ( default : until : meth : ` . stop_capture ` is called ) .
n_frames
Optional[int]
Number of images to be captured (default: until :meth:`.stop_capture` is called).
Number of images to be captured ( default : until : meth : ` . stop_capture ` is called ) .
preview
bool
Show a preview of the camera frames.
Show a preview of the camera frames .
camera
Camera parameters override - see constructors parameters. ``frames_dir`` and ``fps`` in
particular can be specifically tuned for ``capture_sequence``.
Camera parameters override - see constructors parameters . ` ` frames_dir ` ` and ` ` fps ` ` in particular can be specifically tuned for ` ` capture_sequence ` ` .