I think thats what I will do. My current way of storing the crop coordinates is by using lists inside lists.
1 dimension - [(top_x, top_y, bottom_x, bottom_y)]
2 dimensions - [[(top_x, top_y, bottom_x, bottom_y), (top_x, top_y, bottom_x, bottom_y)], [(top_x, top_y, bottom_x, bottom_y), (top_x, top_y, bottom_x, bottom_y), (top_x, top_y, bottom_x, bottom_y)]]
3 dimensions - [[[(top_x, top_y, bottom_x, bottom_y)], [(top_x, top_y, bottom_x, bottom_y), (top_x, top_y, bottom_x, bottom_y)]], [[(top_x, top_y, bottom_x, bottom_y)]]]
Each dimension is added when I scan in the next direction. This was to be able to trace the route of the cropping so I can see where each section of a crop comes from but it does create a few annoying problems so I think I'll just have a 1 dimensional list containing all the boxes.
Thanks
Bookmarks