_, contours0, hierarchy = cv.findContours( img1, cv.RETR_TREE, cv.CHAIN_APPROX_SIMPLE)
_, contours1, hierarchy = cv.findContours( thresh1, cv.RETR_TREE, cv.CHAIN_APPROX_SIMPLE)
for i in contours0[0]:
if i in contours1[0]:
contours0[0].delete(i)
print(contours0)
This yields AttributeError: numpy.ndarray
object has no attribute delete
What could be the error? I want to remove matching elements from contour.