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
49 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 ...
0
votes
1answer
1k 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
vote
1answer
27 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
24 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 ...
14
votes
3answers
55k views

OpenCV/C++ connect nearby contours based on distance between them

I have to connect nearby contours in an image based on the distance between them which specifies if the contours are to be connected. Now there's a question already on the same problem here https://...
0
votes
0answers
20 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
37 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 ...
0
votes
1answer
297 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 ...
4
votes
3answers
1k 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 ...
2
votes
1answer
1k views

Image Gradient: Light to Dark, Dark to Light

From link: Black-to-White transition is taken as Positive slope (it has a positive value) while White-to-Black transition is taken as a Negative slope (It has negative value). So when you ...
0
votes
1answer
174 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 ...
4
votes
1answer
2k views

How can we know the geometry of a blob detected by OpenCV

I am performing blob analysis using connectedComponentsWithStats, which returns elementary statistics about the blobs (AABB and area). It is also possible to ...
1
vote
1answer
2k views

Opencv Android Perspective Transformation not working as expected

I'm working with perspective transformation in opencv for android for a personal project. The thing I'd like to do is to acquire a document like CamScanner does. For this I import a picture and let ...
1
vote
1answer
46 views

Getting Composition of a Mixture of Colors

I wanted to validate a thought on blending of colours digitally. Imagine I have two colours, $C_1$ $(R_1,G_1,B_1)$ and $C_2$ $(R_2,G_2,B_2)$. Now, I create colour $C3$ as follows: $C_3 = \alpha C_1 + ...
0
votes
3answers
739 views

How to select the specific frame with object

I am detecting the object from the live camera through feature detection with svm , and it read every frame from camera while predicting which affect its speed , i just want that it should select the ...
0
votes
2answers
1k views

Segmentation of warped text lines

I am trying to segment warped text lines found in photos taken from a page of a book (from the camera of a smartphone). This is meant as a preprocessing step before running OCR on them. I have found ...
1
vote
2answers
2k views

Binarization of image for varying background and foreground colors for OCR

I am trying to develop an automated OCR system for images obtained from the internet. The images mostly consist of computer generated text imposed on a background, so the OCR should produce near ...
1
vote
0answers
9 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
0
votes
1answer
178 views

Want to do shot boundary detection via SVM, what are some good features?

I want to do shot boundary detection via SVM's. I'm dividing the frame into nxn blocks. Per block I'm finding these features: shannons entropy edges (H,V,Diag) standard deviation for consecutive ...
0
votes
1answer
412 views

ICY feature detector and edge detector in opencv

I need to trace the internal feature boundaries of blobs (blood cells) in OpenCV to train a classifier. As a good reference from ICY in java, the following sequence of operations gives good, ...
0
votes
1answer
246 views

Can I segment characters from this image with CSV?

I am trying to segment my characters on this image with using column sum vector. This method actually works on the paper I've read about license plate recognition. it looks useful for my images ...
2
votes
1answer
2k 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
0answers
21 views

Do backgroundSubtractor functions in opencv only detect moving objects?

There are some backgroundsubtractor functions in opencv like backgroundsubtractormog2 , backgroundsubtractorGMG and ... . It seems that these functions only detect moving objects in a video and fixed ...
0
votes
1answer
3k 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
73 views

How do I detect the sharp edges in the following image?

I am looking to count the sharp pointy triangular things in the image. However I was unable to do so. One approach I did try was take a convex hull of the contour and then find convex defects but it ...
3
votes
2answers
856 views

What Is the Best Color Space to Work with for Hand Detection: RGB, HSV, or YCrCb?

I'm working on hand gesture recognition using C#. I'm using OPENCV for skin detection but its performance is not optimal. So I decided to do some filtering based on color space, but I do not know what ...
16
votes
4answers
22k views

How do I get the most accurate camera calibration?

First off, I hope this is the correct Stack Exchange board. My apologies if it is not. I am working on something that requires me to calibrate the camera. I have successfully implemented the code to ...
1
vote
1answer
199 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://...
2
votes
0answers
182 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 ...
2
votes
1answer
52 views

What impact have different types of border-handling on high pass or low pass filtering?

When high or low pass filters are being applied to an (grayscale) image, the borders need to be handled separately. They could be filled with 0's or 255's (b/w), repeat the nearest pixel value, or ...
2
votes
1answer
263 views

How to Get Rid of Ripples from a Gradient Image of a Smoothed Image?

I have a gray scale UINT8 image. When I smooth it with a Gaussian filter and then compute the gradient image with a Sobel filter in OpenCV, ripples would appear. ...
0
votes
0answers
31 views

Tracking of rotating objects using opencv

I need to track cars on the road from top-view video. My application contain two main parts: Detecting cars on the frame (Tensorflow trained network) Tracking detected cars (opencv trackers) I have ...
7
votes
2answers
11k views

Measuring the contrast of an image

For a project, I want to measure the contrast of a global image. I want to compare different images to get the image with the best contrast. I know about the Weber contrast, but I need a normalized ...
0
votes
1answer
89 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 ...
1
vote
0answers
14 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 ...
4
votes
2answers
10k views

Image Shadow Removal Using OpenCV and 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
33 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
74 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(...
1
vote
1answer
1k 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
2answers
692 views

How to Create Image Editing Filters

I am trying to make filters for days but now I just want to know the experience of others rather than go on to wrong way and finally decided to put my query over ...
0
votes
0answers
20 views

Calculating a transform with a circle and lines

I am trying to determine the transformation (rotation + translation + scale) between two images in order to shift them. The images are taken with two different modalities that produce very different ...
0
votes
0answers
10 views

Want to create a function that calculates the ISO and Shutter speed based on the brightness of previous image

I want to calculate the shutter speed and ISO of Picamera using the brightness information of the previous image I captured. I have already calculated the brightness of the previous image but I am ...
0
votes
1answer
34 views

What principles to use, in order to create field that will be read by OCR?

I currently have an invoice, where some numbers are written by hand, and I would need to read them automatically. My past experience is that people who write numbers will them write in so many ...
0
votes
1answer
34 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 ...
0
votes
2answers
19 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 ...
4
votes
2answers
2k 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 ...
0
votes
0answers
22 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
2answers
4k views

Bit plane slicing in python

I recently came across a technique called bit-plane slicing for image compression in a book "Digital image processing" by gonzalez and woods . They just presented the theory and i wanted to ...
0
votes
1answer
19 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 ...
0
votes
0answers
15 views

Efficient image matching technique for small match library set

Background A scene captured from video frames from an Android mobile device camera are to be analyzed in real-time. The scene will contain up to 12 distinct photos. The library images to be matched ...