Control method of video monitoring system, video monitoring system and storage medium

By obtaining hotspot area information and adjusting image parameters in real time in the video surveillance system, the problem of image flickering when switching camera preset points is solved, adaptive monitoring of target scenes is achieved, and the stability and efficiency of the surveillance system are improved.

CN115412704BActive Publication Date: 2024-09-24ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210830928.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-15
Publication Date
2024-09-24
Estimated Expiration
2042-07-15

AI Technical Summary

Technical Problem

Existing video surveillance systems have the problem of image flickering when switching camera preset points, and lack effective solutions.

Method used

By obtaining hotspot area information in real time from the slave device in the target scene, multiple target preset points are determined, and the cruise algorithm is used to generate the cruise route and the clustering algorithm is used to adjust the image parameters to achieve adaptive settings for the master device to eliminate image flicker. .

Benefits of technology

It realizes the adaptive adjustment of the image parameters of all preset points in the target scene, eliminates the phenomenon of image flickering when the camera switches between preset points, and improves the stability and efficiency of the monitoring system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115412704B
    Figure CN115412704B
Patent Text Reader

Abstract

The present application relates to a control method of a video surveillance system, a video surveillance system and a storage medium, wherein the control method of the video surveillance system includes: determining multiple target preset points of a master device in a target scene based on hot spot area information obtained in real time from slave devices distributed in various areas of a target scene; generating a cruise route of the target scene based on multiple target preset points and a preset cruise algorithm; determining image parameters corresponding to each of multiple target preset points based on image parameters of historical preset points under the target scene and a preset clustering algorithm; and setting the master device based on the cruise route and image parameters corresponding to each of multiple target preset points to perform video surveillance on the target scene. It realizes adaptive adjustment of image parameters corresponding to all preset points under the target scene, thereby eliminating image flickering when the camera switches between preset points.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video surveillance, and in particular to a control method of a video surveillance system, a video surveillance system and a storage medium. Background Art

[0002] During security monitoring, special attention needs to be paid to hot spots such as areas with high population density, areas where vehicles gather, and areas where abnormal events are prone to occur. Currently, when the camera switches preset points, it is not able to regularly and adaptively adjust the image parameters corresponding to the preset points according to the changes in the external environment corresponding to the preset points, which leads to the problem of image flickering when the camera switches between different preset points.

[0003] With regard to the problem of image flickering in the camera when switching preset points in the related art, no effective solution has been proposed yet. Summary of the invention

[0004] In this embodiment, a control method of a video surveillance system, a video surveillance system and a storage medium are provided to solve the problem of image flickering in a camera when switching preset points in the related art.

[0005] In a first aspect, a control method of a video surveillance system is provided in this embodiment. The video surveillance system includes a master device and a slave device. The control method of the video surveillance system includes:

[0006] Determine multiple target preset points of the master device in the target scene based on hot spot area information obtained in real time by slave devices distributed in various areas of the target scene;

[0007] Generate a cruise route for the target scene according to the plurality of target preset points and a preset cruise algorithm;

[0008] Determining an image parameter corresponding to each of the plurality of target preset points according to the image parameters of the historical preset points under the target scene and a preset clustering algorithm;

[0009] Based on the cruise route and the image parameters corresponding to each of the plurality of preset target points, the main device is set to perform video monitoring on the target scene.

[0010] In some embodiments, the determining of multiple target preset points of the master device in the target scene based on hot spot area information obtained in real time from slave devices distributed in various areas of the target scene includes:

[0011] According to the coordinate mapping relationship between the master device and the slave device, the center coordinates of the hot spot area information obtained in real time by the slave devices distributed in various areas of the target scene are mapped to multiple target preset points of the master device in the target scene.

[0012] In some embodiments, generating a cruise route of the target scene according to the plurality of target preset points and a preset cruise algorithm includes:

[0013] Determining an initial target preset point according to a first distance between the plurality of target preset points and the master device;

[0014] Acquire a second distance between each of the plurality of preset target points;

[0015] The initial target preset point and the second distance are input into a preset cruise algorithm to solve the shortest path and generate a cruise route for the target scene.

