I am training YOLO V8 on 60 images with 3 annotated segmentations. I am trying to get the model to able to detect the 3 segments in the image, show them with masks and calculate the area of those segments. Detecting the segments and showing masks has been fairly easy. But I am not able to figure out the area calculation of each individual mask.
I tried using the contour feature of opencv and calculate the mask area but I am not able to get the 3 individual areas. Does anyone know what to do? Any pointers are welcome.
1
u/wonderwizard1005 Jul 14 '23
I am training YOLO V8 on 60 images with 3 annotated segmentations. I am trying to get the model to able to detect the 3 segments in the image, show them with masks and calculate the area of those segments. Detecting the segments and showing masks has been fairly easy. But I am not able to figure out the area calculation of each individual mask.
I tried using the contour feature of opencv and calculate the mask area but I am not able to get the 3 individual areas. Does anyone know what to do? Any pointers are welcome.