Skip to main content

All Questions

Tagged with
0 votes
0 answers
40 views

How can I build my Flutter app to use Python for OpenCV and Numpy? [closed]

I'm developing a Flutter app for iOS that requires image processing using Python, specifically with OpenCV and NumPy. I'm facing several challenges and would appreciate guidance on the best approach: ...
user26409301's user avatar
-2 votes
1 answer
41 views

I'm getting an "src is not a numerical tuple" for an opencv program I'm developing that works in their official documentation but not for me [closed]

I'm creating a python program and trying to get feed from a camera and then perform a fourier transform on it to see its spectrum. I've been trying to initialize the camera with cv2.imread() but for ...
Midkhat Satdanov's user avatar
-3 votes
0 answers
76 views

What's the best/most robust way to check if 2 images are the same or very similar

I have some video recording of my screen where I am drawing some diagrams, but there are a lot of moments where the screen is idle. Because I am using Camtasia, the cursor is not saved directly on the ...
Joan Venge's user avatar
  • 326k
0 votes
1 answer
36 views

centering an image or object in an image using numpy arrays and whatnot

from PIL import Image import numpy as np import matplotlib.pyplot as plt img = Image.open("image.png") pixels = list(img.getdata()) pxl_array = np.array(pixels) print(len(pxl_array)) ...
Abderrahmane Alloubane's user avatar
0 votes
0 answers
41 views

Does the Intensity of color in OpenCV image matter?

Here is a simple code which puts a text value onto a black frame and displays it: frame = np.zeros((50,200,3)) org=(0,45) font=cv2.FONT_HERSHEY_SIMPLEX fontScale=1 fontColor=(1,0,0) ##rgb out_img =...
Allohvk's user avatar
  • 1,161
-1 votes
1 answer
33 views

How to Apply ColorMap with OpenCV?

Description I am trying to convert a numpy array and then, apply a color map to a 2d numpy array that's filled with float values between 0 - 1. I have written this piece of code for that: for i in ...
mericgeren's user avatar
3 votes
1 answer
132 views

How to properly calculate PSD plot (Power Spectrum Density Plot) for images in order to remove periodic noise?

Im trying to remove periodic noise from an image using PSDP, I had some success, but Im not sure if what Im doing is 100% correct. This is basically a kind of follow up to this video lecture which ...
Hossein's user avatar
  • 25.5k
8 votes
3 answers
20k views

A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.0 as it may crash [duplicate]

Traceback (most recent call last): File "C:\Users\mohit\OneDrive\Desktop\Front End\Flask\pythonProject1\tut2.py", line 8, in <module> import imutils File "C:\Users\mohit\...
Mohit Gupta's user avatar
0 votes
1 answer
36 views

How do I write the X and Y coordinates from the contours array into separate arrays?

I have an image that has a stain on it. I have found the coordinates of the center of the spot and would like to find all the coordinates of the border of the spot. In the future, I need these ...
Dalivania's user avatar
0 votes
1 answer
90 views

Center an image and adding a background at export

I want to automate all of this: Select an object in an image Crop my image on this object Crop to 1:1 aspect ratio, leaving a slight gap around this object Export my image in JPG format in 800x800px ...
Cyril F.'s user avatar
1 vote
2 answers
93 views

How to save the Fourier transform of an image such that I can modify it in an image editor?

I have a noisy image with a particular pattern and I want to remove the pattern. I save the FFT magnitude to a tiff image and the phases to a np.array text file. I have this python code that computes ...
Cristian Cutite's user avatar
1 vote
1 answer
55 views

Multiprocessing manager can't pickle <class 'cv2.Mat'>

I made a multi-process program to analyze images from a camera. The first process constantly reads the image from the camera, the second analyzes this image, the third contains an HTTP server for ...
Кирилл Сыроежкин's user avatar
0 votes
0 answers
28 views

reduce or remove salt and pepper or noise from manga text segmentation

is there any algorithm that can reduce remove salt and pepper or noise without damaging the text segmentation on this case like using Morphological , blur method or fastNlMeansDenoising? for example ...
Xander's user avatar
  • 19
2 votes
3 answers
164 views

Draw a outline mask based on image shape - Using Canny edge - updated

I would like to draw an outline mask (shape) based on the image shape. I am using opencv-python version 4.9.0.80. So when we have an images like these. We want output like this without images inside. ...
NiRmaL's user avatar
  • 3,176
0 votes
2 answers
67 views

Can't seem to recreate Gaussian blur using Numpy

I want to implement Gaussian Blur (similar to cv2.GaussianBlur) using only Numpy but I can't seem to understand how to tackle the alpha channel. My code: # 1D Gaussian PD Function def gauss(x, sigma): ...
DeadAsDuck's user avatar

15 30 50 per page
1
2 3 4 5
205