[0016] In some embodiments, determining the initial target preset point according to the first distances between the plurality of target preset points and the master device includes:

[0017] Acquire a first distance between the plurality of target preset points and the main device;

[0018] A target preset point with the smallest first distance from the master device is selected from the plurality of target preset points as the initial target preset point.

[0019] In some embodiments, determining the image parameter corresponding to each of the plurality of target preset points according to the image parameters of the historical preset points in the target scene and a preset clustering algorithm includes:

[0020] Clustering the location information of the historical preset points in the target scene based on a preset clustering algorithm to obtain an optimal classification cluster;

[0021] Determining the optimal classification cluster to which each target preset point belongs according to distance information between each target preset point among the multiple target preset points and the centroid of each optimal classification cluster;

[0022] Based on the weighted statistical results of the image parameters of the historical preset points of the optimal classification cluster and the subordinate relationship between each target preset point and the optimal classification cluster, the image parameters corresponding to each target preset point are obtained.

[0023] In some embodiments, clustering the location information of the historical preset points in the target scene based on a preset clustering algorithm to obtain an optimal classification cluster includes:

[0024] Based on a preset clustering algorithm, the elbow rule is used to optimally cluster the location information of the historical preset points in the target scene to obtain an optimal classification cluster.

[0025] In a second aspect, a control device of a video surveillance system is provided in this embodiment, which is used in a video surveillance system, wherein the video surveillance system includes a master device and a slave device, and the control device of the video surveillance system includes: an acquisition module, a generation module, a clustering module, and a monitoring module; wherein:

[0026] The acquisition module is used to determine a plurality of target preset points of the master device in the target scene based on the hot spot area information acquired in real time by the slave devices distributed in various areas of the target scene;

[0027] The generating module is used to generate a cruise route of the target scene according to the plurality of target preset points and a preset cruise algorithm;

[0028] The clustering module is used to determine the image parameters corresponding to each of the multiple target preset points according to the image parameters of the historical preset points in the target scene and a preset clustering algorithm;

[0029] The monitoring module is used to set the main device based on the cruise route and the image parameters corresponding to each of the multiple target preset points, so as to perform video monitoring on the target scene.

[0030] In a third aspect, a video monitoring system is provided in this embodiment, comprising: a master device, a slave device and a server; wherein the master device is located in a preset central area of ​​a target scene, and the slave devices are distributed in various areas around the target scene; the master device and the slave devices are respectively connected to the server for communication;

[0031] The slave device is used to obtain hot spot area information of the corresponding area, and send the hot spot area information to the server;

[0032] The server is used to execute the control method of the video surveillance system described in the first aspect above;

[0033] The main device is used to perform video monitoring on the target scene based on the control method of the video monitoring system executed by the server.

[0034] In a fourth aspect, an electronic device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the control method of the video surveillance system described in the first aspect when executing the computer program.

[0035] In a fifth aspect, in this embodiment, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the control method of the video surveillance system described in the first aspect above is implemented.

[0036] Compared with the related art, the control method, video surveillance system and storage medium of the video surveillance system provided in this embodiment determine multiple target preset points of the main device in the target scene based on the hot spot area information obtained in real time by the slave devices distributed in various areas of the target scene; generate a cruise route of the target scene according to the multiple target preset points and the preset cruise algorithm; determine the image parameters corresponding to each of the multiple target preset points according to the image parameters of the historical preset points under the target scene and the preset clustering algorithm; and set the main device based on the cruise route and the image parameters corresponding to each of the multiple target preset points to perform video surveillance on the target scene. It realizes the adaptive adjustment of the image parameters corresponding to all preset points in the target scene, thereby eliminating the image flickering when the camera switches the preset points.

[0037] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0039] Figure 1 is a hardware structure block diagram of a terminal of the control method of the video surveillance system of this embodiment;

[0040] Figure 2 is a flow chart of a control method of a video surveillance system of the present embodiment;

[0041] Figure 3 is a schematic diagram of the master-slave device distribution of this embodiment;

[0042] Figure 4 Schematic diagram of target preset point distance conversion in this embodiment;

[0043] Figure 5 is a flow chart of the cruise route generation method of the preferred embodiment;

