platypush/plugins/camera/__init__.py
def to_grayscale(self, frame):
        """
        Convert a frame to grayscale. The default implementation assumes that frame is a ``PIL.Image`` object.

        :param frame: Image frame (default: a ``PIL.Image`` object).
        """
        from PIL import ImageOps
        return ImageOps.grayscale(frame)

        Convert a frame to grayscale. The default implementation assumes that frame is a ``PIL.Image`` object.

        :param frame: Image frame (default: a ``PIL.Image`` object).
        
Convert a frame to grayscale. The default implementation assumes that frame is a ``PIL.Image`` object.
Convert a frame to grayscale . The default implementation assumes that frame is a ` ` PIL . Image ` ` object .
def to_grayscale(self, frame):
        from PIL import ImageOps
        return ImageOps.grayscale(frame)
def to_grayscale ( self , frame ) : from PIL import ImageOps return ImageOps . grayscale ( frame )
Convert a frame to grayscale.
Convert a frame to grayscale .
"""
        Convert a frame to grayscale. The default implementation assumes that frame is a ``PIL.Image`` object.

        :param frame: Image frame (default: a ``PIL.Image`` object).
        """
self
frame
Image frame (default: a ``PIL.Image`` object).
Image frame ( default : a ` ` PIL . Image ` ` object ) .