#NEWLINE# def extract_image( path , languages = None ) : #NEWLINE# #INDENT# '\n    Extract text from an image.\n\n    Use tesseract to extract text in the given ``languages`` from an\n    image file. Tesseract should support a wide range of formats, including\n    PNG, TIFF and JPG.\n    ' #NEWLINE# with open ( path , 'rb' ) as fh : #NEWLINE# #INDENT# return extract_image_data ( fh . read ( ) , languages = fh )