[0044] Figure 6 is a flow chart of a method for setting preset point image parameters in this preferred embodiment;

[0045] Figure 7 is a structural block diagram of a control device of a video surveillance system of this embodiment;

[0046] Figure 8 Schematic diagram of the structure of the video monitoring system of this embodiment. DETAILED DESCRIPTION

[0047] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0048] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0049] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal, Figure 1 FIG. 1 is a hardware structure diagram of a terminal of the control method of the video surveillance system of this embodiment. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 and memory 104 for storing data, wherein processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0050] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the control method of the video surveillance system in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0051] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0052] In this embodiment, a control method of a video monitoring system is provided. The video monitoring system includes a master device and a slave device. Figure 2 is a flow chart of the control method of the video surveillance system of this embodiment, such as Figure 2 As shown, the process includes the following steps:

[0053] Step S210, based on the hot spot area information obtained in real time by the slave devices distributed in various areas of the target scene, a plurality of target preset points of the master device in the target scene are determined.

[0054] The slave device may be a gun-type device for monitoring a local area, and the master device may be a ball-type device for cruising based on multiple preset points in a target scene. Figure 3 FIG. 1 is a schematic diagram of the master-slave device distribution of this embodiment. Figure 3 As shown, the master device 10 is distributed in the center of the target scene for inspecting the entire target scene. The slave devices include slave device 11, slave device 12, slave device 13, and slave device 14. The above four slave devices are respectively distributed in the four corners of the target scene to monitor their corresponding areas, such as the sector-shaped areas corresponding to each slave device in the figure.

[0055] Furthermore, the slave devices distributed in each area of ​​the target scene monitor the corresponding area in real time to determine the hot spot area information in the area, and based on the center coordinates of each hot spot area, multiple target preset points of the master device in the target scene can be determined. Among them, based on the predetermined coordinate mapping relationship between each slave device and the master device, the center coordinates of the hot spot area obtained by each slave device can be converted into the preset point of the master device.

[0056] This embodiment obtains the hot spot area information of the corresponding area in real time through slave devices distributed in various areas of the target scene, and updates the target preset points of the master device in real time based on the hot spot area information, so as to realize the adaptive update of the preset points of the entire target scene. Compared with the current related technology that requires users to manually determine the positions of preset points regularly according to the monitoring environment, this embodiment can realize the panoramic real-time update of preset points. Furthermore, the hot spot area information of each area can be obtained based on the target detection function deployed in the slave device. For example, the slave device obtains the position information of the human target in the corresponding area of ​​the target scene based on the preset target detection algorithm, and draws a crowd heat map based on the position information of the human target, and determines the area where the crowd focuses on the preset number threshold per unit area in the crowd heat map as the hot spot area.

[0057] Step S220, generating a cruise route of the target scene according to a plurality of target preset points and a preset cruise algorithm.

[0058] Among them, the shortest path can be solved by using a preset cruise algorithm according to the distances between the multiple target preset points and the distances between the multiple target preset points and the main device, so as to obtain the cruise route of the target scene. After the target preset points are set, the main device needs to cruise around each target preset point. In order to reduce the cruise time of the target preset points, the TSP (Travelling Salesman Problem) algorithm can be used to generate the cruise route. Among them, the TSP algorithm makes the main device start from the target preset point position at the last moment and traverse all the updated target preset points to return to the initial target preset point. The distance experienced is the shortest, and the cruise route can be controlled to cruise only once at each target preset point. Exemplarily, in this embodiment, the distance between each target preset point and the distance between each target preset point and the main device can be represented by the sum of the angles of horizontal movement and vertical movement of the main device.

[0059] Step S230 , determining an image parameter corresponding to each target preset point in a plurality of target preset points according to the image parameters of the historical preset points in the target scene and a preset clustering algorithm.

[0060] Understandably, the focus of user attention may be different under different target preset points, so the image parameters corresponding to different target preset points may also be different. Among them, the image parameters of this embodiment may specifically include factors that determine the image quality effect, such as brightness value, contrast, sharpness, noise reduction intensity, exposure time, door opening time, and white balance parameters. At present, the adjustment of image parameters for different preset points is often completed by manual debugging to improve the display effect of the image. In the case of a large number of preset points, the current method of manually setting the image parameters of the preset points is less efficient, and due to frequent switching of preset points, a set of image parameters cannot be generated in time, resulting in abnormal phenomena such as flickering of the image.

