Skip to main content
0 votes
1 answer
142 views

I am trying to build a python program that shows camera feed. I tried it in 2 ways (TKinter and QtDesigner), both ways show cropped viewport compared to the native camera application viewport on ...
Marwa Shams's user avatar
1 vote
1 answer
63 views

I've been trying to write a script to draw some arcs which fade out to the background colour (see sample below). from PIL import Image, ImageDraw import math import random def draw_concentric_circles(...
Jon Cage's user avatar
  • 37.8k
0 votes
0 answers
128 views

I am running Python 3.12.10 on Visual Studio Code. I am working on a python script that opens a PPT file, takes screenshots of each slide and stores them in a temporary directory file under "C:/...
Zahab's user avatar
  • 13
Advice
1 vote
8 replies
98 views

Our organization has HD images that are over 20 MB in size on a network drive. When trying to preview them, is it possible to have python download a smaller version of them (to reduce bandwidth) with ...
zdanman's user avatar
  • 519
3 votes
2 answers
87 views

I want to make images in Python Pillow with text, insert the images into a Microsoft Word document, and have the font size in the image match the font size in the document. How do I make the font ...
aTree's user avatar
  • 143
0 votes
1 answer
100 views

I would like to know why image flicking while adjust it's brightness during adjustment. here is my script: from nicegui import ui from PIL import Image, ImageEnhance import io, base64 original_image = ...
Mohammad Eftekharian's user avatar
5 votes
1 answer
155 views

I'm attempting to rotate an image in python by copying each individual pixel into a new blank image, (I know, probably not the best way to do it but this is what I have the theoretical knowledge basis ...
Achromatic's user avatar
0 votes
2 answers
96 views

In C/C++, we use libtiff 4.6.0 to parsing TIFF images. We identify the type of TIFF image with: unsigned int PhotoMetric = 0, SamplesPerPixel = 1, BitsPerSample = 1; TIFFGetField(Tiff, ...
Bart Theelen's user avatar
1 vote
1 answer
105 views

I have a TIFF file with a size of (48000, 432000) and I would like to upload only a piece of the image, for example, pass a parameter like (X, Y, wid, hei), where X, Y are the coordinates of the upper-...
senek's user avatar
  • 85
0 votes
2 answers
107 views

main.py from PIL import Image, ImageDraw, ImageFont base_img = Image.new("RGBA", (100, 100), (0, 255, 0)) txt = 'Sample <del color=red>text<del>' rotate = 120 font = ImageFont....
Release24's user avatar
0 votes
0 answers
41 views

Affine transformations (rotations, translations, shears and scales) can be represented (for 2-D arrays of points) as 3x3 matrices. And it is immediately clear, by looking at this matrix, what the ...
VizDracViz's user avatar
0 votes
0 answers
86 views

I have the following code to calculate and visualise the probability of scoring 10 points or more This is the Scoreboard image that I used to run the code from PIL import Image, ImageDraw import ...
Nemo's user avatar
  • 1,306
0 votes
0 answers
96 views

I recently wrote a program which renders the mandelbrot set and encountered some irrelevent issues, which some helpful users solved for me. One user reccommended I change an aspect of my code for ...
Jessica's user avatar
  • 41
3 votes
2 answers
133 views

I am trying to make a python program that can render the mandelbrot set. My full program can output an image of the set, but for some reason, it displays it cut up into opposite facing quarters. This ...
Jessica's user avatar
  • 41
5 votes
2 answers
112 views

Using Python's Pillow (PIL) module I'm trying to shift an image 85 pixels to the right using an affine transform. The below code should to this, but instead shifts the image seemingly in the wrong ...
Christopher Pratt's user avatar

15 30 50 per page
1
2 3 4 5
676