Width of a banana

Hi,

I would like to get the max width of a banana?

Here is a solution for opencv, but is it possible with openmv?

We don’t have contour line support so this isn’t possible at the detail you want.

We can give you a bounding box and then the max length of the line of that box.

Thanks for the fast reply and tips. Using bounding box now, but it is not enough for my project.

you can try to find the center of gravity of the blob that banana will give.
Then you can try to find a blob on that and execute the width.
see example image:

2022-08-31_152810

notice that this will work only if banana has every time the same alignment. This is because i cant find a way to give a rotation to the small region.