[0061] In this embodiment, since the target preset point is updated in real time, there are several historical preset points under the target scene. The historical preset point can be a target preset point corresponding to a historical cruise cycle, or a preset point set for a previous cruise mission. The image parameters of the historical preset points within a certain area have a reference value for setting the image parameters of the current target preset points within the range. In this embodiment, the historical preset points are clustered based on the location information of the historical preset points based on a preset clustering algorithm to obtain multiple optimal classification clusters. Next, the optimal classification cluster to which the target preset point belongs is determined, and the image parameters of the target preset point are obtained based on the statistical information of the image parameters of the optimal classification cluster to which the target preset point belongs. Among them, the statistical information can be obtained by statistically analyzing the image parameters of all historical preset points in the classification cluster. The specific statistical method can be determined according to the actual application scenario, and this embodiment is not specifically limited here. In this embodiment, the image parameters of the target preset point are set based on the clustering results of the historical preset points and the image parameters of the historical preset points, and the corresponding image parameters can be generated for each target preset point in a timely manner, so that the image adjustment process is smoother and faster, thereby solving the problem of image flickering existing in the current switching of preset points.

[0062] Step S240, based on the cruise route and the image parameters corresponding to each of the plurality of preset target points, the main device is set to perform video monitoring on the target scene.

[0063] In the above steps S210 to S240, based on the hot spot area information obtained in real time by the slave devices distributed in various areas of the target scene, multiple target preset points of the master device in the target scene are determined; based on the multiple target preset points and the preset cruise algorithm, a cruise route of the target scene is generated; based on the image parameters of the historical preset points under the target scene and the preset clustering algorithm, the image parameters corresponding to each of the multiple target preset points are determined; based on the cruise route and the image parameters corresponding to each of the multiple target preset points, the master device is set to perform video monitoring of the target scene. It realizes the adaptive adjustment of the image parameters corresponding to all preset points in the target scene, thereby eliminating the image flickering when the camera switches the preset points.

[0064] Further, in one embodiment, based on the above step S210, based on the hot spot area information obtained in real time by the slave devices distributed in various areas of the target scene, determining multiple target preset points of the master device in the target scene may specifically include the following steps:

[0065] Step S211, according to the coordinate mapping relationship between the master device and the slave device, the center coordinates of the hot spot area information obtained in real time by the slave devices distributed in various areas of the target scene are mapped to multiple target preset points of the master device in the target scene.

[0066] This embodiment realizes the conversion from the hot spot area to the target preset point according to the coordinate mapping relationship between the master device and the slave device, which can improve the accuracy of the target preset point.

[0067] Additionally, in one embodiment, based on the above step S220, generating a cruise route of a target scene according to a plurality of target preset points and a preset cruise algorithm may specifically include the following steps:

[0068] Step S221, determining an initial target preset point based on the first distances between the plurality of target preset points and the main device. Specifically, the initial target preset point can be determined based on the distances between the target preset point and the main device. Preferably, the target preset point closest to the main device can be used as the initial target preset point.

[0069] Step S222: acquiring a second distance between each of the plurality of preset target points.

[0070] Specifically, Figure 4 Schematic diagram of target preset point distance conversion in this embodiment. Figure 4 The left part is a schematic diagram of the distribution of master devices and slave devices in the target scenario. Figure 4As can be seen from the left half, the master device 10 is located at the center of the target scene. There are two target preset points in the area corresponding to the slave device 11, namely preset point 21 and preset point 22; there is one target preset point in the area corresponding to the slave device 12, namely preset point 23; and there is one target preset point in the area corresponding to the slave device 13, namely preset point 24. Figure 4 The right half is the network topology structure formed by the four target preset points, wherein the distance between each node in the network topology structure is the second distance, and it can be understood that the distance between each node is bidirectional and equal.

[0071] Step S223, the initial target preset point and the second distance are input into a preset cruise algorithm to solve the shortest path and generate a cruise route of the target scene.

