The invention provides a region intrusion detection method and
system based on
edge computing in the technical field of video surveillance, and the method comprises the steps: S1, a
server creates a target detection model based on a YOLO
algorithm, carries out the training of the target detection model, and loads the target detection model to an
edge computing box; s2, the edge calculation box obtains a video
stream in an NV12 format shot by the IPC equipment in real time, target detection is carried out on the video
stream through a target detection model, and a target detection result is generated; s3, the edge calculation box sets a warning area, area intrusion detection is carried out based on the warning area and the target detection result, and intrusion alarm information is generated; s4, the
edge computing box encrypts the intrusion alarm information into encrypted information, and uploads the encrypted information to a
server; and S5, the
server decrypts the encrypted information to obtain intrusion alarm information, and executes alarm operation based on the intrusion alarm information. The method has the
advantage that the timeliness of regional intrusion detection is greatly improved.