Text this: Cross-domain analysis of YOLOv8 and faster R-CNN models for enhanced precision in maritime object detection