[0072] Specifically, the above-mentioned initial target preset point and the second distance can be input into the TSP algorithm to solve the shortest path, thereby generating a cruise route for the target scene. Compared with the related art, due to the lack of planning for the cruise path of the preset points, there is a problem that the camera device cannot complete the cruise of all preset points in a short time. In this embodiment, through the above-mentioned steps S221 to S223, the shortest path of the cruise route is solved according to the second distance between the initial target preset point and each target preset point, so that the main device can complete a cruise from the initial target preset point The route traversed is the shortest, thereby saving cruise time and improving cruise efficiency.

[0073] Further, in one embodiment, based on the above step S221, determining the initial target preset point according to the first distances between the plurality of target preset points and the main device may specifically include: obtaining the first distances between the plurality of target preset points and the main device; and selecting the target preset point with the smallest first distance from the main device from the plurality of target preset points as the initial target preset point. Determining the target preset point with the smallest first distance from the main device as the initial target preset point can further narrow the cruise route, thereby shortening the cruise time of the preset point.

[0074] Additionally, in one embodiment, based on the above step S230, according to the image parameters of the historical preset points in the target scene and the preset clustering algorithm, determining the image parameters corresponding to each target preset point in the plurality of target preset points may specifically include the following steps:

[0075] Step S231 , clustering the location information of the historical preset points in the target scene based on a preset clustering algorithm to obtain an optimal classification cluster.

[0076] Exemplarily, the location information of N historical preset points in the target scene is clustered according to a preset clustering algorithm to obtain k optimal classification clusters.

[0077] Step S232: determining the optimal classification cluster to which each target preset point belongs according to the distance information between each target preset point in the plurality of target preset points and the centroid of each optimal classification cluster.

[0078] Furthermore, the optimal classification cluster to which each target preset point belongs can be determined based on the Euclidean distance between each target preset point and the centroid of each optimal classification cluster. For example, the distances between the target preset point a and the centroids of the k optimal classification clusters are d1, d2, ..., dk, where d1 represents the distance between the target preset point a and the centroid of the optimal classification cluster 1, d2 represents the distance between the target preset point a and the centroid of the optimal classification cluster 2, and dk represents the distance between the target preset point a and the centroid of the optimal classification cluster k. If d1 is the smallest, the target preset point a can be classified into the optimal classification cluster 1.

[0079] Step S233, based on the weighted statistical results of the image parameters of the historical preset points of the optimal classification cluster and the subordinate relationship between each target preset point and the optimal classification cluster, the image parameters corresponding to each target preset point are obtained.

[0080] In this embodiment, the image parameters of each target preset point depend to a certain extent on the historical preset points in the optimal classification cluster to which it belongs, that is, there is a large correlation between them. Therefore, the image parameters of the corresponding target preset point can be determined based on the image parameters of the historical preset points in the optimal classification cluster to which each target preset point belongs. For example, if the target preset point a belongs to the optimal classification cluster 1, the image parameters of the target preset point a can be obtained by performing weighted statistics on the image parameters of the historical preset points in the optimal classification cluster 1. Furthermore, the image parameters of the target preset point a can be obtained by performing weighted summation on the image parameters of the historical preset points in the optimal classification cluster 1.

[0081] The above steps S231 to S233 determine the image parameters of the target preset point based on the clustering algorithm and the image parameters of the historical preset points, which can improve the setting efficiency of the image parameters corresponding to the target preset point, realize automatic adjustment of the image parameters corresponding to different target preset points, and thus improve the smoothness and speed of the image change when the preset point is switched, thereby eliminating the problem of image flickering when the preset point is switched.

[0082] Further, in one embodiment, based on the above step S231, the location information of the historical preset points in the target scene is clustered based on a preset clustering algorithm to obtain an optimal classification cluster, which may specifically include: based on a preset clustering algorithm, the elbow rule is used to optimally cluster the location information of the historical preset points in the target scene to obtain an optimal classification cluster.

[0083] First, the number of classification clusters k can be determined based on all historical preset points through the point elbow method. The square error between the historical preset points and the centroid within the cluster can be used as the objective function, which is shown in the following formula:

