platypush/plugins/camera/__init__.py
def capture_preview(self, duration: Optional[float] = None, n_frames: Optional[int] = None, **camera) -> dict:
        """
        Start a camera preview session.

        :param duration: Preview duration (default: until :meth:`.stop_capture` is called).
        :param n_frames: Number of frames to display before closing (default: until :meth:`.stop_capture` is called).
        :param camera: Camera object properties.
        :return: The status of the device.
        """
        camera = self.open_device(frames_dir=None, **camera)
        self.start_camera(camera, duration=duration, n_frames=n_frames, preview=True)
        return self.status(camera.info.device)

        Start a camera preview session.

        :param duration: Preview duration (default: until :meth:`.stop_capture` is called).
        :param n_frames: Number of frames to display before closing (default: until :meth:`.stop_capture` is called).
        :param camera: Camera object properties.
        :return: The status of the device.
        
Start a camera preview session.
Start a camera preview session .
def capture_preview(self, duration: Optional[float] = None, n_frames: Optional[int] = None, **camera) -> dict:
        camera = self.open_device(frames_dir=None, **camera)
        self.start_camera(camera, duration=duration, n_frames=n_frames, preview=True)
        return self.status(camera.info.device)
def capture_preview ( self , duration : Optional [ float ] = None , n_frames : Optional [ int ] = None , ** camera ) -> dict : camera = self . open_device ( frames_dir = None , ** camera ) self . start_camera ( camera , duration = duration , n_frames = n_frames , preview = True ) return self . status ( camera . info . device )
Start a camera preview session.
Start a camera preview session .
"""
        Start a camera preview session.

        :param duration: Preview duration (default: until :meth:`.stop_capture` is called).
        :param n_frames: Number of frames to display before closing (default: until :meth:`.stop_capture` is called).
        :param camera: Camera object properties.
        :return: The status of the device.
        """
The status of the device.
The status of the device .
self
duration
Optional[float]
Preview duration (default: until :meth:`.stop_capture` is called).
Preview duration ( default : until : meth : ` . stop_capture ` is called ) .
n_frames
Optional[int]
Number of frames to display before closing (default: until :meth:`.stop_capture` is called).
Number of frames to display before closing ( default : until : meth : ` . stop_capture ` is called ) .
camera
Camera object properties.
Camera object properties .