Questions tagged [opencv]
OpenCV (Open Source Computer Vision) is a cross-platform library of programming functions for real time computer vision.
356
questions
1
vote
2
answers
3k
views
How to find the actual size of an existing object from the pixels of an image?
I am quite new to vision and OpenCV, so forgive me if this is a stupid question but I have got really confused.
My aim is to detect an object in an image and estimate its actual size. Assume for now ...
2
votes
3
answers
2k
views
Segmenting and labeling chessboards through computer vision
With almost no experience/knowledge in computer vision, I am currently trying to segment and label the separate squares on a chessboard (i.e. a1 ... h8). My goal is to use the information to ...
5
votes
1
answer
11k
views
Computing cross-correlation of two images using OpenCV
I have a program that uses OpenCV to compute either the convolution or cross-correlation of an image with a specified kernel. I compute cross-correlation by setting the conjB flag to true when calling ...
1
vote
1
answer
130
views
mathematical transfer for different camera attributes
Suppose I have two camera shoots(Image1,Image2) for the exactly same scene (each pixel is alignment correctly) but from different cameras and different light conditions. I want to remove this light ...
4
votes
2
answers
5k
views
Metal Defect Detection
I am developing a machine vision project to find defects on metal surfaces. I want to learn and implement algorithms which commercial systems are use for metal surface defect. My sample object as ...
2
votes
1
answer
768
views
Getting blobs from similar colored contours in grayscale image
I want to select the staff lines as individual blobs in either of these images:
Is this possible?
0
votes
0
answers
3k
views
Tracking a ball (using EmguCV)
I've got a video of a ball, I've done background subtraction (using MOG2) to isolate the change in the image. And I'm performing a blur to remove some of the noise caused by light/shadows/etc.
So, ...
5
votes
1
answer
16k
views
K-means for 2D point clustering in python
I have a set of points(2D) whose pixels are set and want to perform k-means on these pixels. Is clustering the 2D coordinates the right way ?
If so, can that be done using any libraries in python ?
1
vote
0
answers
73
views
Is MATLAB the best coding tool for Digital Image Processing? [duplicate]
I am a beginner. I do coding in Matlab only for image processing purpose. But my friends say it is very slow and in OpenCv I could get multiple times faster output results compared to Matlab.In basic ...
0
votes
1
answer
4k
views
Balance brightness and contrast between two images
I have two different images for the same object. Each one was taken from different device (scanner, mobile camera, professional camera ..etc).
the process of registeration one of them to the other ...
2
votes
1
answer
5k
views
get convex hull of isolated shapes with openCV/C++
I have segmented CT images, something like the following one:
I would like to get a convex hull that contains all the white regions.
Something like this circle, but more fitting, and of course not ...
6
votes
3
answers
3k
views
What Is the Cause for Poor Results with Adaptive Thresholding?
I try to run text cleaning process based on the camera captured image.
By using OpenCV adaptive threshold method with parameter ...
0
votes
2
answers
2k
views
Median filter algorithm in opencv
I was wondering about the implementation of the Median Filter in opencv because I am suffering form its slowness. So, I intend to implement another one on my own but first I want to make sure about ...
1
vote
2
answers
2k
views
Finding the Harmonics contained in an Image?
I am beginer in image processing. Any signal whether it is 1D,2D or any multidimensional signal can be represented using combination of number of sine and cosine wavesforms (harmonics). Similerly any ...
5
votes
5
answers
29k
views
Noise Removal from an Image Using OpenCV (Comparison to Neat Image)
I tried removing noise from the image shown below using Median Blur in OpenCV. But i'm not able to remove the colour noise completely as it is done in Neat Image. Any suggestions.?
1. Original Input ...
0
votes
2
answers
234
views
Matching two very similar images
I have two images for the same object from the almost same perspective (no more than 1-2 degrees or 1-2 mm is acceptable).
I want to change the perspective of one of them to match exactly the other so ...
3
votes
2
answers
21k
views
In opecv function Hough circles how does parameter 1 and 2 affect circle detection and how can I adjust them to increase accuracy?
I'm using opencv houghcircle function to detect circles.
http://docs.opencv.org/doc/tutorials/imgproc/imgtrans/hough_circle/hough_circle.html
Problem is if I set minimum radius to null it detects ...
1
vote
2
answers
3k
views
Image processing (number recognition) woes
So I have the following image:
Using GIMP, I was able to get to here:
Select all white color (with a touch of fuzz)
Invert selection
Cut selection
Invert all color (goes black)
But now I'm stuck...
...
1
vote
1
answer
7k
views
How to detect all the connected neighboring pixels which have same color value in opencv
I should be able to input a pixel position and get all the same coloured(in my case it should be black) pixels which are connected to it. How to do this in opencv with c++. Simply the output pixels ...
10
votes
2
answers
5k
views
Isolate the non blurred part of foucsed image
I have an image taken by a mobile phone camera with focus on a part of it let say a face or whatever.
I want to know -approximately- where is the focused area. For example, a bounding box around the ...
1
vote
1
answer
9k
views
How to calculate the luminance of an image?
Is there any method for calculating luminance of an image?
As from wiki got to know Luminance is an amount of energy perceived by the observer and LUX is different from brightness.
But still is ...
0
votes
0
answers
337
views
snr calculation of frame
I have to calculate SNR of an image. I have camera through which continuous images are getting generated, my requirement is to calculate the SNR in db for each image.
I have seen lot of the examples ...
2
votes
1
answer
97
views
Primitive Feature Detection to Detect a Black Circle within an Image
I am trying to check whether this black circle is exist or not on my images.
My current approach is like that;
Hough Circle detection
Crop the outer roi
Adaptive threshold
count zero pixels
if ...
1
vote
2
answers
6k
views
Skew detection and correction using Fourier transform
I was trying to implement skew correction method for scanned documents using the method described in this paper.
The algorithm steps:
1- Threshold the image .
2- Find the fourier transform.
3- ...
0
votes
2
answers
585
views
Removing the 'red' artifact from my JPEG
I have a JPEG that originally came from a IP Camera. I have converted the JPEG to a bytes and have uploaded it to my server. Upon receiving it on my server I save it to disk.
When I view the image it ...
2
votes
1
answer
502
views
Efficient Hessian-Laplace blob detector implementation
As it is mentioned in a paper for SURF, it is possible to approximate hessian determinant using integral images.
If I want to implement Hessian-Laplace detector, is it feasible to also approximate ...
0
votes
1
answer
6k
views
Circle detection opencv
I Would like an explanation of the parameters for opencv's HoughCircles function.
I'm new to image processing in general and I have recently started using opencv. ...
1
vote
1
answer
7k
views
DFT and Inverse DFT in Image Processing
I have implemented DFT from Vision & Graphics Group at the Faculty of Informatics and Information Technologies STU - Frequency domain filtration.
Tried taking dft for the three Channels(R, G and ...
5
votes
3
answers
4k
views
How to remove text region in a document image? or extract image from a document image
Given a document image (i.e. newspaper), how to extract photos in it or remove text region?
I think traditional OCR methods may not be suitable here, as I don't need to recognize the text, and OCR is ...
0
votes
0
answers
239
views
How do I deal with occlusion, warping, or perspective distortion for object detection
I am using SIFT features for detecting logos in clothes. SIFT is quite powerful, as it is scale invariant, but how do I deal with the problem of occlusion and warping?
More specifically, the logos in ...
0
votes
0
answers
197
views
Creating a texture image from existing image
I have some unusual question. I have searched online and couldn't find something similar to what I want to achieve.
I have an image, and I want to create a new image from it (in the same size), so ...
0
votes
4
answers
365
views
Is this image good enough for OCR?
Hello I'm trying to ocr on a special image.
I've done adaptive threshold , polartocartesian transformation.
this is my original image
this is adaptive threshold
this is polartocartesian ...
2
votes
1
answer
686
views
Gap Filling Contours / Lines
I have the following image:
and I would like to fill in its contours (i.e. I would like to gap fill the lines in this image).
I have tried a morphological closing, but using a rectangular kernel of ...
0
votes
1
answer
316
views
How to choose suitable segmentation process for image processing
Hello I'm new on image processing.
I know there are a lot of threshold and region growing algorithms to use.
But I would like to know what is the trick for choosing suitable method for an image ?
...
8
votes
2
answers
6k
views
How to remove the noise without destroying the main edge?
I am working on a project. I want to segment a logo from a car and the picture's size is 3648*2432. The logo is selected by the red rectangle.
I extracted this area and turn into gray level. The ...
9
votes
1
answer
3k
views
Is it possible to hack camera calibration without having access to the camera?
Many times we have a stream of video to process without access to camera. Having access to camera matrix would be beneficial for various processing techniques. Is it possible to hack camera ...
4
votes
1
answer
836
views
Feature Detection on a Circular Metal Surface for Character Recognition
Hello I'm trying to recognize characters on the circular metal surface.
Without any preprocessing I could match cropped features with original image.
I've actually cropped 2 characters together to ...
1
vote
1
answer
7k
views
OpenCV Motion Analysis: Optical Flow vs Motion History
OpenCV Motion Analysis Documentation lists multiple techniques for motion tracking:
Sparse Optical Flow | calcOpticalFlowPyrLK,
Dense Optical Flow | calcOpticalFlowFarneback, and
Motion History ...
0
votes
1
answer
4k
views
How to detect the exception by SVM with openCV
I have implemented SVM by openCV. However, I have a problem about SVM with openCV. For example, I have six categories, but I just use "five" of them to train my SVM. When testing, I want my system ...
0
votes
0
answers
2k
views
Why Normalized Cross Correlation Score of different templates is high?
I am using OpenCv's built in template matching function to search for an object in image. I am using Normalized Cross Correlation Method.The function is returning a value which I think indication of ...
0
votes
1
answer
1k
views
Shape recognition, hough transform
I'm trying to match a picture saying "this is ducks, this is towers" by giving votes from the hough transform of a picture.
I've found this article http://ttic.uchicago.edu/~smaji/papers/hough-...
1
vote
1
answer
378
views
Does accurate translation estimation using a camera matrix mean the orientation estimation will also be accurate?
Pose Estimation of single camera and planar pattern:
If I have an appropriate camera matrix with intrinsic parameters that allows me to calculate translation of the camera relative to a chessboard, ...
1
vote
1
answer
5k
views
Detecting text lines in image by means of Hough Transform
In my Android App,I have to detect text lines in images.I want to use Hough Transform to detect lines.You can see an image below:
I got edges in image by ...
0
votes
1
answer
2k
views
Skeleton from distance map
Can anyone give some tips how to obtain Skeleton from distance map?
I already managed to obtain skeleton using erased method (e.g. zhang suen) but it's time consuming because it's an iterative method ...
0
votes
2
answers
10k
views
Finding local brightness maximas with OpenCV
I want to find points (of a processed image) that are the brightest in their local region.
Basically, I want all of the points whose 8 neighbors are all smaller but I want to have brighter maxima ...
1
vote
1
answer
756
views
Is a change in colorspace needed when comparing colors only evaluated by the computer?
I am confused about the need to change color space for color comparison. I have read about delta E, the Lab format, and I do understand that comparisons in the RGB color space will not seem ...
2
votes
0
answers
3k
views
Why is LBP generaly faster than HAAR?
I am digging into Haar like and LBP features. More precisely its implementation in OpenCV. Every article or forum entry I found states, that LBP is faster than Haar. My local tests also confirm this ...
2
votes
2
answers
3k
views
Template matching or object recognition?
Problem: I have a photo of an object (a manufactured part like the attached photo below), using my Andoird phone camera I want to verify if the object in camera preview matches to the template or not. ...
1
vote
0
answers
120
views
High triangulation error
I have implemented a 2D->3D point triangulation method, which uses 2 poses P1 and P2 and 2 points back-projected to z=1 point1 and point2 to recover depth:
...
1
vote
0
answers
936
views
Visual regression test - Extract elements of GUI-Screenshot - MSER OpenCV
For a visual regression test I need to compare screenshots of webpages (different release-versions). I started with pixel by pixel compare. Actually I split the screenshot in different parts (maybe ...