日本のBingへ
約 53 件の結果
リンクを新しいタブで開く
  1. python - Getting list of pixel values from PIL - Stack Overflow

    2022年12月21日 · Problem seems to be the conversion to a standard python list. If I call just pixels=im.getdata() (which returns a special, simplified, list type) everything is fine. If I add the cast, …

  2. python - How to read a raw image using PIL? - Stack Overflow

    Image.frombuffer (mode, size, data) => image (New in PIL 1.1.4). Creates an image memory from pixel data in a string or buffer object, using the standard "raw" decoder. For some modes, the image …

  3. How do I install PIL/Pillow for Python 3.6? - Stack Overflow

    2016年8月27日 · In Windows 10 for those struggling to install PIL/pillow while coding on PyCharm and have Python 3.10.6 proceed as follows; Close PyCharm IDE Open and Run CMD.exe prompt as …

  4. python - how to install PIL with pip? - Stack Overflow

    2021年7月19日 · Traceback (most recent call last): File "image_viewer.py", line 2, in <module> from PIL import ImageTk, Image ImportError: No module named PIL but I already install Pillow and everything …

  5. Get Image size WITHOUT loading image into memory

    from PIL import Image im = Image.open(image_filename) width, height = im.size However, I would like to get the image width and height without having to load the image in memory. Is that possible? I am …

  6. How do I convert a PIL Image into a NumPy array? - Stack Overflow

    How do I convert a PIL Image back and forth to a NumPy array so that I can do faster pixel-wise transformations than PIL's PixelAccess allows? I can convert it to a NumPy array via: pic = …

  7. How do you composite an image onto another image with PIL in …

    2017年3月5日 · I need to take an image and place it onto a new, generated white background in order for it to be converted into a downloadable desktop wallpaper. So the process would go: Generate new, …

  8. Installing PIL (Python Imaging Library) in Win7 64 bits, Python 2.6.4

    Pillow is a replacement for PIL, the Python Image Library, which provides image processing functionality and supports many file formats. Note: use from PIL import Image instead of import Image.

  9. python - Add Text on Image using PIL - Stack Overflow

    I have an application that loads an Image and when the user clicks it, a text area appears for this Image (using jquery), where user can write some text on the Image. Which should be added on Image.

  10. python - Get pixel's RGB using PIL - Stack Overflow

    2012年6月16日 · See also this SO post: Python and PIL pixel values different for GIF and JPEG and this PIL Reference page contains more information on the convert() function. By the way, your code would …