python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Slide a window through an image, and change the value of center pixel in window based on the average value of the sliding window
I am trying to slide a 5 by 5 2D window across a gray image.
If all the pixels within that 2D window equal to 200, replace the center pixel value within the window with 100.
import cv2
import numpy as...
Joseph Adam
Votes: 0
Answers: 1
How to read images in a file consecutively without sort functions?
I'm new at image processing, I captured frames from a video and I want to convert them into arrays. These frames must be consecutive.
here's the part of my code
folder = "/content/otherGrayscaleI...
Pegtomous
Votes: 0
Answers: 1
How to resize images to certain size in Python PIL without distortion?
I'm trying to crop images to 1000, 1000 using PIL in Python.
However, it always stretches the image to match the dimensions rather than cropping. Current code below.
Preferably, I would like to crop t...
Jody
Votes: 0
Answers: 2
Flask Serve PIL image in HTML from endpoint
I will preface by saying this is my first time working with flask & HTML to build a web app, so I may be using the wrong terminology in some places, apologies in advance.
I have used these two pre...
dimitripayet
Votes: 0
Answers: 1