Regional intrusion identification method, alarm system and storage medium
Through the RTSP protocol and YOLOV5 target detection model, combined with joint coordinates and angle detection of polygonal areas, the problem of being unable to distinguish the types of objects entering the area in the existing technology is solved, achieving accurate recognition of human bodies and multi-camera area intrusion detection, reducing Reduces the false alarm rate and is suitable for a variety of security scenarios.
Patent Information
- Application Number
- CN202410232575.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-01
- Publication Date
- 2024-08-30
AI Technical Summary
The existing regional intrusion alarm system cannot distinguish whether the object entering the area is a human body, resulting in false alarms. For example, the entry of small animals or vehicles will also trigger an alarm, and it cannot detect intrusions in designated areas of multiple cameras at the same time.
Read the video stream from the surveillance video through the RTSP protocol, use the YOLOV5 target detection model to perform target detection on the video frame, crop out the human body area, perform key point detection, and calculate the sum of the angles between the joint coordinates and the polygon area. If the included angle is 360 degrees determines that the joint is within the polygon area and generates an alarm message. The system includes a monitoring module, a regional intrusion detection module and an alarm module, and can connect multiple cameras for accurate detection.
It achieves accurate recognition of the human body, alarms when a person enters a polygonal area, eliminates false alarms from small animals or other objects, and can specifically identify human body parts entering the warning area, making it suitable for precise security in different application scenarios.
Smart Images

