platypush/plugins/camera/__init__.py
def flip_frame(frame, horizontal_flip: bool = False, vertical_flip: bool = False):
        """
        Frame flip logic. Does nothing unless implemented by a derived plugin.

        :param frame: Image frame (default: a ``PIL.Image`` object).
        :param horizontal_flip: Flip along the horizontal axis.
        :param vertical_flip: Flip along the vertical axis.
        """
        from PIL import Image

        if horizontal_flip:
            frame = frame.transpose(Image.FLIP_TOP_BOTTOM)
        if vertical_flip:
            frame = frame.transpose(Image.FLIP_LEFT_RIGHT)

        return frame

        Frame flip logic. Does nothing unless implemented by a derived plugin.

        :param frame: Image frame (default: a ``PIL.Image`` object).
        :param horizontal_flip: Flip along the horizontal axis.
        :param vertical_flip: Flip along the vertical axis.
        
Frame flip logic. Does nothing unless implemented by a derived plugin.
Frame flip logic . Does nothing unless implemented by a derived plugin .
def flip_frame(frame, horizontal_flip: bool = False, vertical_flip: bool = False):
        from PIL import Image
        if horizontal_flip:
            frame = frame.transpose(Image.FLIP_TOP_BOTTOM)
        if vertical_flip:
            frame = frame.transpose(Image.FLIP_LEFT_RIGHT)
        return frame
def flip_frame ( frame , horizontal_flip : bool = False , vertical_flip : bool = False ) : from PIL import Image if horizontal_flip : frame = frame . transpose ( Image . FLIP_TOP_BOTTOM ) if vertical_flip : frame = frame . transpose ( Image . FLIP_LEFT_RIGHT ) return frame
Frame flip logic.
Frame flip logic .
"""
        Frame flip logic. Does nothing unless implemented by a derived plugin.

        :param frame: Image frame (default: a ``PIL.Image`` object).
        :param horizontal_flip: Flip along the horizontal axis.
        :param vertical_flip: Flip along the vertical axis.
        """
frame
Image frame (default: a ``PIL.Image`` object).
Image frame ( default : a ` ` PIL . Image ` ` object ) .
horizontal_flip
bool
Flip along the horizontal axis.
Flip along the horizontal axis .
vertical_flip
bool
Flip along the vertical axis.
Flip along the vertical axis .