All Questions
1,212 questions
-1
votes
1
answer
78
views
How to measure the length of image from a masked image using OpenCV?
I am new in image processing and I am trying to improve myself by doing some projects and I have a problem about my project. I have an image dataset containing lakes with their corresponding binary ...
1
vote
1
answer
111
views
How to Detect Thick Lines as Single Lines Using Hough Transform in OpenCV
I'm using OpenCV's HoughLinesP function to detect straight lines in an image. When the image contains thin lines, the detection works perfectly. However, when the image contains thick lines, the ...
0
votes
1
answer
94
views
Drawing a bounding box around the largest contour python CV
I'm struggling to get the bounding box for an identified area in an image. The following code results in this image: https://i.sstatic.net/6HX4dNrB.png. However, as might be obvious from the picture, ...
0
votes
1
answer
113
views
Large contour not found in binary image
I have a binary image (binary_image_full_sizes.png) and I would like to find the large oval contour in the middle. The cv2.findContours() function does not return the contour I’m looking for but when ...
0
votes
0
answers
105
views
OpenCV trouble with consistency: edge detection / contours
Here is a generalized example of the house photo's I am referring to. I’m using OpenCV to detect and outline the roof of a house in a set of images by drawing contours around the roof edges. The issue ...
1
vote
0
answers
65
views
Clustered bubbles or bubbles close together?
I am using OpenCV edge and contour to attempt to analyse the results of a shadowgraph of bubbles. It is working nicely but struggles when two bubbles are very close together, where it views it as one ...
0
votes
1
answer
55
views
To select the first closed round of an image while reading it from left to right
Here, I used the character image like this. When I tried to select only the first closed round portion of the input image, while scanning it from left to right using open_cv -, I got the whole outer ...
0
votes
1
answer
129
views
OpenCV code fail to detect overlapping rectangles in an image
I am using OpenCV to detect rectangles in an image based on their color. The code works well for non-overlapping rectangles, but it fails to detect overlapping rectangles.
Here's code I am using
...
0
votes
0
answers
30
views
The contour is reduced in equal proportions
I'm using opencv's findContours() function to get the contour of the image:
contour, hierachy = cv2.findContours(canny, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)
Expectation: How to use Python to reduce ...
1
vote
0
answers
81
views
Cropping Images in Python/OpenCV so Image Doesn't Include Dead/White/Black Space (Different Size Height/Width)
Background
I have been working to stitch together multiple images in a grid (2 by 2 in this case) using SIFT and ANN. When all of the images are the same orientation, translation scale factor, my ...
0
votes
0
answers
90
views
Determine corner coordinates and Draw contours in OpenCV
Binary mask:
Expected image:
I am working on OpenCV-Python and I have an binary image below.
Next I have an "expected" image that has the contours on it. In this example image, it has 5 ...
-2
votes
2
answers
417
views
Detecting a contour in a noisy image
I am trying to detect the contour of the die edge in the picture, but there is an obstacle on the right top of the image.
Original picture:https://pan.quark.cn/s/0cdf6fe9784f
Whole dataset: https://...
2
votes
1
answer
349
views
Extract photos from a photo album using Python
I have a physical photo album, for which each page might contain one or more photos glued on it.
I took a picture of each individual page, containing multiple photos.
Now, I placed all the pictures ...
0
votes
0
answers
89
views
Detecting first inner black circle and making a contour: openCV and Python
I want to detect the first inner black circle from the white solid using OpenCV and Python.
I have tried thresholding but it is not working properly.
imporrt cv2
guass_kernal = 5
eroded_kernal = (3, ...
0
votes
0
answers
346
views
How to find contours from a Sobel edge detection image
I am doing this to apply Sobel edge detection to an image
# Sobel edge detection
grad_x = cv2.Sobel(blurred_image, cv2.CV_64F, 1, 0, ksize=3)
grad_y = cv2.Sobel(blurred_image, cv2.CV_64F, 0, 1, ksize=...