Unmanned aerial vehicles (UAVs) have gradually become a major air threat to ships because of small size, good maneuverability, and low cost. Vision-based UAV detection offers one of the main ways to identify and protect against UAVs. Unlike land environment, the weather is complicated at sea. The visibility of an object is undermined by such factors as sea fog and sunlight, which makes it difficult to detect UAVs at sea through vision-based object detection. For the purpose of object detection at sea, this paper proposes a UAV object detection method based on image haze removal. In the proposed method, an improved dark channel haze removal (DCHR) algorithm is utilized to remove haze for and restore video images. Additionally, co-ordinate attention (CoordAttention, CA) is introduced to the lightweight algorithms of You Only Look Once (YOLO) for the object detection in restored video images, so as to improve the precision and speed of detection and reduce the miss rate. Some video images are also taken for detection experiments to verify the feasibility and effectiveness of the proposed method.