I am trying to find the union of two contours using OpenCV in Python. The catch here is that I only want to use the contour points to perform the specific operation without drawing the contours as described in the answer Here. I have tried the solution given in the answer and was hoping to find some solution which does not involve drawing the contours first and then again using the findContours function to find the merged contour.
Asked
Active
Viewed 280 times
0

Christoph Rackwitz
- 11,317
- 4
- 27
- 36

Ahmad Javed
- 544
- 6
- 26
-
show us the contours. as a picture and as data. – Christoph Rackwitz Jul 17 '22 at 14:06
-
1you can use a library like `shapely` [link](https://shapely.readthedocs.io/en/stable/manual.html#shapely.ops.unary_union) – Markus Jul 17 '22 at 15:11
-
I don't know of any built-in method in OpenCV, but [this answer](https://stackoverflow.com/a/19475433/1377097) should help if you want to make your own. – beaker Oct 09 '22 at 18:25