[0084]

[0085] where c i represents the coordinates of the i-th centroid (q i , p i ), which can be specifically expressed by the following formula:

[0086]

[0087] where |c i | represents the number of historical preset points in the cluster; (x ki ,y ki ) is abbreviated as m i , defined as the i-th preset point in the k-th cluster. ki and ki Indicates m i The coordinate value of. C is the set of historical preset points.

[0088] The sum of square distance errors between the mass point of each classification cluster and the historical preset points in the cluster is solved in sequence when the number k is 1, 2, ..., 10. The smaller the sum of square distance errors, the lower the degree of distortion, the closer the relationship between the preset points in the cluster, the higher the degree of distortion, and the looser the structure in the cluster. The degree of distortion will decrease as the number of clusters increases, but when it reaches a certain critical point, the degree of distortion will be greatly improved, and then slowly decrease. This critical point can be considered as a point with better clustering performance, that is, the point with the optimal number of clusters.

[0089] When the number of classification clusters k is 1, a historical preset point can be randomly selected as the centroid, and the sum of the square distance errors from other preset points to the centroid can be solved as shown in the following formula:

[0090]

[0091] Where c1 represents any centroid coordinate (q1, p1).

[0092] When k = 2, two historical preset points are randomly selected as the centroid, and the sum of the square distance errors from other preset points to the centroid is solved, that is,

[0093]

[0094] where c j represents the jth centroid coordinate (q j , p j), j=1,2.

[0095] By analogy, find the point with the lowest distortion, that is, the optimal number of classification clusters.

[0096] In this embodiment, the distance is used as the standard for measuring the similarity between preset point objects, that is, the smaller the distance between the preset points, the higher the similarity between the preset points, and the more likely they belong to the same classification cluster. Preferably, this embodiment uses the Euclidean distance to calculate the distance between the preset points, and the two-dimensional formula is shown as follows:

[0097]

[0098] Wherein, (x1, x2) is the coordinate of the first preset point, (x2, y2) is the coordinate of the second preset point, and d is the distance between the two preset points.

[0099] Furthermore, N historical preset points are allocated to k clusters, and the centroid of each classification cluster is solved to obtain the optimal classification cluster. That is, as shown in the following formula:

[0100]

[0101] Finally, the Euclidean distance is used to determine the optimal classification cluster to which each target preset point belongs. In each optimal classification cluster, the weighted sum of the image parameters of the historical preset points in the cluster is used to solve the image parameters of the corresponding target preset point. In addition, the slave device can be controlled to cruise once every period of time, and the above clustering process is repeated to update the optimal classification cluster to which the target preset point belongs.

[0102] The present embodiment is described and illustrated below through preferred embodiments.

[0103] Figure 5 is a flow chart of the cruise route generation method of the preferred embodiment. Figure 5 As shown, the cruise route generation method includes the following steps:

[0104] Step S501, according to the horizontal angle difference and vertical angle difference between the current ball camera position and the position of each target preset point, the distance between the current ball camera and each target preset point is obtained;

[0105] Step S502, taking the target preset point closest to the current ball camera as the initial target preset point;

[0106] Step S503, calculating the distance between each target preset point;

[0107] Step S504, obtaining a cruise route using a TSP algorithm according to the initial target preset point and the distances between the target preset points;

[0108] Step S505: the ball camera cruises the target scene according to the cruise route.

[0109] Figure 6 is a flow chart of the method for setting the preset point image parameters of the preferred embodiment. Figure 6 As shown, the preset point image parameter setting method includes the following steps:

[0110] Step S601, obtaining coordinate information of N historical preset points based on four slave devices;

[0111] Step S602, based on the coordinate information of the historical preset points, the N historical preset points are decomposed into k classification clusters by using the clustering algorithm and the elbow rule, and the centroids of the classification clusters are calculated to obtain the optimal classification cluster;

[0112] Step S603, calculating the Euclidean distance between the target preset point and the k centroid positions, and obtaining the optimal classification cluster to which the target preset point belongs;

[0113] Step S604, obtaining the image parameters of the target preset point according to the weighted summation result of the image parameters of the historical preset points of the optimal classification cluster to which the target preset point belongs.

