zorg_network_camera/ocr.py
def read(self):
        """
        Returns the text from an image at a given url.
        """

        # Only download the image if it has changed
        if self.connection.has_changed():
            image_path = self.connection.download_image()
            image = Image.open(image_path)
            self.text_cache = pytesseract.image_to_string(image)
            image.close()

        return self.text_cache
def read(self):
        """
        Returns the text from an image at a given url.
        """

        # Only download the image if it has changed
        if self.connection.has_changed():
            image_path = self.connection.download_image()
            image = Image.open(image_path)
            self.text_cache = pytesseract.image_to_string(image)
            image.close()

        return self.text_cache
Returns the text from an image at a given url.