platypush/plugins/qrcode/__init__.py
def decode(self, image_file: str) -> QrcodeDecodedResponse:
        """
        Decode a QR code from an image file.

        :param image_file: Path of the image file.
        """
        from pyzbar import pyzbar
        from PIL import Image

        image_file = os.path.abspath(os.path.expanduser(image_file))
        img = Image.open(image_file)
        results = pyzbar.decode(img)
        return QrcodeDecodedResponse(results)

        Decode a QR code from an image file.

        :param image_file: Path of the image file.
        
Decode a QR code from an image file.
Decode a QR code from an image file .
def decode(self, image_file: str) -> QrcodeDecodedResponse:
        from pyzbar import pyzbar
        from PIL import Image
        image_file = os.path.abspath(os.path.expanduser(image_file))
        img = Image.open(image_file)
        results = pyzbar.decode(img)
        return QrcodeDecodedResponse(results)
def decode ( self , image_file : str ) -> QrcodeDecodedResponse : from pyzbar import pyzbar from PIL import Image image_file = os . path . abspath ( os . path . expanduser ( image_file ) ) img = Image . open ( image_file ) results = pyzbar . decode ( img ) return QrcodeDecodedResponse ( results )
Decode a QR code from an image file.
Decode a QR code from an image file .
"""
        Decode a QR code from an image file.

        :param image_file: Path of the image file.
        """
self
image_file
str
Path of the image file.
Path of the image file .