Video monitoring method and device
Through multi-camera collaborative work and behavior recognition technology, effective monitoring of the surrounding environment of large water bodies is achieved, solving the problem of monitoring blind spots, ensuring that the target object is always within the camera's field of view, and improving early warning capabilities.
Patent Information
- Application Number
- CN202310606909.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-26
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-05-26
AI Technical Summary
Due to high hardware and maintenance costs, environmental monitoring around large water bodies usually does not use too many cameras, resulting in blind spots and inability to effectively monitor the behavior of target objects.
The environment around the water body is monitored through multiple cameras. Behavior recognition technology is used. When the target object is detected entering the water, the first camera is controlled to track the target object. When it leaves the field of view of the first camera, the second camera is used to track the target object. The object is always within the camera's field of view, completing monitoring to the greatest extent.
With a small number of cameras, full monitoring of target objects can be achieved, blind spots in the field of view can be reduced, and early warning capabilities for the location and behavior of target objects can be improved.
Smart Images

Figure CN116723402B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of remote monitoring technology, and in particular to a video monitoring method and device. Background Art
[0002] At present, cameras are used to monitor large water bodies to prevent pedestrians from falling into the water, such as reservoirs, wetland parks, etc. However, since large water bodies occupy too much area, if the surrounding environment of large water bodies is to be monitored without blind spots, a large number of cameras need to be installed, resulting in high hardware costs and subsequent maintenance costs. Therefore, the monitoring of the surrounding environment of large water bodies generally does not use too many cameras, but at the same time there will be a large number of monitoring blind spots, making it impossible to effectively monitor the surrounding environment. Summary of the invention
[0003] The embodiment of the present application provides a video monitoring method and device, which controls a first camera to track the target object when the target object goes into water, and controls a second camera to track the target object when the target object leaves the area that can be photographed by the first camera. The target object can be monitored to the greatest extent with a small number of cameras.
[0004] In a first aspect, an embodiment of the present application provides a video monitoring method, which is applied to a monitoring device, and the monitoring device monitors the surrounding environment of a water body through multiple cameras. The method includes:
[0005] When a target object is detected in a shooting area of a first camera among the multiple cameras, a behavior recognition is performed on the target object to obtain a behavior recognition result;
[0006] If it is determined according to the behavior recognition result that the target object has entered the water, the first camera is controlled to track the target object so that the target object is located in the shooting area of the first camera. The entering the water behavior is used to characterize the behavior of entering the water body from the surrounding environment of the water body.
[0007] When the target object leaves the first area, the second camera is controlled to track the target object so that the target object is located in the shooting area of the second camera, and the first area is the area that can be shot by the first camera.
[0008] It can be seen that in the embodiment of the present application, when a target object is detected in the shooting area of the first camera among multiple cameras, the target object is subjected to behavior recognition to obtain a behavior recognition result; if it is determined according to the behavior recognition result that the target object has a behavior of going into the water, the first camera is controlled to track the target object so that the target object is located in the shooting area of the first camera; when the target object leaves the area that the first camera can shoot, the second camera is controlled to track the target object. The above method can be used to monitor the target object to the greatest extent with a small number of cameras, thereby facilitating early warning of the location and behavior of the target object.
[0009] In a feasible embodiment, the behavior recognition result includes the moving direction of the target object. Before controlling the second camera to track the target object, the method also includes: obtaining position information of multiple cameras; determining the second camera from the multiple cameras based on the moving direction of the target object and the position information of the multiple cameras.
[0010] In the embodiment of the present application, the aforementioned method is used to determine the second camera, so that the target object quickly enters the monitoring field of view of the video monitoring system after leaving the area that can be photographed by the first camera.
[0011] In a feasible embodiment, a second camera is determined from multiple cameras according to a moving direction of a target object and position information of multiple cameras, including: acquiring map information of a water body and its surrounding environment; determining a movable area corresponding to the target object according to the map information; determining a first moving area of the target object according to the moving direction of the target object and the movable area corresponding to the target object; determining multiple third cameras from multiple cameras according to the first moving area of the target object and position information of multiple cameras, the multiple third cameras being cameras whose areas that can be photographed overlap with the first moving area among the multiple cameras; and determining the camera that is closest to the target object among the multiple third cameras as the second camera.
[0012] In the embodiment of the present application, the movable area of the target object is determined by obtaining map information of the water body and the surrounding environment of the water body, and the first movable area is determined according to its moving direction and movable area, and multiple third cameras are determined according to the first movable area and the position information of multiple cameras, and the camera closest to the target object among the multiple third cameras is determined as the second camera. Using the above method, the camera corresponding to the shooting area that the target object enters earliest is determined as the second camera, so that there are fewer blind spots in the field of vision during the tracking process of the target object, thereby facilitating early warning of the target object.
[0013] In a feasible embodiment, the behavior recognition result includes the moving speed of the target object, and the method further includes: when there is a corresponding tracking object in the shooting area of the second camera, determining a first time when the tracking object leaves the second area, the second area being an area that can be photographed by the second camera; determining a second time when the second camera transfers from the first shooting area to the second shooting area, the first shooting area being an area photographed by the second camera when the tracking object leaves the second area, and the second shooting area being an area photographed by the second camera when the time for the target object to enter the area photographed by the second camera after leaving the first area is the shortest; calculating the sum of the first time and the second time to obtain a third time; determining a second moving area according to the first moving area and the position information of the plurality of cameras, the second moving area being an area where the target object moves from the first area to the second area; determining a fourth time according to the second moving area of the target object and the moving speed of the target object, the fourth time being the time taken for the target object to move from the first area to the second area; if the third time is greater than the fourth time, determining a fourth camera among the plurality of third cameras, and determining the fourth camera as the new second camera, the fourth camera being the camera closest to the target object among the plurality of third cameras except the second camera.
[0014] In the embodiment of the present application, the third time is obtained by calculating the sum of the first time when the tracking object leaves the second area and the second time when the second camera moves from the first shooting area to the second shooting area, and the third time is compared with the fourth time taken by the target object to move from the first area to the second area. When the third time is greater than the fourth time, the camera closest to the target object except the second camera among the multiple cameras is determined to be the fourth camera, and the fourth camera is determined to be the new second camera. Using the above method, tracking cameras corresponding to different tracking objects can be reasonably allocated when there are multiple tracking objects.
[0015] In a feasible embodiment, the method also includes: when there is a corresponding tracking object in the shooting area of the second camera, determining a first water-falling hazard level corresponding to the tracking object, the first water-falling hazard level is used to characterize the probability of the tracking object entering the water body from the surrounding environment of the water body; determining a second water-falling hazard level corresponding to the target object, the second water-falling hazard level is used to characterize the probability of the target object entering the water body from the surrounding environment of the water body; if the first water-falling hazard level is greater than or equal to the second water-falling hazard level, determining a fourth camera among multiple third cameras, and determining the fourth camera as the new second camera, the fourth camera being the camera among the multiple third cameras that is closest to the first camera except the second camera.
[0016] In the embodiment of the present application, the aforementioned method is adopted to reasonably allocate tracking cameras corresponding to different tracking objects when there are multiple tracking objects.
[0017] In a feasible embodiment, the behavior recognition result also includes the moving speed of the target object, and the method also includes: if the first water-falling hazard level is less than the second water-falling hazard level, determining the second moving area of the target object according to the first moving area of the target object and the position information of multiple cameras, the second moving area being the area where the target object moves from the first area to the second area, and the second area being the area that can be photographed by the second camera; determining the fourth time of the target object according to the second moving area of the target object and the moving speed of the target object, the fourth time being the time taken for the target object to move from the first area to the second area; controlling the second camera to track the tracked object according to the fifth time, and transferring from the third shooting area to the second shooting area after the fifth time, the third shooting area being the area photographed by the second camera for the tracked object, and the second shooting area being the area photographed by the second camera when the time for the target object to leave the first area and enter the area photographed by the second camera is the shortest, and the difference between the fourth time and the fifth time is greater than the time taken for the second camera to transfer from the third shooting area to the second shooting area.
[0018] In the embodiment of the present application, when the first water fall hazard level is lower than the second water fall hazard level, the fourth time taken by the target object to move from the first area to the second area is determined according to the second moving area between the target object moving from the first area to the second area and the moving speed of the target object, the second camera is controlled to track the tracking object according to the fifth time, and the third shooting area is transferred to the second shooting area after the fifth time, so that the difference between the fourth time and the fifth time is greater than the time taken by the second camera to transfer from the third shooting area to the second shooting area. The above method can ensure the tracking of the target object while completing the tracking of the tracking object to the greatest extent.
[0019] In a feasible embodiment, determining the fourth time of the target object according to the second moving area of the target object and the moving speed of the target object includes: determining at least one first ground category of the area where the target object moves in the first area; determining at least one second ground category of the second moving area; matching at least one second ground category with at least one first ground category; if the match is successful, determining at least one third ground category that is successfully matched in at least one second ground category; determining the first moving time corresponding to the fourth moving area according to the moving speed corresponding to the target object in the third moving area, the third moving area is the area corresponding to at least one third ground category in the first moving area, and the fourth moving area is the area corresponding to at least one third ground category in the first moving area; determining the second moving time corresponding to the fifth moving area according to the moving speed corresponding to the target object in the first area, the fifth moving area is the area in the first moving area excluding the fourth moving area; determining the fourth time according to the first moving time and the second moving time.
[0020] In the embodiment of the present application, the aforementioned method is adopted to improve the accuracy of determining the fourth time, thereby facilitating the adjustment and control of the shooting angle of the second camera.
[0021] In a second aspect, an embodiment of the present application provides a video monitoring device, which is applied to a monitoring device, and the monitoring device monitors the surrounding environment of a water body through multiple cameras, and the device includes:
[0022] A processing unit, configured to perform behavior recognition on a target object when a target object is detected in a shooting area of a first camera among the multiple cameras, and obtain a behavior recognition result;
[0023] If the determination unit determines that the target object has a water entry behavior according to the behavior recognition result, the control unit is used to control the first camera to track the target object so that the target object is located in the shooting area of the first camera, and the water entry behavior is used to characterize the behavior of entering the water body from the surrounding environment of the water body,
[0024] The control unit is also used to control the second camera to track the target object when the target object leaves the first area, so that the target object is located in the shooting area of the second camera, and the first area is the area that can be photographed by the first camera.
[0025] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a communication interface. The processor, the memory, and the communication interface are interconnected and perform communication with each other. The memory stores executable program code, the communication interface is used for wireless communication, and the processor is used to call the executable program code stored in the memory to execute, for example, some or all of the steps described in any method of the first aspect.
[0026] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which electronic data is stored. When the electronic data is executed by a processor, it is used to execute the electronic data to implement some or all of the steps described in the first aspect of the embodiment of the present application.
[0027] 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0029] Figure 1 A schematic diagram of the structure of a video surveillance system provided in an embodiment of the present application;
[0030] Figure 2 A schematic diagram of a video surveillance method provided in an embodiment of the present application;
[0031] Figure 3 A schematic diagram of the structure of a camera shooting area provided in an embodiment of the present application;
[0032] Figure 4a This is a block diagram of the functional units of a video surveillance device provided in an embodiment of the present application;
[0033] Figure 4b It is a block diagram of the functional units of another video surveillance device provided in an embodiment of the present application;
[0034] Figure 5 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only 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.
[0036] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned 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 is not limited to the listed steps, but optionally includes steps that are not listed, or optionally includes other steps inherent to these processes, methods, products or devices.
[0037] 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.
[0038] See also Figure 1 , Figure 1 A schematic diagram of the structure of a video surveillance system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the video monitoring system 100 includes a plurality of cameras 101 and a monitoring device 102. The plurality of cameras 101 are used to monitor a target object and collect video data about the target object; the monitoring device 102 is used to control the shooting angles of the plurality of cameras 101 to track the target object. In addition, the plurality of cameras 101 may include a main camera and other cameras except the main camera. In addition to collecting video data about the target object, the main camera may also integrate the function of the monitoring device 102, that is, controlling the shooting angles of other cameras to track the target object.
[0039] Based on this, an embodiment of the present application provides a video monitoring method, and the embodiment of the present application is described in detail below in conjunction with the accompanying drawings.
[0040] See also Figure 2 , Figure 2A flow chart of a video monitoring method provided in an embodiment of the present application is provided. The video monitoring method is applied to a monitoring device, and the monitoring device monitors the surrounding environment of a water body through multiple cameras, such as Figure 2 As shown, the method comprises the following steps:
[0041] Step 201: When a target object is detected in a shooting area of a first camera among multiple cameras, behavior recognition is performed on the target object to obtain a behavior recognition result.
[0042] The target object may be identified based on a neural network algorithm. For example, the target object in the shooting area of the first camera may be identified based on a target detection algorithm (such as a YOLO algorithm), and the behavior of the target object may be identified based on a behavior recognition algorithm (such as a three-dimensional convolutional neural network algorithm). The shooting area of the first camera refers to the area of the surrounding environment of the water body corresponding to the image captured at the current shooting angle of the first camera.
[0043] Step 202: If it is determined according to the behavior recognition result that the target object has a water behavior, the first camera is controlled to track the target object so that the target object is located in the shooting area of the first camera.
[0044] The entry into water behavior is used to characterize the behavior performed when entering a water body from the surrounding environment of the water body. For example, the actions performed by a pedestrian before entering the water body from the surrounding environment of the water body include but are not limited to undressing, warm-up, and entry into water. Controlling the first camera to track the target object means that during the movement of the target object, the shooting angle of the first camera is controlled so that the target object is located in the shooting area of the first camera.
[0045] Step 203: When the target object leaves the first area, the second camera is controlled to track the target object so that the target object is located in the shooting area of the second camera.
[0046] The first area is an area that can be photographed by the first camera. In other words, the first area is a collection of all areas that can be photographed by the first camera by controlling the shooting angle of the first camera, and the shooting angle includes a horizontal angle and a vertical angle.
[0047] For example, see Figure 3 , Figure 3 A schematic diagram of a camera shooting area provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, Figure 3The camera 300 is included. The camera shown in the figure is a side view in the camera plan view. When the longitudinal angle of the camera 300 is controlled to move to the lowest angle, the shooting area of the camera 300 is 301; when the longitudinal angle of the camera 300 is controlled to move to the highest angle, the shooting area of the camera 300 is 303; when the longitudinal angle of the camera 300 is controlled to move between the lowest angle and the highest angle, the shooting area of the camera 300 is 302. It can be seen that the area that the camera 300 can shoot is 310. It can be known that the movement of the horizontal angle of the camera is similar to the movement of the longitudinal angle, and no further details are given here.
[0048] In a feasible embodiment, the behavior recognition result includes the moving direction of the target object. Before controlling the second camera to track the target object, the method also includes: obtaining position information of multiple cameras; determining the second camera from the multiple cameras based on the moving direction of the target object and the position information of the multiple cameras.
[0049] Among them, the location information of multiple cameras also includes information about areas that can be photographed by the multiple cameras. When the first camera tracks the target object, the moving direction of the target object is determined by the position change of the target object, and the second camera is determined from the multiple cameras based on the moving direction of the target object and the location information of the multiple cameras, so that the target object quickly enters the monitoring field of view of the video surveillance system after leaving the area that can be photographed by the first camera.
[0050] In a feasible embodiment, a second camera is determined from multiple cameras according to a moving direction of a target object and position information of multiple cameras, including: acquiring map information of a water body and its surrounding environment; determining a movable area corresponding to the target object according to the map information; determining a first moving area of the target object according to the moving direction of the target object and the movable area corresponding to the target object; determining multiple third cameras from multiple cameras according to the first moving area of the target object and position information of multiple cameras, the multiple third cameras being cameras whose areas that can be photographed overlap with the first moving area among the multiple cameras; and determining the camera that is closest to the target object among the multiple third cameras as the second camera.
[0051] Among them, the movable area of the target object refers to the area where the target object itself can move in the surrounding environment of the water body. Exemplarily, if the target object is a pedestrian, its movable area can include flat ground, stairs, etc.; but if the target object is a vehicle, its movable area can include flat ground, but not stairs. According to the movable area of the target object and the moving direction of the target object, the area where the target object may move, that is, the first moving area, can be determined. According to the first moving area and the position information of multiple cameras, it can be determined that the camera that can be photographed in the area of the multiple cameras overlaps with the first moving area, that is, the third camera, which can be one or more. In other words, the target object will appear in the area that can be photographed by the third camera during the movement in the moving direction of the target object. After determining multiple third cameras, the camera closest to the target object among the multiple third cameras is determined to be the second camera, that is, the target object will enter the area photographed by the second camera the earliest during the movement.
[0052] In the embodiment of the present application, the movable area of the target object is determined by obtaining map information of the water body and the surrounding environment of the water body, and the first movable area is determined according to its moving direction and movable area, and multiple third cameras are determined according to the first movable area and the position information of multiple cameras, and the camera closest to the target object among the multiple third cameras is determined as the second camera. Using the above method, the camera corresponding to the shooting area that the target object enters earliest is determined as the second camera, so that there are fewer blind spots in the field of vision during the tracking process of the target object, thereby facilitating early warning of the target object.
[0053] In a feasible embodiment, the behavior recognition result includes the moving speed of the target object, and the method further includes: when there is a corresponding tracking object in the shooting area of the second camera, determining a first time when the tracking object leaves the second area, the second area being an area that can be photographed by the second camera; determining a second time when the second camera transfers from the first shooting area to the second shooting area, the first shooting area being an area photographed by the second camera when the tracking object leaves the second area, and the second shooting area being an area photographed by the second camera when the time for the target object to enter the area photographed by the second camera after leaving the first area is the shortest; calculating the sum of the first time and the second time to obtain a third time; determining a second moving area according to the first moving area and the position information of the plurality of cameras, the second moving area being an area where the target object moves from the first area to the second area; determining a fourth time according to the second moving area of the target object and the moving speed of the target object, the fourth time being the time taken for the target object to move from the first area to the second area; if the third time is greater than the fourth time, determining a fourth camera among the plurality of third cameras, and determining the fourth camera as the new second camera, the fourth camera being the camera closest to the target object among the plurality of third cameras except the second camera.
[0054] The tracking object refers to an object that has entered the water in the shooting area of the second camera or other cameras. The time when the tracking object leaves the second area refers to the time when the second camera determines the position change of the tracking object. The first shooting area and the second shooting area refer to different shooting areas determined by controlling the shooting angle of the second camera, and the shooting angle includes a horizontal angle and a vertical angle.
[0055] If the second shooting area corresponds to the second shooting angle, the second camera can capture the target object earlier at the second shooting angle than at other shooting angles; in other words, when the target object just enters the second area, the second camera can capture the target object at the second shooting angle, but the second camera cannot capture the target object at other shooting angles other than the second shooting angle. Similarly, if the first shooting area corresponds to the first shooting angle, the second camera can capture the tracking object later at the second shooting angle than at other shooting angles; in other words, when the tracking object just leaves the second area, the second camera can capture the tracking object at the first shooting angle, but the second camera cannot capture the tracking object at other shooting angles other than the first shooting angle.
[0056] The third time when the second camera completes tracking of the target object and starts tracking the target object can be determined based on the sum of the first time when the tracked object leaves the second area and the second time when the second camera moves from the first shooting area to the second shooting area; in other words, the third time is the preparation time before the second camera tracks the target object. The second moving area refers to the area where the target object needs to move after leaving the first area and before entering the second area, and the fourth time required for the target object to enter the second area can be determined based on the second moving area and the moving speed of the target object.
[0057] If the third time is less than or equal to the fourth time, the second camera can transfer the shooting area to the second shooting area when the target object enters the second area. If the third time is greater than the fourth time, the second camera cannot transfer the shooting area to the second camera when the target object enters the second area, that is, the second camera cannot shoot the target object in the first time; and the second camera may still be shooting the tracking object. In order to ensure the tracking efficiency of the target object, it is necessary to determine the fourth camera closest to the target object in addition to the second camera among multiple third cameras, and determine the fourth camera as the new second camera.
[0058] In the embodiment of the present application, the third time is obtained by calculating the sum of the first time when the tracking object leaves the second area and the second time when the second camera moves from the first shooting area to the second shooting area, and the third time is compared with the fourth time taken by the target object to move from the first area to the second area. When the third time is greater than the fourth time, the camera closest to the target object except the second camera among the multiple cameras is determined to be the fourth camera, and the fourth camera is determined to be the new second camera. Using the above method, tracking cameras corresponding to different tracking objects can be reasonably allocated when there are multiple tracking objects.
[0059] In addition, in a feasible embodiment, the method also includes: when there is a corresponding tracking object in the shooting area of the second camera, determining a first water-falling hazard level corresponding to the tracking object, the first water-falling hazard level is used to characterize the probability of the tracking object entering the water body from the surrounding environment of the water body; determining a second water-falling hazard level corresponding to the target object, the second water-falling hazard level is used to characterize the probability of the target object entering the water body from the surrounding environment of the water body; if the first water-falling hazard level is greater than or equal to the second water-falling hazard level, determining a fourth camera among multiple third cameras, and determining the fourth camera as the new second camera, the fourth camera being the camera among the multiple third cameras that is closest to the first camera except the second camera.
[0060] Among them, when there is a corresponding tracking object in the shooting area of the second camera, if other cameras also have corresponding tracking objects at this time, it is impossible to allocate extra cameras to track the target object. At this time, allocation can be made according to the water hazard level of different tracking objects, that is, the priority of tracking the tracking object with a high water hazard level is higher than the priority of tracking the tracking object with a low water hazard level. The water hazard level is used to characterize the probability of the tracking object entering the water body from the surrounding environment of the water body. The higher the water hazard level, the higher the probability of the tracking object entering the water body from the surrounding environment of the water body. If the first water hazard level corresponding to the tracking object is greater than or equal to the second water hazard level corresponding to the target object, that is, the probability of the tracking object entering the water is greater than or equal to the probability of the target object entering the water, the second camera should track the tracking object. Therefore, it is necessary to determine the fourth camera that is closest to the target object except the second camera among multiple third cameras, and determine the fourth camera as the new second camera.
[0061] In the embodiment of the present application, the aforementioned method is adopted to reasonably allocate tracking cameras corresponding to different tracking objects when there are multiple tracking objects.
[0062] In a feasible embodiment, the behavior recognition result also includes the moving speed of the target object, and the method also includes: if the first water-falling hazard level is less than the second water-falling hazard level, determining the second moving area of the target object according to the first moving area of the target object and the position information of multiple cameras, the second moving area being the area where the target object moves from the first area to the second area, and the second area being the area that can be photographed by the second camera; determining the fourth time of the target object according to the second moving area of the target object and the moving speed of the target object, the fourth time being the time taken for the target object to move from the first area to the second area; controlling the second camera to track the tracked object according to the fifth time, and transferring from the third shooting area to the second shooting area after the fifth time, the third shooting area being the area photographed by the second camera for the tracked object, and the second shooting area being the area photographed by the second camera when the time for the target object to leave the first area and enter the area photographed by the second camera is the shortest, and the difference between the fourth time and the fifth time is greater than the time taken for the second camera to transfer from the third shooting area to the second shooting area.
[0063] Among them, when the first water-falling danger level corresponding to the tracked object is less than the second water-falling danger level corresponding to the target object, the second camera needs to disengage from tracking the tracked object and then track the target object, but before the target object enters the second area, the second camera needs to continue to track the tracked object to the maximum extent. Therefore, this embodiment determines the fourth time for the target object to move from the first area to the second area based on the moving speed of the target object and the second moving area between the target object moving from the first area to the second area. After controlling the second camera to track the tracked object for the fifth time, the shooting area of the second camera is transferred from the third shooting area to the second shooting area.
[0064] Similarly, the third shooting area and the second shooting area refer to the areas shot by the second camera at the corresponding shooting angles, and the area shot by the second camera at the second shooting angle is the second shooting area; the third shooting area refers to the area shot by the second camera when tracking the tracking object at the third shooting angle. If the time taken by the second camera to adjust from the third shooting angle to the second shooting angle is the sixth time, the sum of the sixth time and the fifth time needs to be less than the fourth time, so that before the target object enters the second area, the second camera has adjusted the shooting angle to the second shooting angle.
[0065] In the embodiment of the present application, when the first water fall hazard level is lower than the second water fall hazard level, the fourth time taken by the target object to move from the first area to the second area is determined according to the second moving area between the target object moving from the first area to the second area and the moving speed of the target object, the second camera is controlled to track the tracking object according to the fifth time, and the third shooting area is transferred to the second shooting area after the fifth time, so that the difference between the fourth time and the fifth time is greater than the time taken by the second camera to transfer from the third shooting area to the second shooting area. The above method can ensure the tracking of the target object while completing the tracking of the tracking object to the greatest extent.
[0066] In a feasible embodiment, determining the fourth time of the target object according to the second moving area of the target object and the moving speed of the target object includes: determining at least one first ground category of the area where the target object moves in the first area; determining at least one second ground category of the second moving area; matching at least one second ground category with at least one first ground category; if the match is successful, determining at least one third ground category that is successfully matched in at least one second ground category; determining the first moving time corresponding to the fourth moving area according to the moving speed corresponding to the target object in the third moving area, the third moving area is the area corresponding to at least one third ground category in the first moving area, and the fourth moving area is the area corresponding to at least one third ground category in the first moving area; determining the second moving time corresponding to the fifth moving area according to the moving speed corresponding to the target object in the first area, the fifth moving area is the area in the first moving area excluding the fourth moving area; determining the fourth time according to the first moving time and the second moving time.
[0067] The ground category may refer to the composition structure and terrain structure of the ground in the moving area. For example, the composition structure may include grass, muddy ground, rocky ground, etc.; the terrain structure may include flat, concave and convex, inclined, etc., where the inclined may be used to represent stairs or a bottom surface with a certain slope; therefore, the ground category may include (grass, flat), (muddy ground inclined), etc. The moving speeds corresponding to different ground surfaces are different for the target object, and the moving speeds corresponding to different ground surfaces may even differ greatly.
[0068] This embodiment determines at least one second ground category in the second moving area, and at least one first ground category of the area where the target object moves in the first area. And match at least one second ground category with at least one first ground category. After determining at least one third ground category that is successfully matched, the moving time of at least one third ground category corresponding to the moving area in the second moving area is determined according to the moving speed of the moving area corresponding to at least one third ground category in the first area; and the moving time of the area other than the moving area corresponding to at least one third ground category in the second moving area is determined according to the average speed of the target object in the first area; and finally the fourth time is determined according to the two times. Exemplarily, if at least one first ground category includes (grass, bumps), (rocky ground, tilted), and at least one second ground category includes (grass, flat), (rocky ground, tilted), at this time, it can be determined that at least one third ground category that is successfully matched is (rocky ground, tilted).
[0069] In the embodiment of the present application, the aforementioned method is adopted to improve the accuracy of determining the fourth time, thereby facilitating the adjustment and control of the shooting angle of the second camera.
[0070] It can be seen that in the embodiment of the present application, when a target object is detected in the shooting area of the first camera among multiple cameras, the target object is subjected to behavior recognition to obtain a behavior recognition result; if it is determined according to the behavior recognition result that the target object has a behavior of going into the water, the first camera is controlled to track the target object so that the target object is located in the shooting area of the first camera; when the target object leaves the area that the first camera can shoot, the second camera is controlled to track the target object. The above method can be used to monitor the target object to the greatest extent with a small number of cameras, thereby facilitating early warning of the location and behavior of the target object.
[0071] In accordance with the above-mentioned embodiment, please refer to Figure 4a , Figure 4a is a functional unit block diagram of a video monitoring device provided in an embodiment of the present application, which is applied to a monitoring device. The monitoring device monitors the surrounding environment of a water body through multiple cameras, such as Figure 4a As shown, the video monitoring device 40 includes:
[0072] The processing unit 401 is used to perform behavior recognition on the target object when a target object is detected in a shooting area of a first camera among the multiple cameras to obtain a behavior recognition result;
[0073] If the determination unit 402 determines that the target object has a water entry behavior according to the behavior recognition result, the control unit 403 is used to control the first camera to track the target object so that the target object is located in the shooting area of the first camera. The water entry behavior is used to characterize the behavior of entering the water body from the surrounding environment of the water body.
[0074] The control unit 403 is further used to control the second camera to track the target object when the target object leaves the first area, so that the target object is located in the shooting area of the second camera, and the first area is the area that can be photographed by the first camera.
[0075] In a feasible embodiment, the behavior recognition result includes the moving direction of the target object. The control unit 403 is used to, before controlling the second camera to track the target object, also to: obtain the position information of multiple cameras; and determine the second camera from the multiple cameras based on the moving direction of the target object and the position information of the multiple cameras.
[0076] In a feasible embodiment, the determination unit 402 is used to determine the second camera from multiple cameras according to the moving direction of the target object and the position information of the multiple cameras, including: obtaining map information of the water body and the surrounding environment of the water body; determining the movable area corresponding to the target object according to the map information; determining the first moving area of the target object according to the moving direction of the target object and the movable area corresponding to the target object; determining multiple third cameras from the multiple cameras according to the first moving area of the target object and the position information of the multiple cameras, the multiple third cameras being cameras whose areas that can be photographed overlap with the first moving area; determining the camera that is closest to the target object among the multiple third cameras as the second camera.
[0077] In a feasible embodiment, the behavior recognition result includes the moving speed of the target object, and the determination unit 402 is further used to: when there is a corresponding tracking object in the shooting area of the second camera, determine the first time when the tracking object leaves the second area, and the second area is the area that the second camera can shoot; determine the second time when the second camera transfers from the first shooting area to the second shooting area, the first shooting area is the area shot by the second camera when the tracking object leaves the second area, and the second shooting area is the area shot by the second camera when the time for the target object to enter the area shot by the second camera after leaving the first area is the shortest; calculate the sum of the first time and the second time to obtain a third time; determine the second moving area according to the first moving area and the position information of the plurality of cameras, the second moving area is the area where the target object moves from the first area to the second area; determine the fourth time according to the second moving area of the target object and the moving speed of the target object, the fourth time is the time taken for the target object to move from the first area to the second area; if the third time is greater than the fourth time, determine a fourth camera among the plurality of third cameras, and determine the fourth camera as the new second camera, the fourth camera being the camera closest to the target object except the second camera among the plurality of third cameras.
[0078] In a feasible embodiment, the determination unit 402 is also used to: when there is a corresponding tracking object in the shooting area of the second camera, determine a first water-falling hazard level corresponding to the tracking object, the first water-falling hazard level is used to characterize the probability of the tracking object entering the water body from the surrounding environment of the water body; determine a second water-falling hazard level corresponding to the target object, the second water-falling hazard level is used to characterize the probability of the target object entering the water body from the surrounding environment of the water body; if the first water-falling hazard level is greater than or equal to the second water-falling hazard level, determine a fourth camera among the multiple third cameras, and determine the fourth camera as the new second camera, the fourth camera being the camera among the multiple third cameras that is closest to the first camera except the second camera.
[0079] In a feasible embodiment, the behavior recognition result also includes the moving speed of the target object. The determination unit 402 is also used to: if the first water-falling hazard level is less than the second water-falling hazard level, determine the second moving area of the target object according to the first moving area of the target object and the position information of multiple cameras, the second moving area being the area where the target object moves from the first area to the second area, and the second area being the area that can be photographed by the second camera; determine the fourth time of the target object according to the second moving area of the target object and the moving speed of the target object, the fourth time being the time taken for the target object to move from the first area to the second area; control the second camera to track the tracked object according to the fifth time, and transfer from the third shooting area to the second shooting area after the fifth time, the third shooting area being the area photographed by the second camera for the tracked object, the second shooting area being the area photographed by the second camera when the time for the target object to leave the first area and enter the area photographed by the second camera is the shortest, and the difference between the fourth time and the fifth time is greater than the time taken for the second camera to transfer from the third shooting area to the second shooting area.
[0080] In a feasible embodiment, the determination unit 402 is used to determine the fourth time of the target object according to the second moving area of the target object and the moving speed of the target object, including: determining at least one first ground category of the area where the target object moves in the first area; determining at least one second ground category of the second moving area; matching at least one second ground category with at least one first ground category; if the match is successful, determining at least one third ground category that is successfully matched in at least one second ground category; determining the first moving time corresponding to the fourth moving area according to the moving speed corresponding to the target object in the third moving area, the third moving area is the area corresponding to at least one third ground category in the first moving area, and the fourth moving area is the area corresponding to at least one third ground category in the first moving area; determining the second moving time corresponding to the fifth moving area according to the moving speed corresponding to the target object in the first area, the fifth moving area is the area other than the fourth moving area in the first moving area; determining the fourth time according to the first moving time and the second moving time.
[0081] It can be understood that since the method embodiment and the device embodiment are different presentation forms of the same technical concept, the content of the method embodiment part in this application should be synchronously adapted to the device embodiment part and will not be repeated here.
[0082] In the case of integrated units, such as Figure 4b As shown, Figure 4b 1 is a block diagram of the functional units of another video surveillance device provided in an embodiment of the present application. Figure 4bIn the embodiment, the video surveillance device 41 includes: a processing module 412 and a communication module 411. The processing module 412 is used to control and manage the actions of the video surveillance device, for example, the steps of the processing unit 401, the determination unit 402 and the control unit 403, and / or other processes for executing the technology described herein. The communication module 411 is used to support the interaction between the video surveillance device and other devices. Figure 4b As shown, the video monitoring device 41 may further include a storage module 413, and the storage module 413 is used to store program codes and data of the video monitoring device.
[0083] Among them, the processing module 412 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 411 can be a transceiver, an RF circuit or a communication interface, and the like. The storage module 413 can be a memory.
[0084] Among them, all relevant contents of each scene involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The above video monitoring device 41 can execute the above Figure 2 The video monitoring method shown.
[0085] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When a computer instruction or computer program is loaded or executed on a computer, a process or function according to an embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center containing one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0086] Figure 5 is a structural block diagram of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device 500 may include one or more of the following components: a processor 501, a memory 502 coupled to the processor 501, wherein the memory 502 may store one or more computer programs, and the one or more computer programs may be configured to implement the methods described in the above embodiments when executed by one or more processors 501. The electronic device 500 may be the above monitoring device.
[0087] The processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect the various parts of the entire electronic device 500, and executes various functions and processes data of the electronic device 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 502, and calling data stored in the memory 502. Optionally, the processor 501 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 501 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU) and a modem. It is understandable that the above-mentioned modem may not be integrated into the processor 501, and may be implemented separately through a communication chip.
[0088] The memory 502 may include a random access memory (RAM) or a read-only memory (ROM). The memory 502 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 502 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic device 500 during use, etc.
[0089] It is understandable that the electronic device 500 may include more or fewer structural elements than those in the above structural block diagram, for example, including a power module, physical buttons, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, a sensor, etc., which are not limited here.
[0090] An embodiment of the present application provides a computer-readable storage medium, wherein program data is stored in the computer-readable storage medium, and when the program data is executed by a processor, it is used to execute part or all of the steps of any one of the video surveillance methods recorded in the above method embodiments.
[0091] The present application also provides a computer program product, which 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 of any video surveillance method described in the above method embodiment. The computer program product can be a software installation package.
[0092] It should be noted that, for the method embodiments of any of the aforementioned video surveillance methods, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present application.
[0093] 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 "a" or "one" does not exclude multiple situations. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0094] A person skilled in the art can understand that all or part of the steps in the various methods of the method embodiments of any of the above-mentioned video surveillance methods can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a disk or an optical disk, etc.
[0095] The embodiments of the present application are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of a video surveillance method and device of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for a person skilled in the art, according to the idea of a video surveillance method and device of the present application, there may be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0096] The present application is described with reference to the flowcharts and / or block diagrams of the methods, hardware products, and computer program products of the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks 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 data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. 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.
[0097] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising 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.
[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions 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.
[0099] It can be understood that any product that is controlled or configured to execute the processing method of the flowchart described in the method embodiment of a video surveillance method of the present application, such as the terminal and computer program product in the above flowchart, falls within the scope of the related products described in the present application.
[0100] Obviously, those skilled in the art can make various changes and modifications to the video surveillance method and device provided by 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 video monitoring method, characterized in that: The method is applied to a monitoring device, and the monitoring device monitors the surrounding environment of a water body through multiple cameras. The method includes: When a target object is detected in a shooting area of a first camera among the multiple cameras, behavior recognition is performed on the behavior of the target object to obtain a behavior recognition result; If it is determined according to the behavior recognition result that the target object has entered the water, the first camera is controlled to track the target object so that the target object is located in the shooting area of the first camera, and the entering the water behavior is used to characterize the behavior of entering the water body from the surrounding environment of the water body, When the target object leaves the first area, controlling the second camera to track the target object so that the target object is located in a shooting area of the second camera, and the first area is an area that can be shot by the first camera; The behavior recognition result includes the moving direction of the target object. Before controlling the second camera to track the target object, the method further includes: Obtaining location information of the multiple cameras; Determine the second camera from the multiple cameras according to the moving direction of the target object and the position information of the multiple cameras; Wherein, determining the second camera from the multiple cameras according to the moving direction of the target object and the position information of the multiple cameras includes: Obtain map information of water bodies and the environment surrounding them; Determine a movable area corresponding to the target object according to the map information; Determine a first moving area of the target object according to the moving direction of the target object and the movable area corresponding to the target object; Determine a plurality of third cameras among the plurality of cameras according to the first moving area of the target object and the position information of the plurality of cameras, wherein the plurality of third cameras are cameras among the plurality of cameras whose areas capable of being photographed overlap with the first moving area; Determine that the camera closest to the target object among the multiple third cameras is the second camera; Wherein, the behavior recognition result includes the moving speed of the target object, and the method further includes: When a corresponding tracking object exists in a shooting area of the second camera, determining a first time when the tracking object leaves a second area, where the second area is an area that can be shot by the second camera; Determine a second time when the second camera transfers from the first shooting area to the second shooting area, where the first shooting area is the area shot by the second camera when the tracked object leaves the second area, and the second shooting area is the area shot by the second camera when the time it takes for the target object to leave the first area and enter the area shot by the second camera is the shortest; Calculating the sum of the first time and the second time to obtain a third time; Determine a second moving area according to the first moving area and the position information of the plurality of cameras, wherein the second moving area is an area where the target object moves from the first area to the second area; determining a fourth time according to the second moving area of the target object and the moving speed of the target object, the fourth time being the time taken by the target object to move from the first area to the second area; If the third time is greater than the fourth time, a fourth camera among the multiple third cameras is determined, and the fourth camera is determined to be a new second camera, and the fourth camera is the camera among the multiple third cameras except the second camera that is closest to the target object.
2. The method according to claim 1, characterized in that The method further comprises: When there is a corresponding tracking object in the shooting area of the second camera, determining a first water-falling danger level corresponding to the tracking object, where the first water-falling danger level is used to represent the probability of the tracking object entering the water body from the surrounding environment of the water body; Determine a second water-falling hazard level corresponding to the target object, where the second water-falling hazard level is used to represent the probability of the target object entering the water body from the surrounding environment of the water body; If the first water-falling hazard level is greater than or equal to the second water-falling hazard level, a fourth camera among the multiple third cameras is determined, and the fourth camera is determined as the new second camera. The fourth camera is the camera among the multiple third cameras that is closest to the first camera except the second camera.
3. The method according to claim 2, characterized in that The behavior recognition result also includes the moving speed of the target object, and the method further includes: If the first water-falling hazard level is lower than the second water-falling hazard level, determining a second moving area of the target object according to the first moving area of the target object and the position information of the plurality of cameras, the second moving area being an area where the target object moves from the first area to the second area; determining a fourth time of the target object according to the second moving area of the target object and the moving speed of the target object, the fourth time being the time taken by the target object to move from the first area to the second area; The second camera is controlled to track the tracking object according to the fifth time, and is transferred from the third shooting area to the second shooting area after the fifth time, the third shooting area is the area where the tracking object is photographed by the second camera, and the second shooting area is the area photographed by the second camera when the time for the target object to enter the area photographed by the second camera after leaving the first area is the shortest, and the difference between the fourth time and the fifth time is greater than the time it takes for the second camera to transfer from the third shooting area to the second shooting area.
4. The method according to any one of claims 1 to 3, characterized in that: The determining the fourth time of the target object according to the second moving area of the target object and the moving speed of the target object comprises: determining at least one first ground category of an area where the target object moves in the first area; determining at least one second terrain category of the second movement area; matching the at least one second ground category with the at least one first ground category; If the match is successful, determining at least one third ground category that matches successfully in the at least one second ground category; Determine a first moving time corresponding to a fourth moving area according to a moving speed corresponding to the target object in a third moving area, wherein the third moving area is an area corresponding to the at least one third ground category in the first moving area, and the fourth moving area is an area corresponding to the at least one third ground category in the first moving area; Determine a second moving time corresponding to a fifth moving area according to the moving speed of the target object corresponding to the first area, wherein the fifth moving area is an area in the first moving area excluding the fourth moving area; The fourth time is determined according to the first moving time and the second moving time.
5. A video monitoring device, characterized in that: The device is applied to a monitoring device, and the monitoring device monitors the surrounding environment of a water body through multiple cameras. The device includes: A processing unit, configured to, when a target object is detected in a shooting area of a first camera among the multiple cameras, perform behavior recognition on the target object to obtain a behavior recognition result; If the determination unit determines, according to the behavior recognition result, that the target object has a water entry behavior, the control unit is used to control the first camera to track the target object so that the target object is located in a shooting area of the first camera, and the water entry behavior is used to characterize the behavior of entering the water body from the surrounding environment of the water body, The control unit is further configured to control the second camera to track the target object when the target object leaves the first area, so that the target object is located in a shooting area of the second camera, and the first area is an area that can be shot by the first camera; The behavior recognition result includes the moving direction of the target object. Before controlling the second camera to track the target object, the determining unit is further used to: Obtaining location information of the multiple cameras; Determine the second camera from the multiple cameras according to the moving direction of the target object and the position information of the multiple cameras; Wherein, in the aspect of determining the second camera from the multiple cameras according to the moving direction of the target object and the position information of the multiple cameras, the determining unit is specifically used to: Obtain map information of water bodies and the environment surrounding them; Determine a movable area corresponding to the target object according to the map information; Determine a first moving area of the target object according to the moving direction of the target object and the movable area corresponding to the target object; Determine a plurality of third cameras among the plurality of cameras according to the first moving area of the target object and the position information of the plurality of cameras, wherein the plurality of third cameras are cameras among the plurality of cameras whose areas capable of being photographed overlap with the first moving area; Determine that the camera closest to the target object among the multiple third cameras is the second camera; Wherein, the behavior recognition result includes the moving speed of the target object, and the determination unit is further used for: When a corresponding tracking object exists in a shooting area of the second camera, determining a first time when the tracking object leaves a second area, where the second area is an area that can be shot by the second camera; Determine a second time when the second camera transfers from the first shooting area to the second shooting area, where the first shooting area is the area shot by the second camera when the tracked object leaves the second area, and the second shooting area is the area shot by the second camera when the time it takes for the target object to leave the first area and enter the area shot by the second camera is the shortest; Calculating the sum of the first time and the second time to obtain a third time; Determine a second moving area according to the first moving area and the position information of the plurality of cameras, wherein the second moving area is an area where the target object moves from the first area to the second area; determining a fourth time according to the second moving area of the target object and the moving speed of the target object, the fourth time being the time taken by the target object to move from the first area to the second area; If the third time is greater than the fourth time, a fourth camera among the multiple third cameras is determined, and the fourth camera is determined to be a new second camera, and the fourth camera is the camera among the multiple third cameras except the second camera that is closest to the target object.
6. An electronic device, characterized in that: The device comprises: A processor, a memory, and a communication interface, wherein the processor, the memory, and the communication interface are connected to each other and perform communication work between them; The memory stores executable program code, and the communication interface is used for wireless communication; The processor is used to call the executable program code stored in the memory to execute the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, 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 4.
