Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [opencv]

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

1
vote
0answers
50 views

How can I detect pipeline cracks using OpenCV and Python?

I have developed a robot that captures images of the pipeline interior as it moves. The requirement was to be able to detect cracks inside. So far i tried several OpenCV codes that find the crack ...
0
votes
0answers
14 views

How to find a particular shape in an image?

I have a binary image and I want to search a particular shape in it. Like for eg: search for a shape like 'M' in the image. On looking up, I realized that the above task can be accomplished by hit and ...
0
votes
2answers
22 views

Segmenting an image into columns

I want to segment the image below (click for bigger image) into columns based on the natural gaps that exist in the columns. The columns should be perfectly vertical and need not be the same size, but ...
2
votes
1answer
53 views

How to segment multiple overlapping coins (ellipses)

I am doing a program that counts coins (and tells their value by their size) with OpenCV (C++). Let's say we have an image of some coins. If there is an overlap of two coins at the same time, it is ...
0
votes
1answer
38 views

Is it possible to generate depth map from graycode sequence without using printed calibration patterns?

In a camera-projector system, if only the camera's intrinsics are known, is it possible to generate the depthmap fully automatically through a graycode sequence without any manual calibration process (...
0
votes
1answer
161 views

Image processing based on wavelet transform in python [closed]

I take the dwt2 for an image and saved it's coefficients (LL,Lh, hl,hh) using pywt.dwt2 (image,'haar'),in my project I have to change them to uint8 but when I change their types and reconstruct the ...
1
vote
1answer
37 views

Signal in frequency domain with OpenCV dft

I am experimenting with cv::dft: a 1HZ sinus signal is generated, and displayed in the frequency domain. But for some reason it hasn't got the maximum component at ...
0
votes
0answers
48 views

Weird features mismatch using SURF

I'm trying to use SURF to detect an object (particularly a cur number plate) in another image. After unsuccessfully trying to use OpenCV i have moved to MATLAB. Everything works perfect on MATLAB's ...
1
vote
1answer
1k views

Removing noisy lines from image - opencv - python

I want to process different type of image to extract actual text from noisy image .I am using open cv to do this job it is working fine but the problem is I need to set different lower threshold to ...
0
votes
0answers
104 views

What does opencv `mean` function do when passing a mask of zeros?

INTRO I am looking at this project to implement some changes. The project is written in C++ using openCV library. Its goal is to detect cars in parking area to calculate the number of free spots. It ...
-1
votes
1answer
37 views

Scale and Rotation invariant color based feature descriptors

SIFT/SURF/ORB etc are grayscale based, if the two grayscale bitmap is very similar, but the RGB channel is quite different, how to classify them? So, I think there should be some color based feature ...
0
votes
1answer
64 views

How to find the probability of Kalman filter states? [OpenCV+Python]

I am working on a video object tracking problem. I am using Kalman filter to predict and correct the object position return by an algorithm such as CamShift. I want to adjust the likelihood ...
0
votes
0answers
18 views

Compare images of road marker

