I am reading images with Image.open() and converting them into an ndarray using np.asarray(). I also need bounding boxes; for that I'm using Image.getbbox() when importing images and ndarray.shape later in the code.
I need to reconcile the usual Width-Height coordinate order of the images and the Height-Width order of arrays. Should I transpose the array after np.asarray(image) for preserving Width-Height ordering, or asarray takes care of that?