To address the complex scenarios of identifying danger zones in tower crane operations during construction,an early warning method of tower crane danger zone was proposed using computer vision technology.This method combined dynamic determination of tower crane danger zones with computer vision to detect personnel wearing situations of safety helmets and safety belt at the construction site and the inadvertent intrusion beneath the tower crane.Additionally,the YOLOv5 algorithm was adapted with attention models,and interactive window detection software was developed.Results indicate that the recognition accuracy of this model for human intrusion behavior and personal protective equipment exceeds 85%,demonstrating high precision.This method can be effectively applied in tower crane construction scenarios,optimizing fixed danger zone delineation to dynamic tower crane danger zones,and providing real-time monitoring of inadvertent personnel intrusion with warnings.