I have an numpy array of dimension values in this structure:
arr = array([[3067, 78, 3172, 134],
[3237, 89, 3394, 128],
[3475, 87, 3743, 141],
[3763, 86, 3922, 131],
[3238, 147, 3259, 154]])
which basically stores the location of data located in the screen, where the values represented as: [x_left, y_top, x_right, y_bottom]]
I only need to work on the x_left values, as I am trying to find where on the page I am most likely able to find these objects.
I am aware of scipy.mode, which returns mode values. Is there a way to return multiple modes, say the top 10 mode values in a given numpy column? Better yet, is there a way to use mode so that a mode is within a given range? For example, the lines above have x_left values of 3237 and 3238, which are fairly closely aligned. Is there a way to calculate these two as a single mode value?