if you see the attached two pictures,then in "the mask" section you can see 2 binary images where white background are 0 and black marked area of object is full of values with 1

now given images like that,i want to calculate the height,width of the object we can see in the mask,note that : "masks can contain very small object,sometimes very large objects too and most of the times shapes of the objects can be different too,i mean object can be found in different area of the mask picture for different image,for all those kind of different shape objects i need to use technique or algorithm that can always find the height and width of those objects using python?how can i do that? a working example with code or pseudo code will be highly appreciated.thanks

[Note : i have seen this post : https://stackoverflow.com/questions/54785782/crop-binary-image-on-object-height-and-width which doesn't answer to my question/problem]

More Syed Mobassir Hossen's questions See All
Similar questions and discussions