platypush/plugins/camera/__init__.py
def open(self, device: Optional[Union[int, str]] = None, stream: bool = None, **info) -> Camera:
        """
        Initialize and open a device using a context manager pattern.

        :param device: Capture device by name, path or ID.
        :param stream: If set, the frames will be streamed to ``camera.stream``.
        :param info: Camera parameters override - see constructors parameters.
        :return: The initialized :class:`platypush.plugins.camera.Camera` object.
        """
        camera = None
        try:
            camera = self.open_device(device, stream=stream, **info)
            yield camera
        finally:
            self.close_device(camera)

        Initialize and open a device using a context manager pattern.

        :param device: Capture device by name, path or ID.
        :param stream: If set, the frames will be streamed to ``camera.stream``.
        :param info: Camera parameters override - see constructors parameters.
        :return: The initialized :class:`platypush.plugins.camera.Camera` object.
        
Initialize and open a device using a context manager pattern.
Initialize and open a device using a context manager pattern .
def open(self, device: Optional[Union[int, str]] = None, stream: bool = None, **info) -> Camera:
        camera = None
        try:
            camera = self.open_device(device, stream=stream, **info)
            yield camera
        finally:
            self.close_device(camera)
def open ( self , device : Optional [ Union [ int , str ] ] = None , stream : bool = None , ** info ) -> Camera : camera = None try : camera = self . open_device ( device , stream = stream , ** info ) yield camera finally : self . close_device ( camera )
Initialize and open a device using a context manager pattern.
Initialize and open a device using a context manager pattern .
"""
        Initialize and open a device using a context manager pattern.

        :param device: Capture device by name, path or ID.
        :param stream: If set, the frames will be streamed to ``camera.stream``.
        :param info: Camera parameters override - see constructors parameters.
        :return: The initialized :class:`platypush.plugins.camera.Camera` object.
        """
The initialized :class:`platypush.plugins.camera.Camera` object.
The initialized : class : ` platypush . plugins . camera . Camera ` object .
self
device
Optional[Union[int, str]]
Capture device by name, path or ID.
Capture device by name path or ID .
stream
bool
If set, the frames will be streamed to ``camera.stream``.
If set the frames will be streamed to ` ` camera . stream ` ` .
info
Camera parameters override - see constructors parameters.
Camera parameters override - see constructors parameters .