Alarm method and device
By grouping cameras in public areas and accumulating the status of target objects, alarm information is automatically sent, solving the problem of low security in existing camera systems and achieving efficient automatic early warning and monitoring.
Patent Information
- Application Number
- CN202211130676.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2042-09-15
AI Technical Summary
The existing camera systems in public areas cannot work together effectively, resulting in low security. Staff have to manually search for evidence in multiple video feeds, which is inefficient.
By dividing the area into zones, multiple cameras are grouped, with each group responsible for video surveillance of a specific area. The status of the target object is accumulated across multiple video feeds, and alarm information is automatically sent.
It enables automatic early warning in public areas, improving security, reducing manual intervention, and enhancing monitoring efficiency.
Smart Images

Figure CN115631610B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communications, and more specifically, to an alarm method and apparatus. Background Art
[0002] Installing cameras in public areas can improve security. By installing multiple cameras and capturing images from various angles, comprehensive monitoring of the public area can be achieved.
[0003] However, in existing technology, multiple cameras installed in public areas operate independently, and the footage captured by these cameras only serves as supplementary investigative tools. For example, after an illegal incident occurs, staff collect evidence using video footage from multiple cameras. This requires staff to sift through a large amount of video footage from multiple cameras to find the evidence, and then analyze and organize this footage to obtain relevant evidence. This process is labor-intensive, inefficient, and compromises the security of public areas.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This invention provides an alarm method and apparatus to at least address the problem of low security in public areas in related technologies.
[0006] According to an embodiment of the present invention, an alarm method is provided, comprising: acquiring a set of video frames captured by a set of cameras set in a target area, wherein each video frame is a frame captured by a corresponding camera at a corresponding viewpoint, and the set of video frames includes the target area from various viewpoints; when a target object appears in multiple video frames of the set of video frames, accumulating the state of the target object in the multiple video frames to obtain a cumulative state of the target object; and when the cumulative state of the target object is an abnormal state, sending an alarm message.
[0007] In one exemplary embodiment, accumulating the states of the target object in the plurality of video frames to obtain the cumulative state of the target object includes: accumulating the same continuous state of the target object in the plurality of video frames to obtain the cumulative state of the target object; or, accumulating different continuous states of the target object in the plurality of video frames to obtain the cumulative state of the target object.
[0008] In an exemplary embodiment, when the cumulative state of the target object is an abnormal state, sending an alarm message includes: when the cumulative state is the accumulation of the same state, obtaining the cumulative duration of the cumulative state; when the cumulative duration is greater than or equal to a preset duration threshold, determining the cumulative state as an abnormal state, and sending the alarm message.
[0009] In an exemplary embodiment, accumulating the same state of the target object continuously in the plurality of video frames includes: when the target object begins to appear in a first video frame among the plurality of video frames, marking a first state of the target object in the first video frame as a global state, wherein the global state is set to continue the state of the target object in the plurality of video frames; when the target object moves from the first video frame to a second video frame, if the state of the target object in the second video frame is still the first state, accumulating the duration of the first state of the target object in the first video frame and the second video frame to obtain the accumulated duration of the first state.
[0010] In an exemplary embodiment, the method further includes: determining the first state as an abnormal state and sending the alarm information when the cumulative duration of the first state is greater than or equal to a preset duration threshold.
[0011] In one exemplary embodiment, sending an alarm message when the cumulative state of the target object is an abnormal state further includes: when the cumulative state is the accumulation of the different states, and when the cumulative state satisfies a preset alarm state, sending the alarm message.
[0012] In one exemplary embodiment, accumulating the different states of the target object in the plurality of video frames includes: when the target object begins to appear in the third video frame of the plurality of video frames, marking the target object as a global object, wherein the global object is set to continue the state of the target object in the plurality of video frames; when the target object moves from the third video frame to the fourth video frame, accumulating the second state of the target object in the third video frame and the third state of the target object in the fourth video frame to obtain the accumulated state.
[0013] In an exemplary embodiment, after determining that the cumulative state of the target object is an abnormal state, the method further includes: stitching the plurality of video frames together and storing the stitched plurality of video frames.
[0014] According to another embodiment of the present invention, an alarm device is provided, comprising: an acquisition module, configured to acquire a set of video frames captured by a set of cameras installed in a target area, wherein each video frame is a frame captured by a corresponding camera at a corresponding viewpoint, and the set of video frames includes frames of the target area from various viewpoints; an accumulation module, configured to accumulate the state of the target object in multiple video frames when the target object appears in multiple video frames of the set of video frames, to obtain the cumulative state of the target object; and a sending module, configured to send alarm information when the cumulative state of the target object is an abnormal state.
[0015] According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program, when executed by a processor, implements the steps of the method described in any of the preceding claims.
[0016] According to yet another embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0017] This invention divides areas and assigns a set of cameras to each area, each set responsible for capturing video footage of that area. By monitoring target objects appearing in the video footage and triggering alarms based on the cumulative status of these targets across multiple video feeds, automatic early warning can be achieved. Therefore, this invention addresses the issue of low security in public areas and improves their overall safety. Attached Figure Description
[0018] Figure 1 This is a hardware structure block diagram of a mobile terminal for an alarm method according to an embodiment of the present invention.
[0019] Figure 2 This is a flowchart of an alarm method according to an embodiment of the present invention;
[0020] Figure 3 This is a schematic diagram of grouping according to an embodiment of the present invention;
[0021] Figure 4 This is a schematic diagram of the deployment area parameter configuration according to an embodiment of the present invention;
[0022] Figure 5 This is a flowchart of intelligent zone configuration based on group-based multi-video channel linkage according to an embodiment of the present invention;
[0023] Figure 6 This is a schematic diagram of the deployment area according to an embodiment of the present invention;
[0024] Figure 7 This is the alarm process according to an embodiment of the present invention;
[0025] Figure 8 This is a schematic diagram of an alarm image according to an embodiment of the present invention;
[0026] Figure 9 This is a structural block diagram of an alarm device according to an embodiment of the present invention. Detailed Implementation
[0027] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0029] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for an alarm method according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0030] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the alarm method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0031] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0032] This embodiment provides an alarm method that runs on the aforementioned mobile terminal. Figure 2 This is a flowchart of an alarm method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:
[0033] Step S202: Obtain a set of video frames captured by a set of cameras set in the target area, wherein each video frame is a frame captured by the corresponding camera from a corresponding viewpoint, and the set of video frames includes the frame of the target area from various viewpoints;
[0034] The target area mentioned above can be a security zone. A set of cameras installed within the target area includes multiple cameras, the specific number of which can be determined based on actual conditions. These multiple cameras can be positioned in various directions within the target area to capture video footage from different perspectives. For example, using cameras installed in the east, south, west, and north directions of the target area, the camera positioned in the east will capture footage from an eastern perspective, and the camera positioned in the west will capture footage from a western perspective. Through these cameras positioned in various directions within the target area, game footage from various perspectives can be obtained. The aforementioned set of video footage includes game footage captured by cameras positioned in various directions within the target area from different perspectives.
[0035] Step S204: When the target object appears in multiple video frames in the set of video frames, the state of the target object in the multiple video frames is accumulated to obtain the accumulated state of the target object;
[0036] Step S206: If the cumulative state of the target object is abnormal, send an alarm message.
[0037] Optionally, the entity performing the above steps may be a background processor or other devices with similar processing capabilities, or a machine that integrates at least an image acquisition device and a data processing device. The image acquisition device may include an image acquisition module such as a camera, and the data processing device may include a terminal such as a computer or a mobile phone, but is not limited thereto.
[0038] Through the above steps, by dividing the area into zones and assigning a set of cameras to each zone, these cameras are responsible for capturing video footage of that zone. Target objects appearing in the video footage are monitored, and alarms are triggered based on the cumulative status of the target object across multiple video feeds. This achieves automatic early warning, thus addressing the issue of low security in public areas and improving their overall safety.
[0039] As an optional implementation, the public area can be divided into multiple deployment zones. The target area mentioned above is one of these deployment zones. Each deployment zone can be equipped with multiple cameras, such as 3, 5, or 10. The number of cameras in each deployment zone can be determined according to the actual situation. The locations of the cameras in each deployment zone can be different, and they can be set in different directions of the deployment zone (e.g., east, south, west, north, northeast, northwest, southwest, etc.). Multiple cameras set in different locations within the deployment zone can capture video footage of the deployment zone from various perspectives. For example, a camera installed in the southeast direction can capture video footage of the deployment zone from the southeast perspective.
[0040] Defense zones are typically divided according to entrances / exits, security passages, and open areas of view. Cameras with different angles within these zones are grouped together. For example... Figure 3 The diagram shows that the office area of a certain company is divided into four security zones: the entrance, the elevator entrance, the office area, and the emergency exit. Cameras within each security zone are grouped together.
[0041] By placing cameras at different locations within public areas, cameras with different viewing angles covering the same area are grouped together. For example, in the office area of a certain company, based on the location and zone function of the monitoring points, the cameras installed in the area corresponding to the entrance can be divided into group 1, the cameras installed in the area corresponding to the elevator entrance can be divided into group 2, the cameras installed in the area corresponding to the office area can be divided into group 3, and the cameras installed in the area corresponding to the safety exit can be divided into group 4.
[0042] When configuring intelligent defense zones for each deployed area in a public area, it is further divided into intelligent parameter configuration and intelligent zone configuration. Figure 3 Taking the deployment area corresponding to group 1 shown in the figure as an example, intelligent zone configuration is performed. Figure 4 As shown in the image above, the specific configuration interface is as follows. The configuration parameters apply to all cameras within each security zone. You can disable parameters for specific monitoring points using the enable / disable buttons to achieve on-demand configuration. The deployment area is a shared defense zone comprised of all cameras within the entire monitoring group, such as... Figure 4 The curves in the deployment area are shown. This enables intelligent zone configuration with multi-video channel linkage. After the configuration parameters of each deployment area are sent to the monitoring points in each group, parameter alarms are also triggered on a group-by-group basis. The alarm method is a marker-linked alarm mode.
[0043] As an optional implementation, Figure 3 Taking the public area shown as an example, the steps for configuring intelligent defense zones based on group-based multi-video channel linkage are as follows: Figure 5 As shown, the following steps are included:
[0044] Step S1: Select a security area in the public area and place cameras in different positions and from different angles. Group all the cameras in the security area into one group and name the group (e.g., group 1, group 2, group 3, group 4, which can be named arbitrarily).
[0045] Step S2: Configure parameters (area invasion, line invasion, etc.) for the group (e.g., group 1) established in step 1.
[0046] Step S3: Configure the defense zone for the group (e.g., group 1) established in step 1, and establish a common defense zone for multiple monitoring points within the group.
[0047] Step S4: Enable / disable some monitoring points as needed; the default is to enable all monitoring points.
[0048] Step S5: End configuration and issue the next defense task.
[0049] In one exemplary embodiment, accumulating the states of the target object in the plurality of video frames to obtain the cumulative state of the target object includes: accumulating the same continuous state of the target object in the plurality of video frames to obtain the cumulative state of the target object; or, accumulating different continuous states of the target object in the plurality of video frames to obtain the cumulative state of the target object.
[0050] As an optional implementation, if the target object remains in the same state (e.g., standing still, walking, running, jumping, etc.) in the video footage captured by different cameras within the deployment area, the same state of the target object in the different video footage captured by different cameras can be accumulated.
[0051] As another optional implementation, if the target object is in different states in the video footage captured by different cameras within the deployment area, the different states of the target object in the different video footage captured by different cameras can be accumulated.
[0052] In an exemplary embodiment, when the cumulative state of the target object is an abnormal state, sending an alarm message includes: when the cumulative state is the accumulation of the same state, obtaining the cumulative duration of the cumulative state; when the cumulative duration is greater than or equal to a preset duration threshold, determining the cumulative state as an abnormal state, and sending the alarm message.
[0053] As an optional implementation, Figure 6Taking the deployment area shown as an example, the alarm method treats each camera within the deployment area as an effective area. For target X (the target object) appearing in the video feed of camera A, its status is marked, and this status is synchronized to the global status within the deployment area. When target X disappears from the video feed of camera A and reappears in the video feed of camera B, because target X's status is global, its status in the video feed of camera A will continue in the video feed of camera B. The video stream acquired and analyzed by camera B does not need to have its status reset. Target X only needs to accumulate its status in the video feeds of camera A and camera B to reach the alarm state to trigger the alarm parameters and report the alarm. For example, as shown in the figure, target X's dwell time in the video feed of camera A is 1 second, and its dwell time in the video feed of camera B is 5 seconds. Accumulating these two durations gives a cumulative duration of 6 seconds. Assuming a preset duration threshold of 5 seconds, if the cumulative duration of 6 seconds exceeds the preset duration threshold of 5 seconds, an alarm is triggered and reported.
[0054] In an exemplary embodiment, accumulating the same state of the target object continuously in the plurality of video frames includes: when the target object begins to appear in a first video frame among the plurality of video frames, marking a first state of the target object in the first video frame as a global state, wherein the global state is set to continue the state of the target object in the plurality of video frames; when the target object moves from the first video frame to a second video frame, if the state of the target object in the second video frame is still the first state, accumulating the duration of the first state of the target object in the first video frame and the second video frame to obtain the accumulated duration of the first state.
[0055] As an optional implementation, Figure 6 For example, the first video frame mentioned above can be a video frame captured by camera A, the second video frame mentioned above can be a video frame captured by camera B, the target object mentioned above is target X, and the first state mentioned above is a dwell state. As shown in the figure, target X dwells for 1 second in the video frame captured by camera A and for 5 seconds in the video frame captured by camera B. The two durations are accumulated to obtain a cumulative duration of 6 seconds. Assuming that the preset duration threshold is 5 seconds, if the cumulative duration of 6 seconds exceeds the preset duration threshold of 5 seconds, an alarm is triggered and an alarm report is sent.
[0056] In an exemplary embodiment, the method further includes: determining the first state as an abnormal state and sending the alarm information when the cumulative duration of the first state is greater than or equal to a preset duration threshold.
[0057] As an optional implementation, the above-mentioned preset duration threshold can be set according to the actual situation, such as 6 seconds in the above embodiment.
[0058] In one exemplary embodiment, sending an alarm message when the cumulative state of the target object is an abnormal state further includes: when the cumulative state is the accumulation of the different states, and when the cumulative state satisfies a preset alarm state, sending the alarm message.
[0059] As an optional implementation, the aforementioned preset alarm state can be a pre-configured state, such as walking / jumping, stationary running, etc. Assuming the target object's state in the video frame captured by camera A is walking, and the target object's state in the video frame captured by camera B is jumping, the walking state in the video frame captured by camera A and the jumping state in the video frame captured by camera B are accumulated. If the cumulative state of the target object is walking / jumping, and this matches the preset alarm state, then an alarm is triggered.
[0060] In one exemplary embodiment, accumulating the different states of the target object in the plurality of video frames includes: when the target object begins to appear in the third video frame of the plurality of video frames, marking the target object as a global object, wherein the global object is set to continue the state of the target object in the plurality of video frames; when the target object moves from the third video frame to the fourth video frame, accumulating the second state of the target object in the third video frame and the third state of the target object in the fourth video frame to obtain the accumulated state.
[0061] As an optional implementation, the third video frame can be a video frame captured by camera A, and the fourth video frame can be a video frame captured by camera B. Target objects appearing in camera A are marked and designated as global objects. When a target object disappears from the video frame captured by camera A but reappears in the video frame captured by camera B, because the target object is a global object, its state in the video frame captured by camera A (second state, assuming it's running) and its state in the video frame captured by camera B (third state, assuming it's jumping) accumulate to a running / jumping state, which matches a preset alarm state, triggering an alarm.
[0062] In an exemplary embodiment, after determining that the cumulative state of the target object is an abnormal state, the method further includes: stitching the plurality of video frames together and storing the stitched plurality of video frames.
[0063] As an optional implementation method, the alarm process is as follows: Figure 7 As shown, alarms and queries are performed on a group basis, consisting of video footage captured by each group of cameras within the deployed area. Alarm reporting, storage, and querying at all levels are also conducted on a group basis. The alarm images differ from the traditional method of capturing images from individual monitoring channels; instead, alarm images are stitched together from images within the same group for reporting. Figure 6 Taking the alarm shown as an example, if a person (target) intrudes into the protected area and triggers the pre-set alarm conditions for that area, the reported alarm image will be as follows: Figure 8 As shown, the alarm image is a stitched image of all monitoring points within the group, enabling the system to automatically associate and capture images of all monitoring points within the group when an alarm is triggered.
[0064] In the above embodiments, by merging multiple adjacent cameras within a deployment area in groups, and uniformly configuring intelligent parameters and reporting alarms for each group, the problem of batch configuration of multiple monitoring points is technically solved. Based on the group-zone-linked alarm method, target objects appearing in the video footage within a group are treated as global objects, and their global status is recorded. When a target is lost in one camera and reappears in another, its status is not reset to zero, allowing alarm statuses to accumulate within the group, thus improving alarm reliability and increasing the utilization rate of the group's defense zones. Furthermore, the technology of shared defense zones within groups and group alarm image capture is innovatively proposed, treating the group as the basic unit of intelligent monitoring, thereby providing a new technology for intelligent zone deployment and alarm reporting with multi-video channel linkage.
[0065] By establishing the concept of groups, multiple cameras are aggregated into a single group, and parameters are configured on a group-by-group basis, enabling batch intelligent parameter configuration for multiple cameras. Similarly, by establishing groups, multiple cameras are aggregated into a single group, and zone configuration is performed on a group-by-group basis. Different areas monitored by different cameras within a group are treated as shared zones, allowing multiple cameras to operate under the same monitoring logic and trigger alarms. This method improves the efficiency of zone monitoring. Each target in the video feed within a group is treated as a global object, and its global state is recorded. When a target is lost in one camera and reappears in another, its state is not reset to zero, allowing alarm states to accumulate within the group, thus improving alarm reliability and increasing the utilization rate of zones within the group. By establishing the concept of groups, multiple cameras are aggregated into a single group, and alarms are reported on a group-by-group basis. When an alarm is triggered, images from multiple cameras within the group are captured and merged into a single image. This allows users to directly view the entire monitored area of the group through the group alarm image, avoiding the information gaps that occur with single-point monitoring alarms. By establishing groups for multiple monitoring points at different locations within a region, parameters are configured based on these groups. Furthermore, when configuring parameters within a group, a shared defense zone concept is adopted to address the shortcomings of traditional single-point defense zones, such as small monitoring areas and incomplete regional information. Groups are typically formed by dividing points into entrances / exits, safety passages, and monitoring points with different perspectives within open fields of view. Monitoring points within a group can be flexibly managed, allowing for enabling or disabling of specific monitoring points and configuring group parameters as needed. Intelligent parameters apply to the entire defense zone within the group, and alarms are triggered through a linked system of camera markers within the group.
[0066] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0067] This embodiment also provides an alarm device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0068] Figure 9 This is a structural block diagram of an alarm device according to an embodiment of the present invention, such as... Figure 9 As shown, the device includes: an acquisition module 82, used to acquire a set of video frames captured by a set of cameras set in a target area, wherein each video frame is a frame captured by a corresponding camera from a corresponding viewpoint, and the set of video frames includes the target area from various viewpoints; an accumulation module 84, used to accumulate the state of the target object in multiple video frames when the target object appears in multiple video frames of the set of video frames, to obtain the cumulative state of the target object; and a sending module 86, used to send alarm information when the cumulative state of the target object is an abnormal state.
[0069] In an exemplary embodiment, the above-described apparatus is further configured to accumulate the same continuous state of the target object in the plurality of video frames to obtain the cumulative state of the target object; or, to accumulate the different continuous states of the target object in the plurality of video frames to obtain the cumulative state of the target object.
[0070] In an exemplary embodiment, the above-described apparatus is further configured to: when the cumulative state is the accumulation of the same state, obtain the cumulative duration of the cumulative state; when the cumulative duration is greater than or equal to a preset duration threshold, determine the cumulative state as an abnormal state and send the alarm information.
[0071] In an exemplary embodiment, the apparatus is further configured to, when the target object begins to appear in the first video frame of the plurality of video frames, mark the first state of the target object in the first video frame as a global state, wherein the global state is set to continue the state of the target object in the plurality of video frames; when the target object moves from the first video frame to the second video frame, if the state of the target object in the second video frame is still the first state, accumulate the duration of the first state of the target object in the first video frame and the second video frame to obtain the accumulated duration of the first state.
[0072] In an exemplary embodiment, the above-described device is further configured to determine the first state as an abnormal state and send the alarm information when the cumulative duration of the first state is greater than or equal to a preset duration threshold.
[0073] In an exemplary embodiment, the above-described apparatus is further configured to send the alarm information when the cumulative state is a cumulative sum of the different states and the cumulative state satisfies a preset alarm state.
[0074] In an exemplary embodiment, the above-described apparatus is further configured to mark the target object as a global object when the target object begins to appear in the third video frame of the plurality of video frames, wherein the global object is set to continue the state of the target object in the plurality of video frames; and when the target object moves from the third video frame to the fourth video frame, accumulate the second state of the target object in the third video frame with the third state of the target object in the fourth video frame to obtain the accumulated state.
[0075] In an exemplary embodiment, the above-described apparatus is further configured to, after determining that the cumulative state of the target object is an abnormal state, stitch the plurality of video frames together and store the stitched plurality of video frames.
[0076] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0077] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any of the preceding claims.
[0078] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0079] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0080] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0081] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0082] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0083] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. An alarm method, characterized in that, include: Acquire a set of video images captured by a set of cameras set up in a target area, wherein each video image is captured by a corresponding camera from a corresponding viewpoint, and the set of video images includes images of the target area from various viewpoints; When the target object appears in multiple video frames in the set of video frames, the state of the target object in the multiple video frames is accumulated to obtain the cumulative state of the target object; If the cumulative status of the target object is abnormal, an alarm message is sent. The cumulative state of the target object is obtained by accumulating the states of the target object in the plurality of video frames, including: When the target object begins to appear in the first video frame among the plurality of video frames, the first state of the target object in the first video frame is marked as a global state, wherein the global state is set to continue the state of the target object in the plurality of video frames; When the target object moves from the first video frame to the second video frame, if the target object is still in the first state in the second video frame, the duration of the first state of the target object in the first video frame and the second video frame is accumulated to obtain the cumulative duration of the first state. The camera that captures the first video frame is different from the camera that captures the second video frame.
2. The method according to claim 1, characterized in that, The method further includes accumulating the states of the target object in the multiple video frames to obtain the cumulative state of the target object, and also includes: The cumulative state of the target object is obtained by accumulating the different states of the target object in the multiple video frames.
3. The method according to claim 2, characterized in that, If the cumulative status of the target object is abnormal, an alarm message is sent, including: In the case of accumulations of the same cumulative state, the cumulative duration of the cumulative state is obtained; If the cumulative duration is greater than or equal to a preset duration threshold, the cumulative status is determined to be an abnormal status, and the alarm information is sent.
4. The method according to claim 1, characterized in that, The method further includes: If the cumulative duration of the first state is greater than or equal to a preset duration threshold, the first state is determined to be an abnormal state, and the alarm information is sent.
5. The method according to claim 2, characterized in that, Sending an alarm message when the cumulative status of the target object is abnormal also includes: When the cumulative state is the accumulation of the different states, and when the cumulative state meets the preset alarm state, the alarm information is sent.
6. The method according to claim 2, characterized in that, Accumulating the different states of the target object in the multiple video frames, including: When the target object begins to appear in the third video frame among the plurality of video frames, the target object is marked as a global object, wherein the global object is set to continue the state of the target object in the plurality of video frames; When the target object moves from the third video frame to the fourth video frame, the second state of the target object in the third video frame and the third state of the target object in the fourth video frame are accumulated to obtain the accumulated state.
7. The method according to claim 1, characterized in that, After determining that the cumulative state of the target object is an abnormal state, the method further includes: The multiple video frames are stitched together, and the stitched video frames are stored.
8. An alarm device, characterized in that, include: The acquisition module is used to acquire a set of video frames captured by a set of cameras set in the target area, wherein each video frame is a frame captured by a corresponding camera from a corresponding viewpoint, and the set of video frames includes the frame of the target area from various viewpoints; The accumulation module is used to accumulate the state of the target object in multiple video frames when the target object appears in multiple video frames in the set of video frames, so as to obtain the cumulative state of the target object; The sending module is used to send alarm information when the cumulative status of the target object is an abnormal state; The device is further configured to, when the target object begins to appear in the first video frame of the plurality of video frames, mark the first state of the target object in the first video frame as a global state, wherein the global state is set to continue the state of the target object in the plurality of video frames; when the target object moves from the first video frame to the second video frame, if the state of the target object in the second video frame is still the first state, accumulate the duration of the first state of the target object in the first video frame and the second video frame to obtain the accumulated duration of the first state; wherein the camera that captures the first video frame is different from the camera that captures the second video frame.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Smart hotel terminal monitoring method
CN113628251A