Fish body measurement is essential for monitoring fish farming and evaluating growth. Non-destructive underwater measurements play a significant role in aquaculture management. This study involved annotating images of fish in aquaculture settings and utilized a line laser for underwater distance calibration and fish body inclined-angle calculation. The YOLOv8 model was employed for fish identification and key-point detection, enabling the determination of actual body dimensions through a mathematical model. The results show a root-mean-square error of 6.8 pixels for underwater distance calibration using the line laser. The pre-training YOLOv8-n, with its lower parameter counts and higher MAP values, proved more effective for fish identification and key-point detection, considering speed and accuracy. Average body length measurements within 1.5 m of the camera showed a minor deviation of 2.46% compared to manual measurements. The average relative errors for body length and width were 2.46% and 5.11%, respectively, with corresponding average absolute errors. This study introduces innovative techniques for fish body measurement in aquaculture, promoting the digitization and informatization of aquaculture processes.