Marine debris poses a significant threat to the survival of marine wildlife, often leading to entanglement and starvation, ultimately resulting in death. Therefore, removing debris from the ocean is crucial to restore the natural balance and allow marine life to thrive. Instance segmentation is an advanced form of object detection that identifies objects and precisely locates and separates them, making it an essential tool for autonomous underwater vehicles (AUVs) to navigate and interact with their underwater environment effectively. AUVs use image segmentation to analyze images captured by their cameras to navigate underwater environments. In this paper, we use instance segmentation to calculate the area of individual objects within an image, we use YOLOV7 in Roboflow to generate a set of bounding boxes for each object in the image with a class label and a confidence score for every detection. A segmentation mask is then created for each object by applying a binary mask to the object's bounding box. The masks are generated by applying a binary threshold to the output of a convolutional neural network trained to segment objects from the background. Finally, refining the segmentation mask for each object is done by applying post-processing techniques such as morphological operations and contour detection, to improve the accuracy and quality of the mask. The process of estimating the area of instance segmentation involves calculating the area of each segmented instance separately and then summing up the areas of all instances to obtain the total area. The calculation is carried out using standard formulas based on the shape of the object, such as rectangles and circles. In cases where the object is complex, the Monte Carlo method is used to estimate the area. This method provides a higher degree of accuracy than traditional methods, especially when using a large number of samples.
翻译:海洋碎片对海洋野生动物的生存构成严重威胁,常导致生物缠绕、饥饿甚至死亡。因此,清理海洋碎片对于恢复自然平衡、保障海洋生物繁衍至关重要。实例分割是目标检测的高级形式,不仅能识别物体,还能精确定位并分离物体,使其成为自主水下航行器(AUVs)有效导航和交互水下环境的关键工具。AUVs利用图像分割分析摄像头捕获的图像,从而在水下环境中导航。本文采用实例分割计算图像中单个物体的面积:通过Roboflow平台使用YOLOV7算法为图像中每个物体生成一组边界框,并附带类别标签和置信度分数;随后为每个物体创建分割掩码,具体方法是将二元掩码应用于物体的边界框,该掩码通过训练用于分离物体与背景的卷积神经网络输出结果施加二元阈值生成。最后,通过形态学操作和轮廓检测等后处理技术优化每个物体的分割掩码,以提高掩码的准确性和质量。实例分割面积估算过程包括分别计算每个分割实例的面积,再将所有实例面积求和获得总面积。计算基于物体形状(如矩形和圆形)的标准公式进行。对于复杂物体,则采用蒙特卡洛方法估算面积。该方法在大量样本条件下可提供比传统方法更高的精度。