About 50 results
Open links in new tab
  1. How to display a jpg file in Python? - Stack Overflow

    Dec 7, 2016 · How to display a jpg file in Python? [duplicate] Asked 15 years, 1 month ago Modified 6 years, 3 months ago Viewed 202k times

  2. python - Replace image in Word docx format - Stack Overflow

    Mar 21, 2022 · This property in Python is the "description" in the template DOCX document. Open the template in MS Word or LibreOffice, click by your image to replace, click right button and select …

  3. Use pytesseract OCR to recognize text from an image

    I need to use Pytesseract to extract text from this picture: and the code: from PIL import Image, ImageEnhance, ImageFilter import pytesseract path = 'pic.gif' img = Image.open(path) img = img.con...

  4. python - How to add images with figure captions to a word document ...

    Dec 14, 2018 · cell_range.ParagraphFormat.SpaceAfter = 3 #this is where we are going to insert the images current_pic=cell_range.InlineShapes.AddPicture(os.path.join(os.path.abspath(my_dir), …

  5. python - Saving a Numpy array as an image - Stack Overflow

    May 24, 2009 · Imageio is a Python library that provides an easy interface to read and write a wide range of image data, including animated images, video, volumetric data, and scientific formats.

  6. python - Using PIL to turn a RGB image into a pure black and white ...

    Mar 22, 2017 · I'm using the Python Imaging Library for some very simple image manipulation, however I'm having trouble converting a greyscale image to a monochrome (black and white) image.

  7. python - How do I resize an image using PIL and maintain its aspect ...

    The Python 3 documentation for PIL says that thumbnail only works if the resulting image is smaller than the original one. Because of that I would guess that using resize is the better way.

  8. python - How to display image stored in pandas dataframe ... - Stack ...

    Sep 8, 2017 · import glob import random import base64 import pandas as pd from PIL import Image from io import BytesIO from IPython.display import HTML import io …

  9. HTML to IMAGE using Python - Stack Overflow

    Mar 9, 2020 · @ThomasSchillaci Actually i want to do it using python, like i created the .html file from the string. i want to apply other operations like cropping to the image file after converting the html file to …

  10. Convert an integer to IBM PIC S9 (09) COMP. type in python

    1683199814 2087175640 1348771152 I need to write them into a flat file using a python program, which will be loaded into Mainframe DB2 using a COBOL program. The copybook says that it is of type PIC …