platypush/plugins/camera/__init__.py
def rotate_frame(frame, rotation: Optional[Union[float, int]] = None):
        """
        Frame rotation logic. The default implementation assumes that frame is a ``PIL.Image`` object.

        :param frame: Image frame (default: a ``PIL.Image`` object).
        :param rotation: Rotation angle in degrees.
        """
        if not rotation:
            return frame

        return frame.rotate(rotation, expand=True)

        Frame rotation logic. The default implementation assumes that frame is a ``PIL.Image`` object.

        :param frame: Image frame (default: a ``PIL.Image`` object).
        :param rotation: Rotation angle in degrees.
        
Frame rotation logic. The default implementation assumes that frame is a ``PIL.Image`` object.
Frame rotation logic . The default implementation assumes that frame is a ` ` PIL . Image ` ` object .
def rotate_frame(frame, rotation: Optional[Union[float, int]] = None):
        if not rotation:
            return frame
        return frame.rotate(rotation, expand=True)
def rotate_frame ( frame , rotation : Optional [ Union [ float , int ] ] = None ) : if not rotation : return frame return frame . rotate ( rotation , expand = True )
Frame rotation logic.
Frame rotation logic .
"""
        Frame rotation logic. The default implementation assumes that frame is a ``PIL.Image`` object.

        :param frame: Image frame (default: a ``PIL.Image`` object).
        :param rotation: Rotation angle in degrees.
        """
frame
Image frame (default: a ``PIL.Image`` object).
Image frame ( default : a ` ` PIL . Image ` ` object ) .
rotation
Optional[Union[float, int]]
Rotation angle in degrees.
Rotation angle in degrees .