Figure CN118570713A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image recognition and processing, and in particular to a method for identifying regional intrusion, an alarm system and a storage medium. Background Art
[0002] The current common regional intrusion alarm system cannot distinguish whether the object entering the area is a human body. When non-human beings such as small animals and vehicles enter the area, the alarm will also be triggered. This regional intrusion alarm system plays a very limited role in the field of precise human security. The current common regional intrusion algorithm is integrated into the firmware of the surveillance camera, and it is not possible to detect the entry of the designated area of multiple cameras at the same time.
[0003] In order to solve the above problems, a regional intrusion alarm system is provided here. Summary of the invention
[0004] The main purpose of the present invention is to overcome the above shortcomings and deficiencies of the prior art and provide a method for regional intrusion identification.
[0005] A method for identifying regional intrusions comprises the following steps:
[0006] Step 1: Read the video stream from the surveillance video through the RTSP protocol;
[0007] Step 2: Mark a polygon on the video stream and save the pixel positions (x, y coordinates) of each endpoint of the polygon as an array. The number of polygon endpoints is greater than or equal to 3. The endpoints of the polygon area are saved as JSON data to the storage server.
[0008] Step 3: Perform target detection on each video frame in step 1 through the YOLOV5 target detection model to obtain all human bounding boxes in the current video frame, and cut out each human body from the frame according to the human body bounding box and save it as a picture;
[0009] Step 4: For the cropped human body image, key point detection is performed to obtain 17 human skeleton points and confidence levels and save them as an array;
[0010] Step 5, obtain the coordinate position and confidence of at least one joint from the 17 bone points and confidences, and proceed to the next step if the confidence is greater than a preset confidence threshold;
[0011] Step 6, calculate the angle between the joint coordinates in step 5 and the two adjacent endpoints in the polygonal area in step 2, and calculate the sum of the angles in a clockwise manner. If the sum of the angles is 360 degrees, it is determined that the coordinate position of the joint is within the polygonal area marked in step 2, and an alarm information is generated and reported to the platform and / or smart terminal.
[0012] As a further improvement, in step 6, first obtain the polygon endpoint array saved in step 2; the specific implementation includes the following steps:
[0013] 1) Assume the number of polygon endpoints is N. Traverse the polygon endpoint array. Assume the current endpoint array index is n, where 0 ≤ n < N - 1. Assume the ankle joint coordinate is point A with coordinates (X, Y), the current point of the polygon endpoint is point B with coordinates (Xn, Yn), and the next endpoint is point C with coordinates (Xn+1, Yn+1). Points A, B, and C form a triangle, AB = c n , AC = b n , BC = a n , ∠BAC is the included angle of the three points, denoted as βn. During the traversal, accumulate the sum of the included angles, and the sum of the included angles is denoted as γ:
[0014] 2) According to the distance formula between two points, calculate a n , b n , c n respectively.
[0015]
[0016]
[0017]
[0018] 3) According to the cosine theorem
[0019] cosA n =(b n 2 +c n 2 -a n 2 )÷(2bc) n c n
[0020] 4) β n = arccos(cosA n )
[0021] 5)
[0022] Calculate the sum of the included angles γ according to the above steps. If γ = 360 degrees, then the joint node is within the polygon area, and it can be determined that the joint part of the human body has entered the polygon area.
[0023] As a further improvement, if a fixed polygonal area is selected as the alarm area in step 2, the polygonal area is generated by uploading the local area coordinate information file, and then target detection of the intrusion polygonal area is performed on the video frame to obtain 17 skeleton points of the human body and the confidence and save them as an array; if a real-time drawn polygonal area is selected as the alarm area, the points are connected into lines to form a polygonal intrusion area, and then target detection of the intrusion polygonal area is performed on the video frame to obtain 17 skeleton points of the human body and the confidence and save them as an array.
[0024] As a further improvement, in step 3, the Libtorch algorithm framework is used to perform target detection on each video frame of step 1 through the YOLOV5 target detection model to obtain all human body bounding boxes in the current video frame.
[0025] The present application also provides a regional intrusion alarm system, comprising the following modules: a monitoring module, a regional intrusion detection module and an alarm module; the monitoring module reads a video stream from a monitoring video through an RTSP protocol; the alarm module comprises a cloud platform and a plurality of alarm terminals connected to the cloud platform; the regional intrusion detection module comprises a storage server and a processor, and the storage server is preset and stored with a polygonal alarm area for the monitoring module;
[0026] The processor performs target detection on each video frame through the YOLOV5 target detection model to obtain all human body bounding boxes in the current video frame, and cuts out each human body from the frame according to the human body bounding box and saves it as a picture; for the cut human body picture, key point detection is performed to obtain 17 human body bone points and confidences and save them as an array; the coordinate position and confidence of at least one joint are obtained from the 17 bone points and confidences, and if the confidence is greater than a preset credibility threshold, the next step is to calculate the angle between the joint coordinates and the two adjacent endpoints in the polygon alarm area, and the sum of the angles is calculated in a clockwise manner;
[0027] If the sum of the angles is 360 degrees, it is determined that the coordinate position of the joint is within the polygonal alarm area marked in step 2, and an alarm message is sent to the cloud platform, and the cloud platform sends the alarm message to the alarm module.
[0028] As a further improvement, the processor is used to determine whether the confidence that the pedestrian falls into the polygonal alarm area is greater than the threshold confidence set in the storage server; if the confidence is greater than the threshold confidence, the processor will further determine whether the coordinate points of the pedestrian's joints are within the polygonal alarm area in the storage server.
[0029] As a further improvement, the monitoring module includes at least one camera, a wireless communication module and a power module, the power module is respectively connected to the wireless communication module and the camera, and the wireless communication module sends the video processing signal of the camera to the area intrusion detection module.
[0030] As a further improvement, the camera, wireless communication module and power module camera are integrated and installed on the street lamp.
[0031] As a further improvement, the alarm module is a smart phone or a display screen.
[0032] In the alarm system of the present invention, the regional intrusion detection module obtains streams from multiple cameras through the RTSP protocol and analyzes them frame by frame. If a regional intrusion alarm occurs, it is reported to the cloud platform, and the cloud platform sends an alarm notification to each alarm receiving terminal; the regional intrusion detection module is connected through a wireless communication module and does not need to be integrated inside the camera. The regional intrusion detection module can be connected to multiple monitoring modules and perform regional intrusion detection on multiple monitoring modules. At the same time, the storage server and processor of the regional intrusion detection module can be used to accurately judge the occurrence of regional intrusion.
[0033] The present application also provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed, the following operations are performed:
[0034] Read video stream from surveillance video via RTSP protocol;
[0035] Mark a polygon on the video stream and save the pixel positions (x, y coordinates) of each endpoint of the polygon as an array. The number of polygon endpoints is greater than or equal to 3. Save the endpoints of the polygon area as JSON data to the storage server.
[0036] Perform target detection on each video frame in step 1 through the YOLOV5 target detection model to obtain all human bounding boxes in the current video frame. Cut out each human from the frame according to the human body bounding box and save it as a picture.
[0037] For the cropped human body image, key point detection is performed to obtain 17 human skeleton points and confidence levels and save them as an array;
[0038] Obtain the coordinate position and confidence of at least one joint from the 17 bone points and confidences. If the confidence is greater than a preset confidence threshold, proceed to the next step.
[0039] Calculate the angle between the joint coordinates and the two adjacent endpoints in the polygonal area, and calculate the sum of the angles in a clockwise manner. If the sum of the angles is 360 degrees, it is determined that the coordinate position of the joint is within the marked polygonal area, and an alarm information is generated and reported to the platform and / or smart terminal.
[0040] The beneficial effects of the regional intrusion identification method of the present invention are: combined with the target recognition algorithm, it can accurately identify the human body shape and alarm when a person enters a polygonal area, which can eliminate false alarms caused by small animals or other objects entering the area; it can specifically identify which part of the human body enters the warning area to cope with different application precision security scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of a regional intrusion alarm system of the present invention;
[0042] Figure 2 Another schematic diagram of the regional intrusion alarm system of the present invention;
[0043] Figure 3 A schematic diagram of a method for identifying regional intrusion according to the present invention;
[0044] Figure 4 It is a schematic diagram of the intrusion algorithm of the regional intrusion identification method of the present invention;
[0045] Figure 5 It is a schematic diagram of the intrusion algorithm of the regional intrusion identification method of the present invention;
[0046] Figure 6 It is a partial schematic diagram of the regional intrusion identification method of the present invention. DETAILED DESCRIPTION
[0047] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thoroughly understood.
[0048] It should be noted that when an element is considered to be "connected" to another element, it may be directly connected to another element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are only for illustrative purposes and do not represent the only implementation method.
[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0050] Embodiment 1
[0051] See also Figure 1 and Figure 2 The embodiment of the present invention provides a regional intrusion alarm system, including the following modules: a monitoring module 101, a regional intrusion detection module 102 and an alarm module 103. The monitoring module 101 is used to obtain video images in the monitoring area. The regional intrusion detection module 102 obtains streams from multiple cameras of the monitoring module 101 through the RTSP protocol (Real Time Streaming Protocol, abbreviated as RTSP, Chinese name: Real-time Streaming Protocol) and analyzes them frame by frame; the alarm module 103 includes a cloud platform and multiple alarm terminals connected to the cloud platform. The alarm terminal includes but is not limited to smart phones, communication mailboxes and smart display screens, wherein SMS and voice notifications are sent to smart phones by calling the operator's third-party interface, emails are sent to a specified mailbox account by using the SMTP protocol, or alarm information is sent to the smart display screen through the third-party platform interface.
[0052] The regional intrusion detection module 102 includes a storage server 1021 and a processor 1022. The storage server 1021 is preset and stored with a polygonal alarm area for the monitoring module 101. The polygonal alarm area can select a fixed polygonal area as the alarm area, and generate the polygonal area by uploading the local area coordinate information file; the polygonal alarm area can also select a real-time polygonal area as the alarm area, and connect points into lines to form a polygonal intrusion area. The processor 1022 is used to identify whether a pedestrian appears in the monitoring module 101, and determine whether the pedestrian's joint coordinate point is within the polygonal alarm area in the storage server 1021.
[0053] More specifically, the processor 1022 performs target detection on each video frame through the YOLOV5 target detection model, obtains all human body bounding boxes in the current video frame, and crops each human body from the frame according to the human body bounding box and saves it as a picture; for the cropped human body picture, key point detection is performed to obtain 17 bone points and confidence levels of the human body and save them as an array; the coordinate position and confidence level of at least one joint are obtained from the 17 bone points and confidence levels, and if the confidence level is greater than a pre-set credibility threshold, the next step is performed.
[0054] Then, the angle between the joint coordinates and the two adjacent endpoints in the polygonal alarm area is calculated, and the sum of the angles is calculated in a clockwise or counterclockwise manner; if the sum of the angles is 360 degrees, it is determined that the coordinate position of the joint is within the marked polygonal alarm area, and the alarm information is sent to the cloud platform, and the cloud platform sends the alarm information to the alarm module.
[0055] More specifically, processor 1022 is used to determine whether the confidence that the pedestrian falls into the polygonal alarm area is greater than the threshold confidence set in the storage server 1021; if the confidence is greater than the threshold confidence, processor 1022 will further determine whether the coordinate points of the pedestrian's joints are within the polygonal alarm area in the storage server 1021.
[0056] More specifically, the monitoring module 101 includes a camera, a wireless communication module and a power module, wherein the number of cameras is greater than one, the power module is connected to the wireless communication module and the camera respectively, and the wireless communication module sends the video processing signal of the camera to the regional intrusion detection module 102. The camera, the wireless communication module and the power module are integrated and installed on the street lamp, and the camera clarity is improved by the lighting of the street lamp, and the installation cost is reduced. The regional intrusion detection module 102 does not need to be integrated inside the camera because it is connected through the wireless communication module. The regional intrusion detection module 102 can connect multiple monitoring modules 101 and perform regional intrusion detection on multiple monitoring modules 101. At the same time, the storage server 1021 and the processor 1022 of the regional intrusion detection module 102 can accurately judge the occurrence of regional intrusion.
[0057] In the alarm system of the present invention, the regional intrusion detection module 102 obtains streams from multiple cameras through the RTSP protocol and analyzes them frame by frame. If a regional intrusion alarm occurs, it is reported to the cloud platform, and the cloud platform sends an alarm notification to each alarm receiving terminal; the regional intrusion detection module 102 is connected through a wireless communication module and does not need to be integrated inside the camera. The regional intrusion detection module 102 can be connected to multiple monitoring modules 101 and perform regional intrusion detection on multiple monitoring modules 101. At the same time, the storage server 1021 and processor 1022 of the regional intrusion detection module 102 can be used to accurately judge the occurrence of regional intrusion.
[0058] More specifically, the processor 1022 is further configured to:
[0059] Embodiment 2
[0060] See also Figure 3 The present invention provides a method 200 for identifying an area intrusion, comprising the following steps:
[0061] Step S201, read the video stream from the surveillance video through the RTSP protocol; the surveillance video in this step can be understood as a camera or other surveillance devices. If there are multiple cameras, use multiple threads, each thread reads the video stream of a camera, and the edge intersection of the polygon area is JSON data to the storage server 1021.
[0062] Step S202, mark a polygon on the video stream, and save the pixel position (x, y coordinates) of each endpoint of the polygon as an array, where the number of endpoints is greater than or equal to 3; for each polygon alarm area specified by the camera, save the endpoints of the polygon area in sequence as JSON data to the storage server 1021.
[0063] Step S203, performing target detection on each video frame of step S201 through the YOLOV5 target detection model to obtain all human body bounding boxes in the current video frame, and cutting out each human body from the frame according to the human body bounding box and saving it as a picture;
[0064] Step S204, for the cropped human body image, key point detection is performed to obtain 17 human body skeleton points and confidence levels and save them as an array;
[0065] Step S205, obtaining the coordinate position and confidence of at least one joint from the 17 skeleton points and confidences, and proceeding to the next step if the confidence is greater than a preset confidence threshold;
[0066] Step S206, calculate the angle between the joint coordinates in step S205 and the two adjacent endpoints in the polygonal area in step S202, and calculate the sum of the angles in a clockwise manner. If the sum of the angles is 360 degrees, it is determined that the coordinate position of the joint is within the polygonal area marked in step S202, and an alarm information is generated and reported to the platform and / or smart terminal.
[0067] More specifically, in step S205, the coordinate positions of the left and right ankle joints and their confidences are obtained from the 17 skeletal points and confidences. If the confidence is greater than a pre-set confidence threshold in the storage server 1021, the next step is to determine whether any of the coordinate points of the two ankle joints is within the polygonal alarm area currently being analyzed. If so, it is determined that the body enters the polygonal alarm area. Similarly, it can also be determined whether the head, hands, and other parts of the human body enter the polygonal alarm area.
[0068] More specifically, see Figure 4 and Figure 5 , take the hexagon as an example, Figure 4 A schematic diagram showing the joint coordinate points within the polygonal alarm area is shown. Figure 5Shows a schematic diagram where the joint coordinate point is not within the polygon alarm area. In step S206, first obtain the polygon endpoint array saved in step S202; the specific implementation includes the following steps:
[0069] 1) Assume the number of polygon endpoints is N. Traverse the polygon endpoint array. Assume the current endpoint array index is n, 0 ≤ n < N - 1. Assume the ankle joint coordinate is point A with coordinates (X, Y), the current point of the polygon endpoint is point B with coordinates (Xn, Yn), and the next endpoint is point C with coordinates (Xn+1, Yn+1). Points A, B, and C form a triangle, AB = c n , AC = b n , BC = a n , ∠BAC is the included angle of the three points, denoted as βn. During the traversal, accumulate the sum of the included angles, and the sum of the included angles is denoted as γ, as Figure 6 shown:
[0070] 2) According to the distance formula between two points, calculate a n , b n , c n .
[0071]
[0072]
[0073]
[0074] 3) According to the cosine theorem
[0075] cosA n =(b n 2 +c n 2 -a n 2 )÷2b n c n
[0076] 4) β n = arccos(cosA n )
[0077] 5)
[0078] According to the above steps, calculate the sum of the included angles γ. If γ = 360 degrees, then the joint node is within the polygon area, and it can be determined that the joint part of the human body has entered the polygon area.
[0079] More specifically, if a fixed polygonal area is selected as the alarm area in step S202, the polygonal area is generated by uploading the local area coordinate information file, and then target detection of the intrusion polygonal area is performed on the video frame to obtain 17 skeleton points of the human body and the confidence level and save them as an array; if a real-time drawn polygonal area is selected as the alarm area, the points are connected into lines to form a polygonal intrusion area, and then target detection of the intrusion polygonal area is performed on the video frame to obtain 17 skeleton points of the human body and the confidence level and save them as an array.
[0080] More specifically, in step S203, the Libtorch algorithm framework is used to perform target detection on each video frame of step 1 through the YOLOV5 target detection model to obtain all human body bounding boxes in the current video frame.
[0081] The present invention is combined with a target recognition algorithm and can accurately identify the shape of a human body. When a person enters a polygonal area, an alarm is triggered, thereby eliminating false alarms caused by small animals or other objects entering the area. It can also specifically identify which part of the human body enters the warning area to cope with different application scenarios of precise security.
[0082] Embodiment 3
[0083] The present application also provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed, the following operations are performed:
[0084] Read video stream from surveillance video via RTSP protocol;
[0085] Mark a polygon on the video stream and save the pixel positions (x, y coordinates) of each endpoint of the polygon as an array. The number of polygon endpoints is greater than or equal to 3. Save the endpoints of the polygon area as JSON data to the storage server.
[0086] Perform target detection on each video frame in step 1 through the YOLOV5 target detection model to obtain all human bounding boxes in the current video frame. Cut out each human from the frame according to the human body bounding box and save it as a picture.
[0087] For the cropped human body image, key point detection is performed to obtain 17 human skeleton points and confidence levels and save them as an array;
[0088] Obtain the coordinate position and confidence of at least one joint from the 17 bone points and confidences. If the confidence is greater than a preset confidence threshold, proceed to the next step.
[0089] Calculate the angle between the joint coordinates and the two adjacent endpoints in the polygonal area, and calculate the sum of the angles in a clockwise manner. If the sum of the angles is 360 degrees, it is determined that the coordinate position of the joint is within the marked polygonal area, and an alarm information is generated and reported to the platform and / or smart terminal.
[0090] The beneficial effects of the regional intrusion identification method of the present invention are: combined with the target recognition algorithm, it can accurately identify the human body shape and alarm when a person enters a polygonal area, which can eliminate false alarms caused by small animals or other objects entering the area; it can specifically identify which part of the human body enters the warning area to cope with different application precision security scenarios.
[0091] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0092] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A method for identifying regional intrusions, It is characterized in that The steps include: Step 1: Read the video stream from the surveillance video through the RTSP protocol; Step 2: Mark a polygon on the video stream and save the pixel positions (x, y coordinates) of each endpoint of the polygon as an array. The number of polygon endpoints is greater than or equal to 3. The endpoints of the polygon area are saved as JSON data to the storage server. Step 3: Perform target detection on each video frame in step 1 through the YOLOV5 target detection model to obtain all human bounding boxes in the current video frame, and cut out each human body from the frame according to the human body bounding box and save it as a picture; Step 4: For the cropped human body image, key point detection is performed to obtain 17 human skeleton points and confidence levels and save them as an array; Step 5, obtain the coordinate position and confidence of at least one joint from the 17 bone points and confidences, and proceed to the next step if the confidence is greater than a preset confidence threshold; Step 6, calculate the angle between the joint coordinates in step 5 and the two adjacent endpoints in the polygonal area in step 2, and calculate the sum of the angles in sequence. If the sum of the angles is 360 degrees, it is determined that the coordinate position of the joint is within the polygonal area marked in step 2, and an alarm information is generated and reported to the platform and / or smart terminal.
2. The method for identifying regional intrusion according to claim 1, It is characterized in that In step 6, first obtain the polygon endpoint array saved in step 2; the specific implementation includes the following steps: 1) Assume the number of polygon endpoints is N. Traverse the polygon endpoint array. Assume the current endpoint array index is n, where 0 ≤ n < N - 1. Assume the ankle joint coordinate is point A with coordinates (X, Y), the current point of the polygon end is point B with coordinates (X n , Y n ), and the next endpoint is point C with coordinates (X n+1 , Y n+1 ). Points A, B, and C form a triangle. BC = a n , AC = b n , AB = c n , and ∠BAC is the included angle of the three points, denoted as β n . During the traversal, accumulate the sum of the included angles, and the sum of the included angles is denoted as γ: 2) According to the distance formula between two points, calculate a n ,b n c n . 3) According to the law of cosines What n =(b n 2 +c n 2 -to n 2 )÷2b n c n 4)β n =arccos(cosA n ) 5) According to the above steps, the sum of the angles γ is calculated. If γ = 360 degrees, the joint node is within the polygonal area, and it can be determined that the joint part of the human body has entered the polygonal area.
3. The method for identifying regional intrusion according to claim 1, It is characterized in that If a fixed polygonal area is selected as the alarm area in the step 2, the polygonal area is generated by uploading the local area coordinate information file, and then the target detection of the intrusion polygonal area is performed on the video frame, and the 17 skeleton points of the human body and the confidence are obtained and saved as an array; if the real-time drawn polygonal area is selected as the alarm area, the points are connected into lines to form a polygonal intrusion area, and then the target detection of the intrusion polygonal area is performed on the video frame, and the 17 skeleton points of the human body and the confidence are obtained and saved as an array.
4. The method for identifying regional intrusion according to claim 1, It is characterized in that In step 3, the Libtorch algorithm framework is used and the YOLOV5 target detection model is used to perform target detection on each video frame in step 1 to obtain all human body bounding boxes in the current video frame.
5. A regional intrusion alarm system, It is characterized in that The system comprises the following modules: a monitoring module, a regional intrusion detection module and an alarm module; the monitoring module reads a video stream from a monitoring video through the RTSP protocol; the alarm module comprises a cloud platform and a plurality of alarm terminals connected to the cloud platform; the regional intrusion detection module comprises a storage server and a processor, and the storage server is preset and stored with a polygonal alarm area for the monitoring module; The processor performs target detection on each video frame through the YOLOV5 target detection model to obtain all human body bounding boxes in the current video frame, and cuts out each human body from the frame according to the human body bounding box and saves it as a picture; for the cut human body picture, key point detection is performed to obtain 17 human body bone points and confidences and save them as an array; the coordinate position and confidence of at least one joint are obtained from the 17 bone points and confidences, and if the confidence is greater than a preset credibility threshold, the next step is to calculate the angle between the joint coordinates and the two adjacent endpoints in the polygon alarm area, and the sum of the angles is calculated in a clockwise manner; If the sum of the angles is 360 degrees, it is determined that the coordinate position of the joint is within the polygonal alarm area marked in step 2, and an alarm message is sent to the cloud platform, and the cloud platform sends the alarm message to the alarm module.
6. The area intrusion alarm system according to claim 5, It is characterized in that The monitoring module includes at least one camera, a wireless communication module and a power module. The power module is connected to the wireless communication module and the camera respectively. The wireless communication module sends the video processing signal of the camera to the area intrusion detection module.
7. The area intrusion alarm system according to claim 5, It is characterized in that The processor is used to determine whether the confidence that the pedestrian falls into the polygonal alarm area is greater than the threshold confidence set in the storage server; if the confidence is greater than the threshold confidence, the processor will further determine whether the coordinate points of the pedestrian's joints are within the polygonal alarm area in the storage server.
8. The area intrusion alarm system according to claim 5, It is characterized in that The alarm module is a smart phone or a display screen.
9. The area intrusion alarm system according to claim 5, It is characterized in that The camera, wireless communication module and power module camera are integrated and installed on the street lamp.
10. A computer storage medium, It is characterized in that The computer storage medium stores a computer program, and when the computer program is executed, the area intrusion identification method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Video fence based on human body posture evaluation and early warning method
CN110796032A
Warehouse area intrusion detection alarm method and system
CN114267145A
2D and 3D combined regional intrusion monitoring method and system and storage medium
CN116012786A