I just want to check my approaches to the problem and see if they are really correct or whether there can be a better way Problem: I have a scene of road marker (they are predominately lane lines, ...
1
vote
1answer
399 views

blur detection using opencv

I'm writing a script to detect blur images using OpenCV by applying Laplacian filter and calculate the std but there is a problem the std for images that contain motion blur is very close to those ...
1
vote
0answers
32 views

Is the behaviour of the following filter plausible?

I've designed a filter based on this equation $$ E(u) = \frac{1}{2}\int_{\Omega} \left[(u-f)^2 + g(\lVert \nabla u \rVert)\right]dxdy $$ Euler-Lagrange equations in this case are (should be) given ...
0
votes
1answer
59 views

Automatically detect an image collage

I'm trying to automatically detect if an image is a collage vs a single photograph. I'm not too concerned with difficult cases of artistic collages. What I'm trying to solve is rectangular collages ...
0
votes
0answers
31 views

Output of a bank of gabor filters, derive ellipses like regions

I'm trying to implement an algorithm that show how to detect wrinkles in clothes, without going to much into details this is the step that is confusing me. Assuming we have an image $I$ and a set of ...
0
votes
0answers
63 views

API/ Library for re-orienting 360 degree camera frame efficiently

I am trying to correct the orientation of a 360 degree camera frame using roll, pitch and yaw estimates coming from my C++ Extended Kalman Filter (EKF) code. I am interested in using libraries and ...
0
votes
1answer
42 views

opencv otsu binarization not working

I tried to apply opencv OTSU binarization on the following image, but it generate a black image. Here is the following python code: ...
0
votes
0answers
70 views

Object Position and Orientation in World Space using planar marker

I'm new to computer vision and OpenCV stuff. I've to find Object position and orientation in world space. What I'm doing is, Video monitoring of Aruco marker attached on object. Using ...
0
votes
1answer
41 views

Wiener deconvolution in cpp giving back the same image

I was trying to deblur a noisy image using wiener deconvolution. I found this code which added noise to an image and removed it as well. Modifying this code only i tried to implement the exact formula ...
2
votes
1answer
66 views

Gaussian Equivalent of Convolving an Image 50 Times with a Box Filter

I have a image that I'm convolving 50 times with a box filter, and I like to replace this with a single gaussian filter. Because both box filter and gaussian filter are separable I can just study the ...
1
vote
1answer
114 views

How to detach overlapping contours but not to remove small ones. Alternative to erosion-dilation cycle

Background: I'm trying to detect trees on a sequence of aerial images by calculating a stereo disparity for consequent pairs of images. This is how disparity looks like. White spots are trees: Next, ...
0
votes
1answer
177 views

How to recognize speech bubbles in comic strips (Ideally OpenCV)

I need to recognize speech bubbles to send to OCR and also to know where they are in the strip. How could I do this with OpenCV? I'm using OpenCV 2 and Python 3.6
0
votes
0answers
37 views

Techniques for recognizing white rectangular labels in these pictures? (Ideally OpenCV)

I need to recognize these two types of labels. zBar does recognize some of the barcodes sometimes, but I'd need to catch the ones that it doesn't and detect the label, so I can try and straighten up ...
1
vote
0answers
71 views

Skewed rectified aerial images

I have a series of aerial images from which I would like to get disparity maps for every consequent pair. In order to do that I do a stereo rectification. The problem is that sometimes rectified ...
0
votes
1answer
80 views

Redistributing Color in a RGB Image According to a Gaussian Distribution

I haven't done this stuff in a while. If I have an image $I$ I can equalize the histogram of the image using some opencv procedure, it's already defined. Equalizing an histogram means essentially to ...
2
votes
2answers
341 views

Fitting a gaussian image using opencv

I'm reading through the opencv documentation and some questions in SO but it doesn't seem to provide this information. I've an image $I(x,y)$ and I want to find a gaussian function $f_{\mu,\Sigma}(x,...
0
votes
0answers
24 views

Given a image of white lines forming a grid, how to get masks of the interior shapes using opencv?

I am trying to determine if there are pills in different cells of a pillbox. I have a raspberry pi camera that takes pictures of a pillbox at regular intervals. I would like to use computer vision ...
0
votes
0answers
48 views

Approach for determining which cells of a pill box are empty using opencv+python

I am trying to use opencv and python to determine which cells of a pillbox has pills in it (see picture 1). My original approach was: Detect edges using canny Draw lines using hough transform find ...
1
vote
0answers
98 views

Pattern recognition

I am new to the world of computer vision, so please excuse my basic questions. I have two patterns: one consisting of a single circle of radius $r$, and one made of several circles, still of radius $...
0
votes
0answers
37 views

How to measure relative distance (Y axis) between two physical objects? - AR app

I am currently developing an AR app that reacts to various positions of physical objects (lego-like bricks) that are placed on the desk in a real-time. If I place the first block on the desk and ...
0
votes
0answers
12 views

Object Recognition: building a system with low resources to recognize an object

Im new at the CV topic. Im dealing with building a system with low resources (raspberry pi 3, Mysql-DBs) to recognize objects and declare if it is in the correct place. Let me explain better... ...
0
votes
0answers
216 views

How can l get dense optical flow on superpixeled consecutive frames

l would like to compute dense optical flow over two consecutive frames frame 1 and frame 2. ...
0
votes
1answer
2k views

Line Detection with OpenCV and Python [closed]

Why do we get less amount of lines then desired in line detection using HoughLines tranformation from OpenCV? How could we improve this method and get all the lines appearing in the image? I would ...
0
votes
1answer
116 views

Manipulating RGB color by copying channel value

I have a picture and trying to swap the RGB channel into RRB, it's like I need to change all G pixels value into R. I did that by copying the R pixel value to G and store it into a new image file (Mat)...
1
vote
1answer
1k views

Given a set of lines, find only those who are parallel (perspective)

I have an image which includes straight borders which I need to detect: The borders are thick, which causes hough transform to detect multiple lines for each border, as can be seen in the following ...
0
votes
0answers
28 views

image processing : Segregating panel vs house like structure

I am working on a problem that involves segregating solar panel vs house. Both the house as well as panel are of same color. NOTE: There are two houses in the image. I am referring to the one which ...
3
votes
2answers
3k views

Shadow removal opencv python

How do I remove a shadow after MOG2 background subtraction using OpenCV Python? I used all morphological operations, gaussian and median blur, thresholding. it removes noises but deep shadow is ...
0
votes
0answers
102 views

Any other method similar to template matching?

I am trying to identify the basketball courts in my area, I've tried multiple methods/tutorials from the OpenCV website. E.g. Feature Matching + Homograph, Brute-Force Matching, FLANN Based Matcher, ...
1
vote
1answer
554 views

How to detect curve in chart grid?

I would like to detect a curve in a grid. Example (hand-drawn): https://imgur.com/a/WsE85 I would like to detect the intersects of the curve with the vertical gridlines marked with the "x" symbols. ...
0
votes
0answers
42 views

people detection

I am doing a project to count the number of passengers using opencv. Does background subtraction give best result? How do I count the number of people based on the number of bounding boxes (detected ...
0
votes
1answer
398 views

Why entropy is undefined in low contrast image

I am trying to measure contrast of image by entropy of histogram of image. Code for computing entropy ...
0
votes
1answer
696 views

Calculating distance between two blobs in a binary image in microns

I have a monochrome CCD camera with resolution 960 X 1280 and can give up-to 15 fps I am working on python opencv. I want to track the distance between two rectangular blobs in binary images in real ...
1
vote
0answers
31 views

Obtaining SubpixelResolution for video processing in python

I am working on a video processing application to calculate distance between two points using opencv Specs : Linear Pixels - 1600. FOV - 100 mm Resolution per pixel using above data : 62 micron ...
0
votes
1answer
33 views

How to choose good features for my machine vision application? [closed]

I am trying to create an application (with OpenCV3) that can distinguish sidewalks from streets by a real-time camera that is embedded in a glass. I have 3 question about this project: Which features ...
0
votes
2answers
2k views

Does the cv2.waitKey argument determine the frame-rate while capturing a video?

Kinda new to image processing, so pardon me if the question is too stupid. Using the library cv2 in python to capture video from my webcam, which, so far as I can see as a programmer, is basically ...
1
vote
1answer
946 views

Improving Template Matching Algorithm for OpenCV

Car detection using OpenCV I am working on a small personal project where i have to know wether an image shown is a car or not. I am using the basic OpenCV python based template matching. Positive ...
0
votes
1answer
1k views

computer vision - How to correctly calibrate my camera with a wide angle lens using openCV?

I am trying to calibrate a camera with a fisheye lens. I therefor used the fisheye lens module, but keep getting strange results no matter what distortion parameters I fix. This is the input image I ...
0
votes
1answer
52 views

Determining the pattern direction of a bitmap image

How can I obtain average direction of the pattern shown in the figure below. It is the direction of the red arrow relative to the yellow (horizontal) line. Any ideas for an approach? I couldn't figure ...