platypush/plugins/camera/__init__.py
def start_camera(self, camera: Camera, preview: bool = False, *args, **kwargs):
        """
        Start a camera capture session.

        :param camera: An initialized :class:`platypush.plugins.camera.Camera` object.
        :param preview: Show a preview of the camera frames.
        """
        assert not (camera.capture_thread and camera.capture_thread.is_alive()), \
            'A capture session is already in progress'

        camera.capture_thread = threading.Thread(target=self.capturing_thread, args=(camera, *args),
                                                 kwargs={'preview': preview, **kwargs})
        camera.capture_thread.start()
        camera.start_event.set()

        Start a camera capture session.

        :param camera: An initialized :class:`platypush.plugins.camera.Camera` object.
        :param preview: Show a preview of the camera frames.
        
Start a camera capture session.
Start a camera capture session .
def start_camera(self, camera: Camera, preview: bool = False, *args, **kwargs):
        assert not (camera.capture_thread and camera.capture_thread.is_alive()), \
            'A capture session is already in progress'
        camera.capture_thread = threading.Thread(target=self.capturing_thread, args=(camera, *args),
                                                 kwargs={'preview': preview, **kwargs})
        camera.capture_thread.start()
        camera.start_event.set()
def start_camera ( self , camera : Camera , preview : bool = False , * args , ** kwargs ) : assert not ( camera . capture_thread and camera . capture_thread . is_alive ( ) ) , 'A capture session is already in progress' camera . capture_thread = threading . Thread ( target = self . capturing_thread , args = ( camera , * args ) , kwargs = { 'preview' : preview , ** kwargs } ) camera . capture_thread . start ( ) camera . start_event . set ( )
Start a camera capture session.
Start a camera capture session .
"""
        Start a camera capture session.

        :param camera: An initialized :class:`platypush.plugins.camera.Camera` object.
        :param preview: Show a preview of the camera frames.
        """
self
camera
Camera
An initialized :class:`platypush.plugins.camera.Camera` object.
An initialized : class : ` platypush . plugins . camera . Camera ` object .
preview
bool
Show a preview of the camera frames.
Show a preview of the camera frames .