What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-04 22:01:07
vs
import numpy as np import os import six.moves.urllib as urllib import sys import tarfile import tensorflow as tf import zipfile from collections import defaultdict from io import StringIO from matplotlib import pyplot as plt from PIL import Image &... Add solution -
Python 2021-11-04 01:19:18
how to take screenshot using python
please check out my video also - https://www.youtube.com/watch?v=7Tr0mEQhc3M&t=2s please subscribe my channel - https://bit.ly/2Me2CfB # importing the ImageGrab function from PILLOW (PIL) Module from PIL import ImageGrab # to take the screenshot of ... Add solution -
Python 2021-10-27 22:14:13
python get pixel values from image
from PIL import Image img = Image.open('example.png') imgWidth, imgHeight = img.size img = img.convert("RGBA") imgdata = img.getdata() x_pos = 0 y_pos = 1 pixel_value = [] x = [] y = [] for item in imgdata: if (x_pos) == imgWidth: ... Add solution -
Python 2021-10-23 20:41:14
pillow python image putpixel
# Importing Image from PIL package from PIL import Image # creating a image object image = Image.open(r'C:\Users\System-Pc\Desktop\python.png') width, height = image.size for x in range(height): image.putpixel( (x, x), (0, 0, 0, 255) ) ... Add solution -
Python 2021-10-23 10:57:13
put text on image python
from PIL import Image, ImageFont, ImageDraw my_image = Image.open("image.jpg") title_font = ImageFont.truetype('font.ttf', 200) image_editable = ImageDraw.Draw(my_image) image_editable.text((15,15), "Text goes here", (237, 230, 211)... Add solution -
Python 2021-10-23 03:51:07
extract image from pdf python
import PyPDF2 from PIL import Image if __name__ == '__main__': input1 = PyPDF2.PdfFileReader(open("input.pdf", "rb")) page0 = input1.getPage(0) xObject = page0['/Resources']['/XObject'].getObject() for obj in xObject... Add solution
Best helpers
Ranking is empty