Questions tagged [convexity-defects]

Convexity Defects is a feature extraction technique that can be used to help in human action recognition by computing silhouettes of subjects using a morphological algorithm.

22 questions
0
votes
0 answers

Image Processing: concaveHull to find defects of an image

I've been trying to identify a method to calculate defects (line roughness) and convexHull is the only real method I've found. This method does exactly what I want with the exception that it doesn't follow the curvature of the lines at all. Below is…
0
votes
1 answer

cv2.convexityDefects kicking me out of a loop with no errors

So I have been trying to get the defects of a contour and its hull. After looking into a few tutorials I have come across similar code, but no matter how I implement it, the line cv2.convexityDefects seems to kick me out of the loop, not displaying…
0
votes
0 answers

Removing all part of the binary image except the area with convexity defect

I am using OPENCV 3.2 and I am working on a binary image.This is an image I am working on. I am trying to remove everything except the hand area ( with convexity defects). I tried blob detection to detect the blobs (other than the hand) but it's…
0
votes
2 answers

OpenCV last convexity defect not right

I am trying to write code to track hands. I am using the convexity defects function to find fingers, but for some reason, there seems to always be a problem with the last defect. Here is a picture of what I'm talking about (sorry, i''m new to the…
Matt
  • 2,232
  • 8
  • 35
  • 64
0
votes
1 answer

Opencv divide a contour in two sections

I have a contour in Opencv with a convexity defect (the one in red) and I want to cut that contour in two parts, horizontally traversing that point, is there anyway to do it, so I just get the contour marked in yellow? Image describing the problem
cvguy
  • 433
  • 1
  • 5
  • 6
0
votes
0 answers

Convexity Defects Error: CV_32>2, pMat>3 and Segmentation fault

Here's the code I am using for Convexity Defects and have searched a lot online for its solution, unfortunately I have seen the question, but never a solution posted worked out, if someone has ever used Convexity Defects kindly…
0
votes
2 answers

Exception with Convexity Defects

I am trying get Convexity Defects from the following code, but keep getting a unhandled exception. What am I doing wrong? vector defects; ContourPoly = vector(contour.size()); approxPolyDP( Mat(contour), ContourPoly,20, false…
user349026
1
2