People who code: we want your input. Take the Survey

Questions tagged [opencv]

OpenCV (Open Source Computer Vision) is a cross-platform library of programming functions for real time computer vision.

Filter by
Sorted by
Tagged with
0
votes
1answer
8 views

Is there a way to find the contours of instances in a binary mask image by color?

I need to find the contours for each of the instances of microscopic cells in a binary image mask of dimensions 256 x 256 shown below. My approach involves thresholding the image to get a binary mask ...
0
votes
0answers
6 views

Finding a better threshold in a more accurate manner in OpenCV

I have a grayscale image, the dominant colors in the background are shades of white and light gray, I have tried using otsu binarization but it gave no good results, so I decided according to the ...
1
vote
1answer
82 views

How to remove dark shadows from camera capturing when combining LED spots and ambient light

I'm getting strange moving shadow strips on my camera capture during a computer vision experiment: As the gif image above shows, those strips move to bottom slowly. I have also noticed that it ...
5
votes
1answer
67 views

How to detect rectangular images inserted into another image?

It's just for a simple binary classification, so it's not needed to find the location of the inserted image or the content. I'm only interested in checking whether something like that is present or ...
2
votes
1answer
53 views

How to Remove Double Lines Detected Along the Edges by Edge Detector?

I'm trying to take real time input for hand gestures with web cam, then processing the images to feed them to a neural network. I wrote this processing function to make the hand features look ...
0
votes
0answers
18 views

Erode image until all objects are a single pixel?

Suppose I would like something more dramatic than skeleton, and would like to erode everything connected to a single point -- but stop there. As in, I want to keep the single point. Is this possible ...
0
votes
0answers
6 views

Complex Distance Transform containing distance and angle info?

Is it possible to obtain a distance transform with the distance (float) and angle (in radians) from the nearest pixel? I would be using python and the library I am ...
0
votes
1answer
27 views

image processing find liquid level (only with images processing, no AI)

I want some ideas to get the level of a water/liquor in a cup. i tried many ideas (contours, edges,...) but nothings is working. So any ideas that i can explore.
0
votes
1answer
16 views

Morphological operations to isolate and preserve network graph structure?

Suppose there is an image with long, connected lines which form connected, closed cycles in an image. Is there a standard morphological approach to isolate only the lines, and drop all other pixels? ...
0
votes
0answers
20 views

How to calculate the magnitude while calculating Blur in an image using using OpenCv based on Fast Fourier Transformation

I am working on image blur detection and found 3 methods for it. One is Laplacian Method but it works good with Gaussian, average, median and other distribution ...
0
votes
1answer
19 views

What is the function of init in Active Contour Model

In practice of image processing using scikit-image, I didn't understand the role of constructing init numpy array in Active Contour Model example. Is it the red section drawn in the example astronaut ...
1
vote
0answers
42 views

2D Deconvolution using a non-gaussian mask using C++

I am currently working on a project, where we record an electron beam profile using a target. The obtained image is a result of convolution of the actual beam profile and the aperture wherein the ...
0
votes
1answer
18 views

Suggestions for creating 3D Bounding Boxes of Books on a Shelf from RGB-D Images

I am new to image processing, so I beg your pardon if this is a trivial question. I am trying to use an RGB-D camera to detect 3D bounding boxes of books on a shelf. Here are some examples of possible ...
0
votes
0answers
10 views

Is there any way to know whether the disparity is negative without stereo rectification?

For one stereo camera, stereo calibration is performed to obtain intrinsic and extrinsic parameters during manufacturing. During the process of usage, intrinsic and extrinsic parameters may be changed,...
0
votes
0answers
32 views

How detect if an object is missing from an image and set a Raspberry Pi GPIO output

I'm pretty new in OpenCv and Python. I want to detect an image. If a particular object is missing from the image set a GPIO output using on a Raspberry Pi. What would be the right way? I don't want ...
0
votes
0answers
38 views

Find camera tilt

If I have a camera that captures tilted images what is the way to find the tilt of the camera? Is there a pattern that I can photograph or something similar. I want to reduce the tilt as precisely as ...
0
votes
0answers
54 views

