All Questions
18 questions
1
vote
1
answer
140
views
How to using custom colormap with pixel calculation, gray scale value by opencv and make it workable on camera [closed]
I tried to implement the mcolor colormap in the paper
at page 8 to 10.
I developed the code to process a image file and it works ok.
Now, I want to adopt this image processing method to the camera ...
13
votes
3
answers
1k
views
Looking for the particles that are emitted when a fish is detected in Terraria
The code run perfectly fine, with no errors. However, the entirety of the code is in 1 function and is kind of hard to read. As well as that I'm not sure if and how the code could be more optimised/...
0
votes
0
answers
104
views
Python 3 OpenCV script that scans a giant picture to make a video
This is a Python script that I wrote completely by myself. Basically it scans a giant picture to make a video.
They say one picture is worth more than a thousand words. Since a video contains ...
6
votes
1
answer
2k
views
Python 3 script to make photo collages
I have written a Python script that takes a list of filenames of pictures and generates a photo collage of them. This is my most complex project yet, and I have written it completely by myself (like I ...
5
votes
2
answers
755
views
Analyzing the darkest pixels of an image in Python
This script takes an image copied from the clipboard and analyzes the n darkest pixels of the image. It will loop through each found value, prints out the value information and the quantity, then ...
0
votes
1
answer
545
views
Image color-moment extractor [closed]
I was just wondering if there is a way to speed up the performances of this for loops in Python.
I'm trying to process an image to get the color-moments without using libraries.
It takes about 12sec ...
6
votes
1
answer
277
views
Dealing with lot of images and multiplications
With some basic knowledge of Python and referring a lot of sources, I have written the code below. But it takes half an hour for execution. How can I reduce the time? I read about vectorization but ...
3
votes
1
answer
2k
views
Image pre-processing and segmentation
I'm new learning python and image processing with python. For this reason, I took a project called "Classification of breast cancer images with deep learning".
I applied the following techniques: 1)...
6
votes
1
answer
4k
views
Rotating an Image using own algorithm in python
For an uni assignment I have been giving the task of making my own rotating algorithm in python. This is my code so far.
...
4
votes
1
answer
389
views
Loops through each row in a binary image and gets the width of each group of black or white pixels
Example image:
Code:
...
5
votes
1
answer
116
views
Data set generation with Python and Matplotlib
I want to use Python and Matplotlib to create a data set of images. I want to do this by transforming the plot to a numpy matrix. At the moment it takes about 0.1 second to generate 100 images of size ...
17
votes
1
answer
542
views
Efficiently selecting spatially distributed weighted points
Background:
Motivation behind writing the following code is originated in the area of computer vision. More specifically – image rectification. In order to obtain rectified images, one has to find a ...
10
votes
1
answer
19k
views
Looping over pixels in an image
I have the following code which iterates over all pixels of an image and does some manipulations on two images of the same size. I would like to speed it up and to avoid iterating over the positions ...
20
votes
4
answers
17k
views
Processing an image to extract green-screen mask
I am using OpenCV to process an image, and in my code, I have to check / edit each pixel separately:
...
4
votes
0
answers
450
views
Plant/Residue Detection project, How to structure it?
Introduction
I have wanted to develop this project for more than two years. I just started writing it a couple days ago. I use it to detect plant or residue pixels in crop row images but it provides ...