The invention relates to the technical field of
electronic security and protection, in particular to a 3D electronic fence detection method based on a
monocular camera, and the method comprises the following steps: carrying out the
fine tuning of YOL0v5-1 through collecting multi-scene pictures, detecting a
human body, and estimating the depth through a ZoeDepth model. After the
human body is detected, comparing the depth values of the
human body and the preset dangerous area, and giving an alarm if a threshold value is exceeded. The alarm
modes are diversified, and the threshold value can be adjusted to adapt to different environments. The method has remarkable
cost benefit and flexibility, real-time and accurate human body detection and space positioning are realized through
deep learning, intrusion behaviors are intelligently judged, and false alarms are reduced. The
system is highly customizable, adapts to different scene requirements, supports diversified alarm output and
video recording functions, and facilitates subsequent
processing. Along with
technology development, the
system has intelligent upgrading potential, high precision and stability can be kept in a complex environment, and the safety protection level is comprehensively improved.