Three-dimensional (3D) structure is an important morphological trait of plants for describing their growth and biotic/abiotic stress responses. Various methods have been developed for obtaining 3D plant data, but the data quality and equipment costs are the main factors limiting their development. Here, we propose a method to improve the quality of 3D plant data using the time-of-flight (TOF) camera Kinect V2. A K-dimension (k-d) tree was applied to spatial topological relationships for searching points. Background noise points were then removed with a minimum oriented bounding box (MOBB) with a pass-through filter, while outliers and flying pixel points were removed based on viewpoints and surface normals. After being smoothed with the bilateral filter, the 3D plant data were registered and meshed. We adjusted the mesh patches to eliminate layered points. The results showed that the patches were closer. The average distance between the patches was 1.88 × 10−3 m, and the average angle was 17.64°, which were 54.97% and 48.33% of those values before optimization. The proposed method performed better in reducing noise and the local layered-points phenomenon, and it could help to more accurately determine 3D structure parameters from point clouds and mesh models.
Underwater object detection is essential for the advancement of automated aquaculture operations. Addressing the challenges of low detection accuracy and insufficient generalization capabilities for underwater targets, this paper focuses on the development of a novel detection method tailored to such environments. We introduce the RTL-YOLOv8n model, specifically designed to enhance the precision and efficiency of detecting objects underwater. This model incorporates advanced feature-extraction mechanisms—RetBlock and triplet attention—that significantly improve its ability to discern fine details amidst complex underwater scenes. Additionally, the model employs a lightweight coupled detection head (LCD-Head), which reduces its computational requirements by 31.6% compared to the conventional YOLOv8n, without sacrificing performance. Enhanced by the Focaler–MPDIoU loss function, RTL-YOLOv8n demonstrates superior capability in detecting challenging targets, showing a 1.5% increase in mAP@0.5 and a 5.2% improvement in precision over previous models. These results not only confirm the effectiveness of RTL-YOLOv8n in complex underwater environments but also highlight its potential applicability in other settings requiring efficient and precise object detection. This research provides valuable insights into the development of aquatic life detection and contributes to the field of smart aquatic monitoring systems.