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
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 ...
Gaurav Fotedar's user avatar
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 ...
Dennis's user avatar
  • 141
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 ...
orodbhen's user avatar
  • 501
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 ...
Humam Helfawi's user avatar
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 ...
twister's user avatar
  • 141
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?
John's user avatar
  • 27
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, ...
CaffGeek's user avatar
  • 131
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 ?
1010101's user avatar
  • 153
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 ...
pandu's user avatar
  • 434
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 ...
Humam Helfawi's user avatar
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 ...
mimipofi's user avatar
  • 121
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 ...
Youngjae's user avatar
  • 185
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 ...
Humam Helfawi's user avatar
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 ...
devraj's user avatar
  • 407
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 ...
OpenCV User's user avatar
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 ...
Humam Helfawi's user avatar
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 ...
Gaurav pawar's user avatar
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... ...
Eamorr's user avatar
  • 111
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 ...
Samitha Chathuranga's user avatar
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 ...
Humam Helfawi's user avatar
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 ...
user3805574's user avatar
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 ...
user3805574's user avatar
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 ...
Anar Bayramov's user avatar
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- ...
Ibrahim Amer's user avatar
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 ...
Andrew Simpson's user avatar
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 ...
warmspringwinds's user avatar
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. ...
Morgoth's user avatar
  • 101
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 ...
OpenCV User's user avatar
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 ...
kim's user avatar
  • 51
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 ...
kim's user avatar
  • 51
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 ...
Or Cohen's user avatar
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 ...
Anar Bayramov's user avatar
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 ...
Alex Rothberg's user avatar
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 ? ...
Anar Bayramov's user avatar
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 ...
Kuo's user avatar
  • 131
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 ...
Manav Kataria's user avatar
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 ...
Anar Bayramov's user avatar
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 ...
Manav Kataria's user avatar
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 ...
Kuo's user avatar
  • 131
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 ...
Muhammet Ali Asan's user avatar
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-...
Rafael Ruiz Muñoz's user avatar
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, ...
Grim's user avatar
  • 91
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 ...
hasanghaforian's user avatar
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 ...
user657429's user avatar
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 ...
Craig Gidney's user avatar
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 ...
Raoul's user avatar
  • 113
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 ...
user10861's user avatar
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. ...
Asha's user avatar
  • 121
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: ...
aledalgrande's user avatar
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 ...
MRae's user avatar
  • 111

1
4
5
6 7 8