[0114] In this embodiment, a control device for a video surveillance system is also provided, and the control device for the video surveillance system is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0115] Figure 7 70 is a structural block diagram of the control device 70 of the video monitoring system of this embodiment. Figure 7 As shown, the control device 70 of the video monitoring system includes: an acquisition module 72, a generation module 74, a clustering module 76, and a monitoring module 78; wherein:

[0116] An acquisition module 72, configured to determine a plurality of target preset points of a master device in a target scene based on hot spot area information acquired in real time by slave devices distributed in various areas of the target scene;

[0117] A generating module 74, for generating a cruise route of a target scene according to a plurality of target preset points and a preset cruise algorithm;

[0118] A clustering module 76, for determining an image parameter corresponding to each of a plurality of target preset points according to the image parameters of the historical preset points in the target scene and a preset clustering algorithm;

[0119] The monitoring module 78 is used to set the main device based on the cruise route and the image parameters corresponding to each of the multiple target preset points to perform video monitoring on the target scene.

[0120] The control device 70 of the above-mentioned video monitoring system determines multiple target preset points of the main device in the target scene based on the hot spot area information obtained in real time by the slave devices distributed in various areas of the target scene; generates a cruise route of the target scene based on the multiple target preset points and the preset cruise algorithm; determines the image parameters corresponding to each of the multiple target preset points based on the image parameters of the historical preset points under the target scene and the preset clustering algorithm; and sets the main device based on the cruise route and the image parameters corresponding to each of the multiple target preset points to perform video monitoring on the target scene. It realizes the adaptive adjustment of the image parameters corresponding to all preset points under the target scene, thereby eliminating the image flickering when the camera switches the preset points.

[0121] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0122] In this embodiment, a video monitoring system 80 is also provided. Figure 8 80 is a schematic diagram of the structure of the video monitoring system 80 of this embodiment. Figure 8 As shown, the video monitoring system 80 includes: a master device 82, a slave device 84, and a server 86; wherein the master device 82 is located in the preset central area of ​​the target scene, and the slave devices 84 are distributed in various areas around the target scene; the master device 82 and the slave device 84 are respectively connected to the server 86 for communication;

[0123] The slave device 84 is used to obtain hot spot area information of the corresponding area and send the hot spot area information to the server 86;

[0124] The server 86 is used to execute the control method of the video surveillance system provided by any of the above embodiments;

[0125] The main device 82 is used to perform video monitoring of the target scene based on the control method of the video monitoring system executed by the server 86.

[0126] It is understandable that the server 86 can be integrated with the main device 82 or can be separated from the main device 82, which is not specifically limited in this embodiment. The video monitoring system 80 realizes adaptive adjustment of image parameters corresponding to all preset points in the target scene, thereby eliminating image flickering when the camera switches between preset points.

[0127] In this embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0128] Optionally, 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.

[0129] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0130] Based on the hot spot area information obtained in real time by the slave devices distributed in various areas of the target scene, multiple target preset points of the master device in the target scene are determined;

[0131] Generate a cruise route for the target scene based on multiple target preset points and a preset cruise algorithm;

[0132] Determine the image parameters corresponding to each of the multiple target preset points according to the image parameters of the historical preset points in the target scene and the preset clustering algorithm;

[0133] Based on the cruise route and the image parameters corresponding to each of the multiple target preset points, the main device is set to perform video monitoring on the target scene. It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiment and the optional implementation mode, and will not be repeated in this embodiment.

[0134] In addition, in combination with the control method of the video surveillance system provided in the above embodiments, a storage medium can also be provided in this embodiment to implement the control method. The storage medium stores a computer program; when the computer program is executed by the processor, any of the control methods of the video surveillance system in the above embodiments is implemented.

