I have an array. e.g.:
import numpy as np
arr = []
arr.append(
([0.195, 0.229], [0.673, 0.754])
)
arr.append(
([1.0, 1.903], [0.161, 0.303])
)
arr.append(
([0.052, 0.321], [1.0, 1.929])
)
Each tuple in arr represents the min_X, max_X, min_Y, max_Y
of a rectangle in an image (example resolution: 1280x1080):
return np.array([min_X, max_X]), np.array([min_Y, max_Y])
How can I check to see if any of the ROI's overlap?