Method, device, monitoring equipment and medium for judging whether a monitored area is going back
By acquiring and analyzing the location frame and direction of travel within the monitoring area, it can determine whether the monitored object has retraced its path, thus solving the problem of low efficiency in existing technologies and realizing a fast and accurate function for judging and alarming when a monitored object has retraced its path.
Patent Information
- Application Number
- CN202111666777.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2041-12-31
AI Technical Summary
Existing technologies are inefficient at determining whether a camera-monitored object has retraced its steps, and cannot achieve rapid and accurate automatic monitoring.
By obtaining the entrance and exit location frames of the monitored area, the reference direction is determined. Combined with the first appearance and last disappearance location frames of the monitored object and its direction of travel, it is determined whether the monitored object is backtracking within the monitored area.
It enables rapid and accurate detection of monitored objects retracing their paths, and can execute preset alarm operations when retracing is detected, thereby improving monitoring efficiency.
Smart Images

Figure CN114445771B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of monitoring technology, and in particular to a method, device, monitoring equipment and medium for determining whether a person has backtracked in a monitoring area. Background Art
[0002] Currently, the only way to determine whether a camera surveillance object has walked back is to observe the movement trajectory of the surveillance object during this period of time. This method is inefficient and is not conducive to automatic monitoring scenarios. Summary of the invention
[0003] The embodiments of the present application provide a method, device, monitoring equipment and medium for determining whether a monitored object has backtracked in a monitored area, which can accurately and quickly determine whether a monitored object has backtracked.
[0004] A first aspect of an embodiment of the present application provides a method for determining whether a monitoring area has been backtracked, the method comprising:
[0005] Acquire an entry position frame and an exit position frame of a monitoring area; determine a reference direction according to the entry position frame and the exit position frame;
[0006] Obtain the first appearance position frame and the appearance direction of the monitored object in the monitored area, and obtain the last disappearance position frame and the disappearance direction of the monitored object in the monitored area;
[0007] Determine whether the monitored object has gone back in the monitored area based on the first appearance position frame, the exit position frame, the appearance travel direction and the reference direction; and / or determine whether the monitored object has gone back in the monitored area based on the last disappearance position frame, the entrance position frame, the disappearance travel direction and the reference direction.
[0008] A second aspect of an embodiment of the present application provides a device for determining whether a monitoring area has been backtracked, the device comprising:
[0009] An acquisition unit, used to acquire an entry position frame and an exit position frame of a monitoring area; and determine a reference direction according to the entry position frame and the exit position frame;
[0010] The acquisition unit is further used to acquire the first appearance position frame and the appearance direction of the monitored object in the monitored area, and acquire the last disappearance position frame and the disappearance direction of the monitored object in the monitored area;
[0011] A judgment unit is used to judge whether the monitored object has turned back in the monitored area based on the first appearance position frame, the exit position frame, the appearance travel direction and the reference direction; and / or, to judge whether the monitored object has turned back in the monitored area based on the last disappearance position frame, the entrance position frame, the disappearance travel direction and the reference direction.
[0012] A third aspect of the present application provides a monitoring device, comprising: a processor and a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for some or all of the steps described in the first aspect.
[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, wherein the computer program enables a computer to execute instructions of some or all of the steps described in the first aspect of the embodiment of the present application.
[0014] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0015] Implementing the embodiments of the present application has the following beneficial effects:
[0016] It can be seen that the method, device, monitoring equipment and medium for judging whether the monitored area has turned back are described in the embodiments of the present application, by obtaining the entrance position frame and the exit position frame of the monitored area; determining the reference direction according to the entrance position frame and the exit position frame; obtaining the first appearance position frame and the appearance travel direction of the monitored object in the monitored area, and obtaining the last disappearance position frame and the disappearance travel direction of the monitored object in the monitored area; judging whether the monitored object has turned back in the monitored area according to the first appearance position frame, the exit position frame, the appearance travel direction and the reference direction; and / or judging whether the monitored object has turned back in the monitored area according to the last disappearance position frame, the entrance position frame, the disappearance travel direction and the reference direction. In this way, it is possible to more accurately and quickly judge whether the monitored object has turned back. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 This is a schematic diagram of an embodiment of a method for determining whether a monitoring area has gone back on its way, provided in an embodiment of the present application;
[0019] Figure 2 It is a demonstration schematic diagram of determining a reference direction according to an entry position frame and an exit position frame provided in an embodiment of the present application;
[0020] Figure 3 It is a schematic diagram of determining the first appearance position frame and the appearance direction of the monitored object in the monitored area, and the last disappearance position frame and the disappearance direction of the monitored object in the monitored area, provided by an embodiment of the present application;
[0021] Figure 4 The present application provides a schematic diagram of determining that a monitored object walks back from another area to enter a monitored area;
[0022] Figure 5 This is a schematic diagram of another method for determining that a monitored object walks back from another area to enter a monitored area, provided by an embodiment of the present application;
[0023] Figure 6 It is a schematic diagram of an embodiment of a flow chart of another method for determining whether a monitoring area has backtracked provided by an embodiment of the present application;
[0024] Figure 7 It is a schematic diagram of an embodiment of a flow chart of another method for determining whether a monitoring area has backtracked provided by an embodiment of the present application;
[0025] Figure 8 It is a schematic diagram of the structure of an embodiment of a monitoring device provided in an embodiment of the present application;
[0026] Fig. 9 It is a schematic diagram of the structure of an embodiment of a device for determining whether a person has backtracked in a monitoring area provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0028] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0029] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0030] See also Figure 1 , is a flow chart of an embodiment of a method for determining whether a monitoring area has backtracked provided in an embodiment of the present application. The method for determining whether a monitoring area has backtracked described in this embodiment includes the following steps:
[0031] 101. Obtain an entry position frame and an exit position frame of a monitoring area; and determine a reference direction according to the entry position frame and the exit position frame.
[0032] Among them, the entrance position box refers to a box that marks the entrance position to a certain area in the monitoring area of the camera, and the exit position box refers to a box that marks the exit position of a certain area in the monitoring area of the camera. The entrance position box and the exit position box can be square boxes or circular boxes, or they can also be boxes of other shapes. In a specific implementation, the data collected by the camera can be analyzed to determine the shape and size of the entrance position and the exit position, and the shape and size of the entrance position box and the exit position box can be determined based on the shape and size. The shape of the entrance position box can be regular or irregular, and this application does not impose any restrictions.
[0033] Wherein, determining the reference direction according to the entry position frame and the exit position frame may specifically include: taking the direction from the entry position frame to the exit position frame as the reference direction; or taking the direction from the exit position frame to the entry position frame as the reference direction, which is not limited in this application. Figure 2As shown, it is a demonstration diagram of determining a reference direction based on an entry position frame and an exit position frame, wherein, in the monitoring area 10, an entry position frame 20 and an exit position frame 30 can be marked, and the direction from the exit position frame to the entry position frame is used as a reference direction.
[0034] 102. Obtain a first appearance position frame and an appearance direction of the monitored object in the monitored area, and obtain a last disappearance position frame and a disappearance direction of the monitored object in the monitored area.
[0035] In the embodiment of the present application, human body detection can be performed based on the data collected by the camera to determine the position where the monitored object appears and disappears in the monitored area. The first appearance position and the last disappearance position of the monitored object in the monitored area can be determined based on the collection time. The first appearance position of the monitored object in the monitored area can be marked to obtain the last appearance position frame, and the last disappearance position frame of the monitored object in the monitored area can be marked to obtain the last disappearance position frame, such as Figure 3 As shown, Figure 3 The present invention is a schematic diagram for determining the first appearance position frame and the appearance direction of the monitored object in the monitored area, as well as the last disappearance position frame and the disappearance direction of the monitored object in the monitored area, wherein, in the monitored area 10, the first appearance position frame 40 and the appearance direction (for example, the same as the reference direction) of the monitored object 11 can be marked, and the last disappearance position frame 50 and the disappearance direction (for example, the same as the reference direction) of the monitored object 11 can also be marked.
[0036] Optionally, the appearance direction is the face direction, footstep direction or body direction of the monitored object when it is at the position corresponding to the first appearance position frame; the disappearance direction is the face direction, footstep direction or body direction of the monitored object when it is at the position corresponding to the last disappearance position frame, and this application does not impose any restrictions. In a specific implementation, human feature point detection can be performed on the monitored object to obtain face feature points, foot feature points, leg feature points, torso feature points, etc., and then analyze the face direction, footstep direction or body direction.
[0037] Optionally, at least one of the face orientation, footstep orientation and body orientation of the monitored object when the monitored object is at the position corresponding to the first appearance position frame may be analyzed based on the data collected by the camera;
[0038] A direction of travel occurs based on at least one orientation determination.
[0039] In a specific implementation, the human feature points of the monitored object can be detected to obtain the facial feature points, foot feature points, leg feature points, torso feature points, etc., and then analyze at least one of the facial orientation, footstep orientation, or body orientation. Further, the appearance direction is determined according to at least one orientation, and if at least one orientation includes the body orientation, the body orientation is used as the appearance direction; or, if at least one orientation includes the footstep orientation, the footstep orientation is used as the appearance direction; or, if two of the facial orientation, footstep orientation, and body orientation are the same, the same orientation is used as the appearance direction.
[0040] Optionally, at least one of the face orientation, footstep orientation and body orientation of the monitored object at the position corresponding to the last disappearing position frame may be analyzed based on the data collected by the camera;
[0041] The disappearing traveling direction is determined according to at least one orientation.
[0042] In a specific implementation, the disappearing direction is determined based on at least one orientation. If at least one orientation includes body orientation, the body orientation is used as the disappearing direction; or, if at least one orientation includes footstep orientation, the footstep orientation is used as the disappearing direction; or, if two of the face orientation, footstep orientation and body orientation are the same, the same orientation is used as the disappearing direction.
[0043] 103. Determine whether the monitored object has turned back in the monitored area based on the first appearance position frame, the exit position frame, the appearance travel direction and the reference direction; and / or determine whether the monitored object has turned back in the monitored area based on the last disappearance position frame, the entrance position frame, the disappearance travel direction and the reference direction.
[0044] Among them, the monitored object walking back in the monitored area may specifically include the monitored object entering the monitored area from other areas by walking back; or the monitored object leaving the monitored area by walking back from the monitored area, wherein the other areas are areas other than the monitored area.
[0045] In a specific implementation, it is possible to determine whether the monitored object has turned back in the monitored area and which of the above turning back situations it belongs to based on the first appearance position frame, the exit position frame, the appearance travel direction and the reference direction. It is also possible to determine whether the monitored object has turned back in the monitored area and which of the above turning back situations it belongs to based on the last disappearance position frame, the entrance position frame, the disappearance travel direction and the reference direction.
[0046] It can be understood that no matter whether it is determined that the monitored object is backtracking from other areas to enter the monitored area, or that the monitored object is backtracking from the monitored area to leave the monitored area, it can be determined that the monitored object is backtracking, and the number of times the backtracking is counted can be accumulated.
[0047] Optionally, after the above step 103, the method further includes:
[0048] If it is detected that the monitored object is walking back in the monitored area, a preset alarm operation is executed.
[0049] In a specific implementation, a preset alarm operation may be executed when it is determined that the monitored object is walking back in the monitored area.
[0050] Optionally, the reference direction is a direction from the entrance position frame to the exit position frame; and judging whether the monitored object has turned back in the monitored area according to the first appearance position frame, the exit position frame, the appearance travel direction and the reference direction includes:
[0051] If the first appearance position frame and the exit position frame overlap, and the appearance travel direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a back-tracking walking manner, and the other areas are areas other than the monitored area.
[0052] like Figure 4 As shown, it is a schematic diagram for determining whether a monitored object is entering a monitored area by walking back from other areas, wherein, in the monitored area 10, when the first appearance position frame 40 of the monitored object 11 overlaps with the exit position frame 30, and the traveling direction is opposite to the reference direction, it can be regarded that the monitored object is entering the monitored area by walking back from other areas.
[0053] In the specific implementation, when the following situations occur, the surface monitored object does not go back:
[0054] If the first appearing position frame overlaps with the entrance position frame, and the last disappearing position frame overlaps with the exit position frame, and the appearing direction and disappearing direction are the same as the reference direction, it means that the monitored object enters the monitoring area from the entrance and leaves the monitoring area from the exit without going back;
[0055] If the first appearing position frame and the entrance position frame do not overlap, and the last disappearing position frame and the exit position frame overlap, and the appearing direction and the disappearing direction are the same as the reference direction, it indicates that the monitored object has walked out of the monitoring area from the exit and has not turned back;
[0056] If the first appearing location box and the exit location box overlap, and the last disappearing location box and the entrance location box do not overlap, and the appearing travel direction and the disappearing travel direction are the same as the reference direction, it indicates that the monitored object walks into the monitored area from the exit, but the appearing travel direction is consistent with the reference direction, and it is not considered to be backtracking.
[0057] Optionally, if the first appearance position frame and the exit position frame overlap, and the appearance moving direction is opposite to the reference direction, determining that the monitored object enters the monitored area from another area in a back-tracking walking manner includes:
[0058] If the first appearance position frame and the exit position frame overlap, and the ratio of the area of the overlapping portion to the area of the first appearance position frame or the ratio of the area proportion of the overlapping portion to the area of the exit position frame is greater than a preset proportion threshold, then comparing the appearance travel direction with the reference direction;
[0059] If the appearing moving direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a back-tracking walking manner.
[0060] Among them, by setting a preset percentage threshold of the overlapping area, calculating the ratio according to the overlapping area of the first appearing position box and the exit position box and the area of the first appearing position box, or calculating the ratio according to the overlapping area of the first appearing position box and the exit position box and the area of the exit position box, and comparing the calculated ratio with the preset percentage threshold, it is possible to more accurately determine whether the monitored object is going back in the monitored area, and also to increase the accuracy of the alarm.
[0061] Optionally, the reference direction is a direction from the entrance position frame to the exit position frame; and judging whether the monitored object has turned back in the monitored area according to the last disappearing position frame, the entrance position frame, the disappearing traveling direction and the reference direction comprises:
[0062] If the last disappearing position frame overlaps with the entrance position frame, and the disappearing moving direction is opposite to the reference direction, it is determined that the monitored object leaves the monitored area in a back-tracking manner.
[0063] like Figure 5 As shown, it is a schematic diagram of another method for determining whether a monitored object is walking back from other areas to enter the monitored area, wherein, in the monitored area 10, the last disappearing position frame 50 and the entrance position frame 20 overlap, and the disappearing direction is opposite to the reference direction, which can be regarded as the monitored object is walking back from the monitored area to leave the monitored area.
[0064] Optionally, if the last disappearing position frame overlaps with the entrance position frame, and the disappearing moving direction is opposite to the reference direction, determining that the monitored object leaves the monitored area in a back-tracking walking manner includes:
[0065] If the last disappearing position frame and the entrance position frame overlap, and the ratio of the area of the overlapping portion to the area of the last disappearing position frame or the ratio of the area proportion of the overlapping portion to the area of the entrance position frame is greater than a preset proportion threshold, then compare the disappearing traveling direction with the reference direction;
[0066] If the disappearing moving direction is opposite to the reference direction, it is determined that the monitored object leaves the monitored area in a walking manner of backtracking.
[0067] Among them, by calculating the ratio of the overlapping area of the last disappearing position box and the entrance position box to the area of the last disappearing position box, or by calculating the ratio of the overlapping area of the last disappearing position box and the entrance position box to the area of the entrance position box, and comparing the calculated ratio with the preset proportion threshold, it is possible to more accurately determine whether the monitored object has gone back in the monitored area, and also to increase the accuracy of the alarm.
[0068] Optionally, the reference direction is a direction from the exit location frame to the entrance location frame; and judging whether the monitored object has turned back in the monitored area according to the first appearance location frame, the exit location frame, the appearance travel direction and the reference direction includes:
[0069] If the first appearance position frame and the exit position frame overlap, and the appearance moving direction is the same as the reference direction, it is determined that the monitored object enters the monitored area from other areas in a back-tracking walking manner.
[0070] Optionally, the reference direction is a direction from the exit location frame to the entrance location frame; and judging whether the monitored object has turned back in the monitored area according to the first appearance location frame, the exit location frame, the appearance travel direction and the reference direction includes:
[0071] If the first appearance position frame and the exit position frame overlap, the area ratio of the overlapping part is greater than the preset ratio threshold, and the appearance moving direction is the same as the reference direction, it is determined that the monitored object enters the monitored area from other areas in a back-tracking walking manner.
[0072] Optionally, the reference direction is a direction from the exit position frame to the entrance position frame; and judging whether the monitored object has turned back in the monitored area according to the last disappearing position frame, the entrance position frame, the disappearing traveling direction and the reference direction comprises:
[0073] If the last disappearing position frame overlaps with the entrance position frame, and the disappearing moving direction is the same as the reference direction, it is determined that the monitored object leaves the monitored area in a back-tracking manner.
[0074] Optionally, the reference direction is a direction from the exit position frame to the entrance position frame; and judging whether the monitored object has turned back in the monitored area according to the last disappearing position frame, the entrance position frame, the disappearing traveling direction and the reference direction comprises:
[0075] If the last disappearing position frame and the entrance position frame overlap, the area ratio of the overlapping part is greater than the preset ratio threshold, and the disappearing moving direction is the same as the reference direction, it is determined that the monitored object leaves the monitored area by walking back the way it came.
[0076] Optionally, if it is detected that the monitored object is walking back in the monitored area, executing a preset alarm operation may include the following steps:
[0077] If it is detected that the monitored object has a walking behavior of going back in the monitored area, the cumulative number of times the monitored object goes back in the monitored area is counted in a preset time period;
[0078] If the accumulated number of times is greater than a preset number threshold, a preset alarm operation is executed.
[0079] In a specific implementation, each time the monitored object turns back in a preset time period can be recorded, and the cumulative number of times the monitored object turns back can be counted. Specifically, the first cumulative number of times the monitored object turns back and leaves the monitored area can be counted; the second cumulative number of times the monitored object turns back from other areas to enter the monitored area can be counted; and the total cumulative number of times the monitored object turns back in all the times can also be counted.
[0080] By setting a preset number threshold and comparing any of the first cumulative number, the second cumulative number and the total cumulative number with the corresponding preset proportion threshold, it can be determined whether the monitored object frequently goes back on its way, which can increase the accuracy of the alarm.
[0081] It can be seen that the method for judging whether the monitored area has turned back is provided by the embodiment of the present application, by obtaining the entrance position frame and the exit position frame of the monitored area; determining the reference direction according to the entrance position frame and the exit position frame; obtaining the first appearance position frame and the appearance travel direction of the monitored object in the monitored area, and obtaining the last disappearance position frame and the disappearance travel direction of the monitored object in the monitored area; judging whether the monitored object has turned back in the monitored area according to the first appearance position frame, the exit position frame, the appearance travel direction and the reference direction; and / or judging whether the monitored object has turned back in the monitored area according to the last disappearance position frame, the entrance position frame, the disappearance travel direction and the reference direction. In this way, it is possible to more accurately and quickly judge whether the monitored object has turned back.
[0082] Consistent with the above, see Figure 6 , is a flow chart of an embodiment of a method for determining whether a monitoring area has backtracked provided in an embodiment of the present application. The method for determining whether a monitoring area has backtracked described in this embodiment includes the following steps:
[0083] 201. Obtain an entry position frame and an exit position frame of a monitoring area; and determine a reference direction according to the entry position frame and the exit position frame.
[0084] The reference direction is the direction from the entry position frame to the exit position frame.
[0085] 202. Obtain the first appearance position frame and the appearance direction of the monitored object in the monitored area, and obtain the last disappearance position frame and the disappearance direction of the monitored object in the monitored area.
[0086] 203. If the first appearance position frame and the exit position frame overlap, and the appearance moving direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a back-tracking walking manner.
[0087] 204. If the last disappearing position frame and the entrance position frame overlap, and the disappearing moving direction is opposite to the reference direction, it is determined that the monitored object leaves the monitored area in a back-tracking manner.
[0088] 205. If the monitored object turns back in the monitored area, a preset alarm operation is executed.
[0089] The detailed description of the above steps 201 to 205 can be found in Figure 1 The corresponding steps of step 101 to step 103 of the method for determining whether the monitoring area has backtracked are not described in detail here.
[0090] It can be seen that the method for judging whether a monitored area has backtracked provided in the embodiment of the present application is by obtaining the entrance position frame and the exit position frame of the monitored area; determining the reference direction according to the entrance position frame and the exit position frame; obtaining the first appearance position frame and the appearance travel direction of the monitored object in the monitored area, and obtaining the last disappearance position frame and the disappearance travel direction of the monitored object in the monitored area; if the first appearance position frame and the exit position frame overlap, and the appearance travel direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a walking manner of backtracking; if the last disappearance position frame and the entrance position frame overlap, and the disappearance travel direction is opposite to the reference direction, it is determined that the monitored object leaves the monitored area in a walking manner of backtracking, and if the monitored object backtracks in the monitored area, a preset alarm operation is executed. In this way, it is possible to more accurately and quickly judge whether the monitored object has backtracked, and to issue an alarm for the situation of backtracking.
[0091] Consistent with the above, see Figure 7 , is a flow chart of an embodiment of a method for determining whether a monitoring area has backtracked provided in an embodiment of the present application. The method for determining whether a monitoring area has backtracked described in this embodiment includes the following steps:
[0092] 301. Obtain an entry position frame and an exit position frame of a monitoring area; and determine a reference direction according to the entry position frame and the exit position frame.
[0093] The reference direction is the direction from the entry position frame to the exit position frame.
[0094] 302. Obtain the first appearance position frame and appearance direction of the monitored object in the monitored area, and obtain the last disappearance position frame and disappearance direction of the monitored object in the monitored area.
[0095] 303. If there is an overlap between the first appearance position frame and the exit position frame, and the ratio of the area of the overlapping portion to the area of the first appearance position frame or the ratio of the area proportion of the overlapping portion to the area of the exit position frame is greater than a preset proportion threshold, then compare the appearing traveling direction with the reference direction.
[0096] 304. If the appearing moving direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a back-tracking walking manner.
[0097] 305. If the last disappearing position frame and the entrance position frame overlap, and the ratio of the area of the overlapping portion to the area of the last disappearing position frame or the ratio of the area proportion of the overlapping portion to the area of the entrance position frame is greater than a preset proportion threshold, then compare the disappearing moving direction with the reference direction.
[0098] 306. If the disappearing moving direction is opposite to the reference direction, it is determined that the monitored object leaves the monitored area by walking back from the monitored area.
[0099] 307. If it is detected that the monitored object has a walking behavior of backtracking in the monitored area, the cumulative number of times the monitored object backtracks in the monitored area is counted in a preset time period.
[0100] 308. If the accumulated number of times is greater than a preset number threshold, a preset alarm operation is executed.
[0101] The detailed description of the above steps 301 to 308 can be found in Figure 1 The corresponding steps of step 101 to step 103 of the method for determining whether the monitoring area has backtracked are not described in detail here.
[0102] It can be seen that the method for judging whether the monitoring area has gone back the way it is provided in the embodiment of the present application is to obtain the entrance position frame and the exit position frame of the monitoring area; determine the reference direction according to the entrance position frame and the exit position frame; obtain the first appearance position frame and the appearance direction of the monitored object in the monitoring area, and obtain the last disappearance position frame and the disappearance direction of the monitored object in the monitoring area; if the first appearance position frame and the exit position frame overlap, and the ratio of the area of the overlapping part to the area of the first appearance position frame or the ratio of the area proportion of the overlapping part to the area of the exit position frame is greater than a preset proportion threshold, then compare the appearance direction of travel and the reference direction; if the appearance direction of travel is opposite to the reference direction, it is determined that the monitored object has come from another direction. The monitored object enters the monitored area in a walking manner of backtracking; if the last disappearing position frame and the entrance position frame overlap, and the ratio of the area of the overlapping part to the area of the last disappearing position frame or the ratio of the area proportion of the overlapping part to the area of the entrance position frame is greater than a preset proportion threshold, the disappearing direction and the reference direction are compared; if the disappearing direction and the reference direction are opposite, it is determined that the monitored object leaves the monitored area in a walking manner of backtracking, and the cumulative number of times the monitored object backtracks in the monitored area is counted in a preset time period; if the cumulative number is greater than the preset number threshold, the preset alarm operation is executed; in this way, it is possible to more accurately and quickly determine whether the monitored object has backtracked, and to issue an alarm for the situation of backtracking.
[0103] Consistent with the above, the following is a device for implementing the above-mentioned method for determining whether the monitoring area is backtracked, which is as follows:
[0104] See also Figure 8, is a schematic diagram of the structure of an embodiment of a monitoring device provided in an embodiment of the present application. The monitoring device 400 described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, wherein the input device 1000, the output device 2000, the processor 3000 and the memory 4000 are connected via a bus 5000.
[0105] The input device 1000 may specifically be a touch panel, a physical button or a mouse.
[0106] The output device 2000 may specifically be a display screen.
[0107] The memory 4000 may be a high-speed RAM memory or a non-volatile memory, such as a disk memory. The memory 4000 is used to store a set of program codes, and the input device 1000, the output device 2000 and the processor 3000 are used to call the program codes stored in the memory 4000 and perform the following operations:
[0108] The processor 3000 is used for:
[0109] Acquire an entry position frame and an exit position frame of a monitoring area; determine a reference direction according to the entry position frame and the exit position frame;
[0110] Obtain the first appearance position frame and the appearance direction of the monitored object in the monitored area, and obtain the last disappearance position frame and the disappearance direction of the monitored object in the monitored area;
[0111] Determine whether the monitored object has gone back in the monitored area based on the first appearance position frame, the exit position frame, the appearance travel direction and the reference direction; and / or determine whether the monitored object has gone back in the monitored area based on the last disappearance position frame, the entrance position frame, the disappearance travel direction and the reference direction.
[0112] In a possible example, the reference direction is a direction from the entrance position frame to the exit position frame; in determining whether the monitored object has turned back in the monitored area according to the first appearance position frame, the exit position frame, the appearance direction and the reference direction, the processor 3000 is specifically used to:
[0113] If the first appearance position frame and the exit position frame overlap, and the appearance travel direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a back-tracking walking manner, and the other areas are areas other than the monitored area.
[0114] In a possible example, if the first appearance position frame and the exit position frame overlap, and the appearance travel direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a backtracking walking manner, and the other areas are areas other than the monitored area, the processor 3000 is specifically used to:
[0115] If the first appearance position frame and the exit position frame overlap, and the ratio of the area of the overlapping portion to the area of the first appearance position frame or the ratio of the area proportion of the overlapping portion to the area of the exit position frame is greater than a preset proportion threshold, then comparing the appearance travel direction with the reference direction;
[0116] If the appearing moving direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a back-tracking walking manner.
[0117] In a possible example, the reference direction is a direction from the entrance position frame to the exit position frame; in determining whether the monitored object has walked back in the monitored area according to the last disappearing position frame, the entrance position frame, the disappearing traveling direction and the reference direction, the processor 3000 is specifically used to:
[0118] If the last disappearing position frame overlaps with the entrance position frame, and the disappearing moving direction is opposite to the reference direction, it is determined that the monitored object leaves the monitored area in a back-tracking manner.
[0119] In a possible example, if the last disappearing position frame overlaps with the entrance position frame, and the disappearing moving direction is opposite to the reference direction, in terms of determining that the monitored object leaves the monitored area in a walking manner of walking back from the monitored area, the processor 3000 is specifically configured to:
[0120] If the last disappearing position frame and the entrance position frame overlap, and the ratio of the area of the overlapping portion to the area of the last disappearing position frame or the ratio of the area proportion of the overlapping portion to the area of the entrance position frame is greater than a preset proportion threshold, then compare the disappearing traveling direction with the reference direction;
[0121] If the disappearing moving direction is opposite to the reference direction, it is determined that the monitored object leaves the monitored area in a walking manner of backtracking.
[0122] In a possible example, the processor 3000 is further specifically configured to:
[0123] If it is detected that the monitored object is walking back in the monitored area, a preset alarm operation is executed.
[0124] In a possible example, in the aspect of executing a preset alarm operation if it is detected that the monitored object is walking back in the monitored area, the processor 3000 is further configured to:
[0125] If it is detected that the monitored object has a walking behavior of going back in the monitored area, the cumulative number of times the monitored object goes back in the monitored area is counted in a preset time period;
[0126] If the accumulated number of times is greater than a preset number threshold, a preset alarm operation is executed.
[0127] It can be seen that, through the monitoring device described in the embodiment of the present application, the entrance position frame and the exit position frame of the monitoring area are obtained; the reference direction is determined according to the entrance position frame and the exit position frame; the first appearance position frame and the appearance direction of the monitored object in the monitoring area are obtained, and the last disappearance position frame and the disappearance direction of the monitored object in the monitoring area are obtained; according to the first appearance position frame, the exit position frame, the appearance direction and the reference direction, it is judged whether the monitored object has gone back in the monitoring area; and / or, according to the last disappearance position frame, the entrance position frame, the disappearance direction and the reference direction, it is judged whether the monitored object has gone back in the monitoring area. In this way, it is possible to more accurately and quickly judge whether the monitored object has gone back.
[0128] See also Fig. 9 , is a schematic diagram of an embodiment of a device for judging whether a monitoring area has backtracked provided in an embodiment of the present application. The device 500 for judging whether a monitoring area has backtracked described in this embodiment includes: an acquisition unit 501 and a judgment unit 502, which are specifically as follows:
[0129] An acquisition unit 501 is used to acquire an entry position frame and an exit position frame of a monitoring area; and determine a reference direction according to the entry position frame and the exit position frame;
[0130] The acquisition unit 501 is further used to acquire the first appearance position frame and the appearance direction of the monitored object in the monitored area, and acquire the last disappearance position frame and the disappearance direction of the monitored object in the monitored area;
[0131] The judgment unit 502 is used to judge whether the monitored object has turned back in the monitored area based on the first appearance position frame, the exit position frame, the appearance travel direction and the reference direction; and / or, to judge whether the monitored object has turned back in the monitored area based on the last disappearance position frame, the entrance position frame, the disappearance travel direction and the reference direction.
[0132] Optionally, the reference direction is a direction from the entrance position frame to the exit position frame; in judging whether the monitored object has walked back in the monitored area according to the first appearance position frame, the exit position frame, the appearance direction and the reference direction, the judging unit 502 is specifically used to:
[0133] If the first appearance position frame and the exit position frame overlap, and the appearance travel direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a back-tracking walking manner, and the other areas are areas other than the monitored area.
[0134] Optionally, if the first appearance position frame and the exit position frame overlap, and the appearance travel direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a backtracking walking manner, and the other areas are areas other than the monitored area, the analysis unit 502 is specifically used to:
[0135] If the first appearance position frame and the exit position frame overlap, and the ratio of the area of the overlapping portion to the area of the first appearance position frame or the ratio of the area proportion of the overlapping portion to the area of the exit position frame is greater than a preset proportion threshold, then comparing the appearance travel direction with the reference direction;
[0136] If the appearing moving direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a back-tracking walking manner.
[0137] Optionally, the reference direction is a direction from the entrance position frame to the exit position frame; in determining whether the monitored object has walked back in the monitored area according to the last disappearing position frame, the entrance position frame, the disappearing traveling direction and the reference direction, the analyzing unit 502 is specifically used to:
[0138] If the last disappearing position frame overlaps with the entrance position frame, and the disappearing moving direction is opposite to the reference direction, it is determined that the monitored object leaves the monitored area in a back-tracking manner.
[0139] Optionally, if the last disappearing position frame overlaps with the entrance position frame, and the disappearing moving direction is opposite to the reference direction, in terms of determining that the monitored object leaves the monitored area in a walking manner of backtracking from the monitored area, the judgment unit 503 is specifically configured to:
[0140] If the last disappearing position frame and the entrance position frame overlap, and the ratio of the area of the overlapping portion to the area of the last disappearing position frame or the ratio of the area proportion of the overlapping portion to the area of the entrance position frame is greater than a preset proportion threshold, then compare the disappearing traveling direction with the reference direction;
[0141] If the disappearing moving direction is opposite to the reference direction, it is determined that the monitored object leaves the monitored area in a walking manner of backtracking.
[0142] Optionally, the device further comprises an alarm unit, and the alarm unit is specifically used for:
[0143] If it is detected that the monitored object is walking back in the monitored area, a preset alarm operation is executed.
[0144] Optionally, in the aspect of executing a preset alarm operation if it is detected that the monitored object is walking back in the monitored area, the alarm unit is specifically used to:
[0145] If it is detected that the monitored object has a walking behavior of going back in the monitored area, the cumulative number of times the monitored object goes back in the monitored area is counted in a preset time period;
[0146] If the accumulated number of times is greater than a preset number threshold, a preset alarm operation is executed.
[0147] It can be seen that the device for judging whether a monitored area has turned back is described in the embodiment of the present application, by obtaining the entrance position frame and the exit position frame of the monitored area; determining the reference direction according to the entrance position frame and the exit position frame; obtaining the first appearance position frame and the appearance travel direction of the monitored object in the monitored area, and obtaining the last disappearance position frame and the disappearance travel direction of the monitored object in the monitored area; judging whether the monitored object has turned back in the monitored area according to the first appearance position frame, the exit position frame, the appearance travel direction and the reference direction; and / or judging whether the monitored object has turned back in the monitored area according to the last disappearance position frame, the entrance position frame, the disappearance travel direction and the reference direction. In this way, it is possible to more accurately and quickly judge whether the monitored object has turned back.
[0148] It can be understood that the functions of each program module of the monitoring area backtracking judgment device of this embodiment can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0149] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, it includes part or all of the steps of any method for determining whether a monitoring area has backtracked as recorded in the above method embodiments.
[0150] The embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method for determining backtracking in a monitoring area as described in the embodiment of the present application. The computer program product may be a software installation package.
[0151] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in a claim. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0152] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices (equipment), or computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The computer program is stored / distributed in a suitable medium, provided together with other hardware or as a part of hardware, and other distribution forms may also be adopted, such as by Internet or other wired or wireless telecommunication systems.
[0153] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (equipment) and computer program products of the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable monitoring area backtracking judgment device to generate a machine, so that the instructions executed by the processor of the computer or other programmable device for counting the number of people entering and leaving the area are used to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0154] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable human-vehicle trajectory analysis device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0155] These computer program instructions can also be loaded onto a computer or other programmable vehicle trajectory analysis device, so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0156] Although the present application has been described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for judging whether a monitored area has gone back on its way. It is characterized in that The method comprises: Acquire an entry position frame and an exit position frame of a monitoring area; determine a reference direction according to the entry position frame and the exit position frame; Obtain the first appearance position frame and the appearance direction of the monitored object in the monitored area, and obtain the last disappearance position frame and the disappearance direction of the monitored object in the monitored area; Determine whether the monitored object has gone back in the monitored area based on the first appearance position frame, the exit position frame, the appearance travel direction and the reference direction; and / or determine whether the monitored object has gone back in the monitored area based on the last disappearance position frame, the entrance position frame, the disappearance travel direction and the reference direction.
2. The method according to claim 1, It is characterized in that The reference direction is the direction from the entrance position frame to the exit position frame; judging whether the monitored object has turned back in the monitored area according to the first appearance position frame, the exit position frame, the appearance direction and the reference direction includes: If the first appearance position frame and the exit position frame overlap, and the appearance travel direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a back-tracking walking manner, and the other areas are areas other than the monitored area.
3. The method according to claim 2, It is characterized in that If the first appearance position frame and the exit position frame overlap, and the appearance direction is opposite to the reference direction, determining that the monitored object enters the monitored area from another area in a backtracking walking manner includes: If the first appearance position frame and the exit position frame overlap, and the ratio of the area of the overlapping portion to the area of the first appearance position frame or the ratio of the area proportion of the overlapping portion to the area of the exit position frame is greater than a preset proportion threshold, then comparing the appearance travel direction with the reference direction; If the appearing moving direction is opposite to the reference direction, it is determined that the monitored object enters the monitored area from other areas in a back-tracking walking manner.
4. The method according to claim 1, It is characterized in that The reference direction is the direction from the entrance position frame to the exit position frame; judging whether the monitored object has turned back in the monitored area according to the last disappearing position frame, the entrance position frame, the disappearing traveling direction and the reference direction includes: If the last disappearing position frame overlaps with the entrance position frame, and the disappearing moving direction is opposite to the reference direction, it is determined that the monitored object leaves the monitored area in a back-tracking manner.
5. The method according to claim 4, It is characterized in that If the last disappearing position frame overlaps with the entrance position frame, and the disappearing moving direction is opposite to the reference direction, determining that the monitored object leaves the monitored area in a back-tracking walking manner includes: If the last disappearing position frame and the entrance position frame overlap, and the ratio of the area of the overlapping portion to the area of the last disappearing position frame or the ratio of the area proportion of the overlapping portion to the area of the entrance position frame is greater than a preset proportion threshold, then compare the disappearing traveling direction with the reference direction; If the disappearing moving direction is opposite to the reference direction, it is determined that the monitored object leaves the monitored area in a walking manner of backtracking.
6. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: If it is detected that the monitored object is walking back in the monitored area, a preset alarm operation is executed.
7. The method according to claim 6, It is characterized in that If it is detected that the monitored object is walking back in the monitored area, a preset alarm operation is executed, including: If it is detected that the monitored object has a walking behavior of going back in the monitored area, the cumulative number of times the monitored object goes back in the monitored area is counted in a preset time period; If the accumulated number of times is greater than a preset number threshold, a preset alarm operation is executed.
8. A device for judging whether a person has gone back on his or her way in a monitoring area. It is characterized in that The device comprises: An acquisition unit, used to acquire an entry position frame and an exit position frame of a monitoring area; and determine a reference direction according to the entry position frame and the exit position frame; The acquisition unit is further used to acquire the first appearance position frame and the appearance direction of the monitored object in the monitored area, and acquire the last disappearance position frame and the disappearance direction of the monitored object in the monitored area; A judgment unit is used to judge whether the monitored object has turned back in the monitored area based on the first appearance position frame, the exit position frame, the appearance travel direction and the reference direction; and / or, to judge whether the monitored object has turned back in the monitored area based on the last disappearance position frame, the entrance position frame, the disappearance travel direction and the reference direction.
9. A monitoring device, It is characterized in that The method comprises a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the programs include instructions for executing the steps in the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Control method capable of discovering stalker, and mobile terminal
CN105872210A
Terminal-based people flow monitoring method and device
CN106211067A
Vehicle monitoring method and device, computer equipment and storage medium
CN111091115A
Laser-monitoring static-pressure hole guiding and pile sinking construction method for super-thick pebbly sand layer
CN111455982A
Illegal behavior monitoring method, device and system, electronic equipment and storage medium
CN111586356A