Target Plane Orientation Detection in a Distorted Image

Doing a camera calibration of an extremely distorted camera ( wide-angle ) the OpenCV gives us the rogdriguez and the transpose vectors of each image used in the calibration process. How do they do ...
2
votes
0answers
42 views

Taylor series approximation in Harris corner detection

While watching through the computer vision lecture on interest point detection, computing $E(u,v)$ requires computing the quantity $$E(u,v) = \sum_{x,y}(I(x+u,y+v) - I(x,y))^2$$ In the lecture, $I(x+u,...
0
votes
1answer
32 views

Harris corner detection shape of $E(u,v)$

I am taking a computer vision class and I have just learnt about the Harris corner detection concept. A corner is detected when a small shift in a window function defined around the corner results in ...
0
votes
0answers
100 views

Extracting articles from epaper into individually cropped image

I want to segment the image below (click for bigger image) into columns based on the natural gaps that exist in the columns. The article columns should be perfectly vertical and need not be the same ...
1
vote
0answers
32 views

What is the order of the output of HoughCircles in OpenCV, when having several circles on a frame?

So I am trying to use stereo vision to calculate the depth of several red balls. With the function HoughCircles, I get an output at one frame from one of the cameras like for example: ...
0
votes
0answers
26 views

Python, Is there a way to find the properties of a subregion within a larger image region?

The goal: I have images with particles that I need to find the area of. Each particle also has four to five sub-regions that I need to know the area of. Think of a bunch of stripped shirts in a ...
0
votes
0answers
17 views

Discrete Fourier Transform on images using OpenCV

I applied DFT on an edge image (attached both). I expected the output image to not have very low frequencies (~0).[Refer this link for more info] But the output I got consisted of low and high ...
0
votes
0answers
38 views

How to calculate fisheye distortion error

OpenCV offers a fisheye library for calibrating wide-angle lenses. I have implemented the calibration and want to verify the reprojection error by using a new set of images. So is there a function to ...
1
vote
0answers
40 views

Fisheye Lens Calibration for precision

OpenCV library offers a fisheye calibration method. I have looked at the code and looked at some papers and still don't understand how it works completely. The reason why I am interested is following: ...
0
votes
0answers
552 views

How can i get Celsius/kelvin temperature from a thermal image in python language?

How can I convert RGB values of the thermal image into Celsius or kelvin temperature in python? Here is the thermal image taken by a FLIR device: Here I am reading image using OpenCV and getting the ...
2
votes
0answers
346 views

Is rotation of a Fourier transform the same thing as Fourier transform of a rotation?

I'm working on an image processing problem and wondering if DFT(rotation(image)) == rotation(DFT(image)) (1). My final goal is to apply rotations in the Fourier domain then do an inverse Fourier ...
0
votes
1answer
39 views

Low samples numbers machine vision training for object detection

I'm trying to set-up a machine vision application in which I have to detect the position of a printing nozzle (in the red sqaure in the image) in a field of view in order to prcisely position a ganty ...
3
votes
2answers
233 views

what is the difference between the convolution and differentiation over image in image processing?

In image processing the differentiation and convolution are the terms that are used interchangeably. What is the difference between applying convolution and differentiation over the image? How we ...
0
votes
1answer
92 views

Why we have to multiply the images with $(-1)^{x+y}$ to center the transform in frequency domain filtering?

To perform the filtering infrequency domain we perform multiplication of $(-1)^{x+y}$ why??
0
votes
1answer
143 views

How the Grayscale images are converted back to RGB?

In case of RGB to grayscale conversion we take the average of R,G,B channels and convert them to Grayscale which has songle channel. How to convert back the Grayscale to RGB ??
0
votes
0answers
96 views

Use sparse optical tracking to track a Bounding Box object

I need some help on solving this issue. Any tips are appreciated. The goal of the project is to try to track a Bounding Box object, chosen arbitrarily in an image, throughout many frames of a ...
0
votes
0answers
122 views

Calibrating cameras with different resolutions

I have two cameras with very different resolutions. One camera is the RGB camera of the microsoft kinect sensor with a resolution of 1920x1080 and the other one is ...
1
vote
1answer
184 views

Salt and Pepper impulse Denoising opencv

I am creating a generic method to work on salt and pepper noise and variants. The example images are as shown below : I tried few methods, such as ...
1
vote
0answers
32 views

Finding defects in wall paint (finding difference in textures)

I have been experimenting with computer vision techniques to find defects in paintings, more specifically defective brush strokes. I have tried a handful of techniques such as different filters, One ...
0
votes
0answers
40 views

Finding point height on a cup using OpenCV

Suppose that I want to find the 3D position of a cup with its rotation, with image input like this (this cup can be rotated to point in any direction): Given that I have a bunch of 2D points ...
1
vote
2answers
287 views

How to find position, scale and rotation of a known shape/contour in an image?

I have an image of an object. The image shows a high contrast outline of the object. It is guaranteed that the image shows exactly one object. The shape/contour of that outline is known. It is not ...
1
vote
1answer
125 views

Licence plate enhancement

Is it possible to enhance the image below and make it more readable? I have tried apply binarization but there is some kind of shadow. So I have tried to convert image to gray scale and then ...
1
vote
0answers
20 views

How to find location of minimum dimension of contour using opencv?

suppose this is our input image and now we have to detect the point of minimum dimension, which I show as the red dot in an output image
1
vote
2answers
4k views

Running the BM3D Denoising Algorithm in Python

I am looking for a strong baseline in image denoising and therefore wanted to have the BM3D algorithm in my benchmark. These 2 python implementations: https://github.com/ericmjonas/pybm3d https://...
1
vote
0answers
28 views

Looking for a way to fill holes in objects, and break bridges between them

I am trying to extract building footprints from satellite images. Using a series of morphological operations i.e erosion and opening by reconstruction, I'm able to obtain the footprints, albeit with a ...
0
votes
0answers
46 views

SIFT between 1 image and dataset (2 images)

I use SIFT, and I want to find the angle of inclination of an image compared to two reference images, in short: I have 3 images : Image x: input image Two images 1 and 2, reference images that are ...
0
votes
1answer
39 views

How to produce color image using edge detected images?

Hi I am trying to produce an image which is a combination of multiple images such as in focus stacking. Now I have 6 photos and I want to produce a final image such that the final image uses blocks of ...
1
vote
1answer
127 views

Detect valve position without colors

I can't find a solution for my problem and I need your help. I have to create an application to detect if a valve is open or close like this : https://www.youtube.com/watch?v=VY92fqmSdfA Some ...
0
votes
0answers
65 views

Face image quality assessment

I'm trying to filter out bad face images (with artifacts) generated by StyleGAN. Is there a good image quality measurement mechanism in python for doing this? I've tried using BRISQUE but it is not ...
0
votes
1answer
23 views

How do I filter out this horizon from my contour?

I am trying to identify the T-rex and obstacles (cactus and bird) from Google's no-internet game. What I have done is: Apply GaussianBlur filter Apply Canny Apply Dilate Apply erode findContours ...
2
votes
2answers
40 views

Recommended Order of Performing Denoising, Deblurring and Super Resolution on an Image

In the normal workflow of image processing, there are multiple operations, increase image contrast, image denoising, image deblur and image super-resolution. What are the sequence/order of performing ...
2
votes
1answer
264 views

Finding Homography Matrix Using Lines

I have some Points and Lines from original image and the corresponding points and lines from top view image. -> I tried to find homography using points Used OpenCV function findHomography(...
0
votes
1answer
28 views

Gender classification using Periocular Region [closed]

I have a dataset of the periocular region, I have images of the male and female periocular region but they are only labeled as left and right periocular region, Folder is a mixture of male and female ...
1
vote
0answers
25 views

Size filtering on binary images

I have noisy images from which I extract the contours using OpencCV's findCountours, which performs binarization internally. This results in innumerable small ...

1
2 3 4 5
7