I have a custom game engine I am writing, where I feed a sprite sheet into a python file to produce a JSON detailing which of the 8 adjacent spaces can have a given tile layer appear.
I am attempting to create a bounding outline of each sprite in a sprite sheet and I need to be able to translate opencv's imread from an origin of 0,0 being at the top left corner -> bottom left corner as the origin.
I know I can flip the image, but that's not what I'm looking for. I want to invert the y axis such that y increases from the bottom to top, while the x-axis remains unchanged.
Have also seen examples where, using MatPlotLib, the y axis itself can be inverted. But I need to be able to read pixel colors, which is why OpenCV was preferable.

Have you tried re-indexing the image array so that the Y-axis is inverted while the X-axis remains unchanged. In this case, you don't need to flip the image or manipulate the axes using Matplotlib. Instead, you can simply access the pixel values by inverting the Y-coordinate with respect to the image height.