findcountours and minAreaRect

Does OpenMV have similar functions as findContours and minAreaRect as found in OpenCV.

It is for another project that I have not yet started but plan to.

See first 2 mins of this video Follower Computer Vision angle detection Lesson 3 - YouTube

Please use find_blobs() it finds all color blobs in the image and each color blob has a bounding box and etc.

Find_blobs() is our flag ship feature.

Yes find blob will find bounding rectangle of all blobs but I want to find minAreaRect i.e to rotation on the rect as well as it’s position

see first 2 mins of this video Follower Computer Vision angle detection Lesson 3 - YouTube

Find blobs gives you the rotation of the blob along with it’s centroid. From your video these are the same two values you are getting with OpenCV.

See the rotation() attribute of the returned blob object.

Thanks I will have a play with it :slight_smile:

Note that rotation is computed using the standard blob rotation metric involving the cross correlation of x and y pixels and some atan2 stuff. I forget where the link for the method is. I think there’s a Wikipedia page on image moments that has the info. Note that rotation is valid only from 0 to 180 degrees and then it loops.