[0135] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0136] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0137] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0138] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A control method for a video surveillance system, characterized in that: The video surveillance system includes a master device and a slave device, and the control method of the video surveillance system includes: Determine multiple target preset points of the master device in the target scene based on hot spot area information obtained in real time by slave devices distributed in various areas of the target scene; Generate a cruise route for the target scene according to the plurality of target preset points and a preset cruise algorithm; Determining an image parameter corresponding to each of the plurality of target preset points according to the image parameters of the historical preset points in the target scene and a preset clustering algorithm; Based on the cruise route and the image parameters corresponding to each of the plurality of preset target points, the main device is set to perform video monitoring on the target scene; wherein, The step of determining the image parameter corresponding to each of the plurality of target preset points according to the image parameters of the historical preset points in the target scene and a preset clustering algorithm comprises: Clustering the location information of the historical preset points in the target scene based on a preset clustering algorithm to obtain an optimal classification cluster; Determining the optimal classification cluster to which each target preset point belongs according to distance information between each target preset point among the multiple target preset points and the centroid of each optimal classification cluster; Based on the weighted statistical results of the image parameters of the historical preset points of the optimal classification cluster and the subordinate relationship between each target preset point and the optimal classification cluster, the image parameters corresponding to each target preset point are obtained.

2. The control method of the video surveillance system according to claim 1, characterized in that: The method of determining a plurality of target preset points of the master device in the target scene based on the hot spot area information obtained in real time by the slave devices distributed in various areas of the target scene includes: According to the coordinate mapping relationship between the master device and the slave device, the center coordinates of the hot spot area information obtained in real time by the slave devices distributed in various areas of the target scene are mapped to multiple target preset points of the master device in the target scene.

3. The control method of the video surveillance system according to claim 1, characterized in that: The generating of the cruise route of the target scene according to the plurality of target preset points and the preset cruise algorithm comprises: Determining an initial target preset point according to first distances between the plurality of target preset points and the master device; Acquire a second distance between each of the plurality of preset target points; The initial target preset point and the second distance are input into a preset cruise algorithm to solve the shortest path and generate a cruise route for the target scene.

4. The control method of the video surveillance system according to claim 3, characterized in that: The step of determining an initial target preset point according to the first distances between the plurality of target preset points and the master device comprises: Acquire a first distance between the plurality of target preset points and the main device; A target preset point with the smallest first distance from the master device is selected from the plurality of target preset points as the initial target preset point.

5. The control method of the video surveillance system according to claim 1, characterized in that: The clustering of the location information of the historical preset points in the target scene based on a preset clustering algorithm to obtain an optimal classification cluster includes: Based on a preset clustering algorithm, the elbow rule is used to optimally cluster the location information of the historical preset points in the target scene to obtain an optimal classification cluster.

6. A control device for a video surveillance system, used in a video surveillance system, characterized in that: The video monitoring system includes a master device and a slave device, and the control device of the video monitoring system includes: an acquisition module, a generation module, a clustering module, and a monitoring module; wherein: The acquisition module is used to determine a plurality of target preset points of the master device in the target scene based on the hot spot area information acquired in real time by the slave devices distributed in various areas of the target scene; The generating module is used to generate a cruise route of the target scene according to the plurality of target preset points and a preset cruise algorithm; The clustering module is used to cluster the location information of the historical preset points in the target scene based on a preset clustering algorithm to obtain an optimal classification cluster; determine the optimal classification cluster to which each target preset point belongs based on the distance information between each target preset point in the multiple target preset points and the centroid of each optimal classification cluster; obtain the image parameter corresponding to each target preset point based on the weighted statistical results of the image parameters of the historical preset points of the optimal classification cluster and the subordinate relationship between each target preset point and the optimal classification cluster; The monitoring module is used to set the main device based on the cruise route and the image parameters corresponding to each of the multiple target preset points, so as to perform video monitoring on the target scene.

7. A video surveillance system, characterized in that: include: A master device, a slave device, and a server; wherein the master device is located in a preset central area of ​​a target scene, and the slave devices are distributed in various areas around the target scene; the master device and the slave devices are respectively connected to the server for communication; The slave device is used to obtain hot spot area information of the corresponding area, and send the hot spot area information to the server; The server is used to execute the control method of the video surveillance system according to any one of claims 1 to 5; The main device is used to perform video monitoring on the target scene based on the control method of the video monitoring system executed by the server.

8. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the control method of the video surveillance system according to any one of claims 1 to 5.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the control method of the video surveillance system according to any one of claims 1 to 5 is implemented.