contour Questions
4
Solved
I have a skeletonised image (shown below).
I would like to get the intersections of the lines. I have tried the following method below, skeleton is a openCV image and the algorithm returns a lis...
Recrement asked 17/1, 2017 at 19:29
2
I tried to find contour with cv2 python library in a skeletonized image created with scikit-image and i got this error:
contours, hierarchy = cv2.findContours(skel,cv2.RETR_TREE,cv2.CHAIN_APPROX_...
Rancourt asked 22/4, 2013 at 21:10
1
With opencv, I'm detecting contours and selecting some of them:
CNTS = []
_, contours, _ = cv2.findContours(gray, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
for c in contours:
if some_cond...
Sivie asked 29/10, 2018 at 17:57
2
Solved
I am trying to draw contour around an image. I can see that contours being found but I am not able to draw the outline. The color of the contour seem to be either of the two (black and white) color...
Renaerenaissance asked 6/9, 2018 at 21:14
2
Solved
I need to use cv::FindContours() in a program and I have to know the algorithm behind that.
What algorithm does openCV use to find contours?
How does it work?
Croquette asked 3/5, 2012 at 8:9
1
I have a 3D plot of a disk.
Now I would like to plot the surface in color depending on values which are stored in an array.
E.g. the radius of the disk is 300mm. The array could like:
arr = np.arr...
Reinhart asked 4/8, 2018 at 10:9
2
Solved
I'm trying to isolate letters in a captcha, I managed to filter a captcha and that result in this black and white image:
But when I tried to separate the letters with findContours method of Open...
3
Solved
I am trying to generate an image of a random contour using python but I couldn't find an easy way to do it.
Here is an example sort of what I want:
Initially I tought of doing it using matplotl...
Amandy asked 7/6, 2018 at 1:32
1
Solved
I have drawn a contour around extreme points. Inside polygon figure I have others points.
How to check if they are inside contour?
2
I'm relatively new to ggplot2, and I'm having trouble adding appropriate labels to my contours.
Using the classic volcano example, I can add labels to the default contour plot:
library(plyr)
lib...
1
Solved
I have this image:
What I am trying to do is to detect the center of mass of the inner contour (number 3) inside it.
This is the code I have right now:
import cv2
import numpy as np
im = cv2....
1
Solved
I want to crop the biggest object in the image (Characters). This code only works if there is no line (shown in the first image). But I need to ignore the line and make the image of the second imag...
Pownall asked 30/3, 2018 at 16:32
3
Solved
Suppose if we are working on an image, is there any way to access the pixels inside the contour?
I have already found the contour using the function findContours() and even found the moments but I ...
4
Solved
I have a pet project to create images of maps, where I draw the roads and other stuff over a contour plot of the terrain elevation. It is intended to plan mountain bike routes (I have made some vec...
Thetic asked 25/11, 2011 at 0:31
2
Solved
I better explain my problem with an Image
I have a contour and a line which is passing through that contour.
At the intersection point of contour and line I want to draw a perpendicular line at t...
1
I have a data set formed by a 9 points observed in a combination of 2 variables with 3 values each, i.e.
x <- c(0,10,100)
y <- c(0,25,30)
z <- matrix(c(1,2,3,4,5,6,7,8,9), nrow = 3, ncol ...
Probity asked 21/11, 2017 at 12:21
1
Solved
The documentation for it is scarce (in contourc function):
VN is either a scalar denoting the number of lines to compute or a vector containing the values of the lines. If only one value is want...
Pipit asked 28/9, 2017 at 15:46
2
I'm attempting to plot my dataset, x and y (generated from a csv file via numpy.genfromtxt('/Users/.../somedata.csv', delimiter=',', unpack=True)) as a simple density plot. To ensure this is self c...
Weal asked 12/8, 2015 at 21:36
1
Solved
I am trying to generate contours using Plotly. There are 5 contours which I am plotting in a 5x1 grid using subplots. I am unable to see an option by which I can have a separate colorbar for each c...
2
Solved
I'm using OpenCV (Canny + findCountours) to find external contours of objects. The curve drawn is typically almost, but not entirely, closed. I'd like to close it - to find the region it bounds.
H...
Geranial asked 30/1, 2014 at 23:9
2
Solved
I am using OpenCV's cv::findContours function to extract contours in a binary image, in particular, I'm extracting a hierarchy of contours (using the CV_RETR_CCOMP flag). At some point in my furthe...
1
Solved
I want to represent data with 2 variables in 2D format. The value is represented by color and the 2 variables as the 2 axis. I am using the contourf function to plot my data:
clc; clear;
load('da...
0
I am new to OpenCv with Android.I am trying to make an application which auto detects documents using OpenCv - 2.4.13 . In my app, there is a functionality of detection documents (like a Scanbot ap...
Serg asked 19/6, 2017 at 7:38
2
I am trying to draw a line that goes through the given blobs. The following is a given example
I want a curve line that goes through multiple blobs in horizontal direction as shown below.
Prieto asked 7/6, 2017 at 7:40
2
I am trying to identify cards from a photo. I managed to do what I wanted on ideal photos, but I am now having hard time applying the same procedure with slightly different lighting, etc. So the qu...
Huntlee asked 21/12, 2015 at 5:18
© 2022 - 2024 — McMap. All rights reserved.