platypush/plugins/camera/__init__.py
def close_device(self, camera: Camera, wait_capture: bool = True) -> None:
        """
        Close and release a device.
        """
        name = camera.info.device
        self.stop_preview(camera)
        self.release_device(camera)

        camera.start_event.clear()
        if wait_capture:
            self.wait_capture(camera)

        if name in self._devices:
            del self._devices[name]

        Close and release a device.
        
Close and release a device.
Close and release a device .
def close_device(self, camera: Camera, wait_capture: bool = True) -> None:
        name = camera.info.device
        self.stop_preview(camera)
        self.release_device(camera)
        camera.start_event.clear()
        if wait_capture:
            self.wait_capture(camera)
        if name in self._devices:
            del self._devices[name]
def close_device ( self , camera : Camera , wait_capture : bool = True ) -> None : name = camera . info . device self . stop_preview ( camera ) self . release_device ( camera ) camera . start_event . clear ( ) if wait_capture : self . wait_capture ( camera ) if name in self . _devices : del self . _devices [ name ]
Close and release a device.
Close and release a device .
"""
        Close and release a device.
        """
self
camera
Camera
wait_capture
bool