Method and device for adjusting monitoring image correction window, and storage medium

The correction window position of the fisheye camera is automatically adjusted through heat map data analysis, which solves the problem of manually adjusting the correction window and achieves the best preview effect for different scenarios.

CN113610019BActive Publication Date: 2024-10-22ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110920376.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-11
Publication Date
2024-10-22
Estimated Expiration
2041-08-11

AI Technical Summary

Technical Problem

In the existing technology, fisheye cameras need to manually adjust the position of the correction window to correct the target area of ​​the target image, and there is a lack of automated solutions.

Method used

By obtaining the heat map data of the target image, it is divided into multiple areas and the target area is determined based on the total heat value. The correction window is adjusted to an area with a higher heat value, and intelligent events are used to adjust the position of the correction window.

Benefits of technology

It realizes the automatic adjustment of the position of the correction window, adapts to the correction mode of different scenes, and improves the preview effect of the monitoring image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113610019B_ABST
    Figure CN113610019B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for adjusting a correction window of a monitoring image, and a storage medium, wherein the method comprises: obtaining heat map data corresponding to a first target image, wherein the heat map data is used to indicate the flow of people data corresponding to each position of the target image; dividing the first target image into multiple areas, and determining the total heat value corresponding to each area in the multiple areas according to the heat map data; determining a target area in the multiple areas according to the multiple total heat values, and adjusting the correction window to the target area, wherein the correction window is used to adjust the image of the target area, that is, determining the target area according to the total heat values ​​of the multiple areas, and adjusting the correction window to the target area. The above technical solution is adopted to solve the problem in the related art that the position of the correction window needs to be manually adjusted to correct the pixel value of the target area of ​​the target image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to a method and device for adjusting a monitoring image correction window, and a storage medium. Background Art

[0002] A fisheye camera is a camera equipped with an ultra-wide-angle lens. Compared with ordinary cameras, a single fisheye camera has a wider viewing angle and can replace multiple ordinary cameras for large-scale monitoring. However, the fisheye image obtained by the fisheye camera is very different from the real world scene in people's eyes. Therefore, the fisheye image needs to be corrected to generate an image that is easy for people to recognize.

[0003] At present, fisheye cameras are generally divided into two specifications: 180° and 360°, with two installation methods: wall-mounted and ceiling-mounted. Different specifications and installation methods correspond to different correction modes. Usually, a digital video recorder (DVR) can query the specifications of fisheye cameras and the corresponding installation methods and save the above information locally in the form of configuration files. When the monitoring personnel find dangerous behavior in the monitoring screen, such as suspicious intrusion, they need to manually trigger the correction menu and manually select the corresponding correction mode for image correction.

[0004] With regard to the problem in the related art that the position of the correction window needs to be manually adjusted to correct the pixel values ​​of the target area of ​​the target image, no effective solution has been proposed. Summary of the invention

[0005] The embodiments of the present invention provide a method and device for adjusting a correction window of a monitoring image, and a storage medium, so as to at least solve the problem in the related art that the position of the correction window needs to be manually adjusted to correct the pixel value of the target area of ​​the target image.

[0006] According to one embodiment of the present invention, a method for adjusting a correction window of a monitoring image is provided, comprising: obtaining heat map data corresponding to a first target image, the heat map data being used to indicate traffic data corresponding to each position of the target image; dividing the first target image into a plurality of regions, and determining a total heat value corresponding to each of the plurality of regions according to the heat map data; determining a target region among the plurality of regions according to the plurality of total heat values, and adjusting a correction window to the target region, wherein the correction window is used to adjust the image of the target region.

[0007] In an exemplary embodiment, before determining a target area among multiple areas based on multiple total heat values, the method includes: determining multiple first total heat values ​​greater than a first preset threshold among multiple total heat values; determining multiple areas corresponding to the multiple first total heat values, and determining distance information of the multiple areas; and determining a size relationship between a first total heat value corresponding to the first target area and a first total heat value corresponding to the second target area when the distance information between the first target area and the second target area is less than a second preset threshold, wherein the multiple areas include: the first target area and the second target area.

[0008] In an exemplary embodiment, after determining the size relationship between the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area, the method further includes: when the size relationship indicates that the first total heat value corresponding to the first target area is greater than the first total heat value corresponding to the second target area, adjusting the correction window to the first target area; when the size relationship indicates that the first total heat value corresponding to the first target area is less than the first total heat value corresponding to the second target area, adjusting the correction window to the second target area.

[0009] In an exemplary embodiment, after adjusting the correction window to the target area, the method further includes: acquiring a second target image, wherein the second target image indicates the same area as the first target image; determining whether there is an intelligent event in the second target image, wherein the intelligent event includes at least one of the following: a face recognition event, a tripwire intrusion event; in the case that there is an intelligent event in the second target image, adjusting the correction window according to the intelligent event.

[0010] In an exemplary embodiment, when there is an intelligent event in the second target image, adjusting the correction window according to the intelligent event includes: determining the target object in the second target image and the position information corresponding to the target object; adjusting the correction window to the position corresponding to the target object according to the position information corresponding to the target object.

[0011] In an exemplary embodiment, obtaining heat map data corresponding to a first target image includes: obtaining crowd flow data in a video stream corresponding to the first target image; and performing statistics on the crowd flow data to obtain heat map data corresponding to the first target image.

[0012] According to another embodiment of the present invention, there is also provided a device for adjusting a correction window of a monitoring image, including an acquisition module for acquiring heat map data corresponding to a first target image, wherein the heat map data is used to indicate traffic data corresponding to each position of the target image; a determination module for dividing the first target image into a plurality of regions, and determining a total heat value corresponding to each of the plurality of regions according to the heat map data; and an adjustment module for determining a target region among the plurality of regions according to a plurality of the total heat values, and adjusting the correction window to the target region, wherein the correction window is used to adjust the image of the target region.

[0013] In an exemplary embodiment, the determination module is also used to determine multiple first total heat values ​​greater than a first preset threshold among multiple total heat values; determine multiple first areas corresponding to the multiple first total heat values, and determine the distance information of the multiple first areas; when the distance information between the first target area and the second target area is less than the second preset threshold, determine the size relationship between the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area, wherein the multiple first areas include: the first target area and the target area.

[0014] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.

[0015] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0016] Through the present invention, heat map data corresponding to a first target image is obtained, wherein the heat map data is used to indicate the flow of people data corresponding to each position of the target image; the first target image is divided into multiple areas, and the total heat value corresponding to each of the multiple areas is determined according to the heat map data; a target area is determined in the multiple areas according to the multiple total heat values, and a correction window is adjusted to the target area, wherein the correction window is used to adjust the image of the target area, that is, the target area is determined according to the total heat values ​​of the multiple areas, and the correction window is adjusted to the target area. The above technical solution is adopted to solve the problem in the related art that it is necessary to manually adjust the position of the correction window to correct the pixel value of the target area of ​​the target image, and the position of the correction window is automatically adjusted through heat map data analysis, and different correction modes are changed for different actual scenes, so that the position of each correction window is distributed in the area with higher heat value, so as to achieve the best preview effect. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 It is a hardware structure block diagram of a mobile terminal for a method for adjusting a monitoring image correction window according to an embodiment of the present invention;

[0019] Figure 2 is a flow chart of a method for adjusting a monitoring image correction window according to an embodiment of the present invention;

[0020] Figure 3 A system structure diagram of a method for adjusting a monitoring image correction window according to an optional embodiment of the present invention;

[0021] Figure 4 Flowchart (I) of a method for adjusting a monitoring image correction window according to an optional embodiment of the present invention;

[0022] Figure 5 A schematic diagram of a method for adjusting a monitoring image correction window according to an optional embodiment of the present invention;

[0023] Figure 6 Flowchart (II) of a method for adjusting a monitoring image correction window according to an optional embodiment of the present invention;

[0024] Figure 7 The present invention is a structural block diagram of a device for adjusting a monitoring image correction window according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0027] The method embodiment provided in the embodiment of the present application can be executed in a mobile terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal for adjusting a monitoring image correction window according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. In an exemplary embodiment, the mobile terminal may also include a transmission device 106 and an input / 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 mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.

[0028] 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 method for adjusting the monitoring image correction window of the mobile terminal in the embodiment of the present invention. 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 can be connected to the mobile terminal via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0029] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile 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 (RF) module, which is used to communicate with the Internet wirelessly.

[0030] In this embodiment, a method for adjusting a monitoring image correction window is provided, which is applied to the above-mentioned mobile terminal, specifically a fisheye camera. Figure 2 : is a flow chart of a method for adjusting a monitoring image correction window according to an embodiment of the present invention, the flow chart comprising the following steps:

[0031] Step S202, obtaining heat map data corresponding to the first target image, wherein the heat map data is used to indicate the flow of people data corresponding to each position of the target image;

[0032] Step S204, dividing the first target image into a plurality of regions, and determining a total heat value corresponding to each of the plurality of regions according to the heat map data;

[0033] Step S206, determining a target area among the multiple areas according to the multiple total heat values, and adjusting a correction window to the target area, wherein the correction window is used to adjust the image of the target area.

[0034] Through the above steps, the heat map data corresponding to the first target image is obtained, wherein the heat map data is used to indicate the traffic data corresponding to each position of the target image; the first target image is divided into multiple areas, and the total heat value corresponding to each of the multiple areas is determined according to the heat map data; the target area is determined in the multiple areas according to the multiple total heat values, and the correction window is adjusted to the target area, wherein the correction window is used to adjust the picture of the target area, that is, the target area is determined according to the total heat values ​​of the multiple areas, and the correction window is adjusted to the target area. The above technical solution is adopted to solve the problem that in the related technology, it is necessary to manually adjust the position of the correction window to correct the pixel value of the target area of ​​the target image, and automatically adjust the position of the correction window through heat map data analysis, and change different correction modes for different actual scenes, so that the position of each correction window is distributed in the area with higher heat value, so as to achieve the best preview effect.

[0035] It should be noted that “the correction window is used to adjust the picture of the target area” can be understood as, when the correction window is moved to the target area, the picture of the target area is corrected so that the picture of the target area appears as a regular picture.

[0036] In an exemplary embodiment, before determining a target area among multiple areas based on multiple total heat values, the method includes: determining multiple first total heat values ​​greater than a first preset threshold among multiple total heat values; determining multiple areas corresponding to the multiple first total heat values, and determining distance information of the multiple areas; and determining a size relationship between a first total heat value corresponding to the first target area and a first total heat value corresponding to the second target area when the distance information between the first target area and the second target area is less than a second preset threshold, wherein the multiple areas include: the first target area and the second target area.

[0037] That is to say, multiple first total heat values ​​greater than a first preset threshold and the areas corresponding to the first total heat values ​​are determined, and the distance information of the first target area and the second target area are respectively determined according to the coordinate information; when the distance information of the first target area and the second target area is less than the second preset threshold, the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area are compared, and the target area is determined according to the size relationship between the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area; when the distance information of the first target area and the second target area is greater than the second preset threshold, the first target area and the second target area are used as target areas, and the correction window is adjusted to the first target area and the second target area, wherein the number of correction windows is multiple.

[0038] In another exemplary embodiment, multiple total heat values ​​are sorted from large to small, and a preset number of first total heat values ​​and areas corresponding to the first total heat values ​​are determined according to the arrangement order, and distance information of the first target area and the second target area are respectively determined according to the coordinate information. When the distance information of the first target area and the second target area is less than a second preset threshold, the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area are compared, and the target area is determined according to the size relationship between the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area; when the distance information of the first target area and the second target area is greater than the second preset threshold, the first target area and the second target area are used as target areas, and the correction window is adjusted to the first target area and the second target area, wherein the number of correction windows is multiple, and the preset number is the same as the number of correction windows.

[0039] In an exemplary embodiment, after determining the size relationship between the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area, when the size relationship indicates that the first total heat value corresponding to the first target area is greater than the first total heat value corresponding to the second target area, the correction window is adjusted to the first target area; when the size relationship indicates that the first total heat value corresponding to the first target area is less than the first total heat value corresponding to the second target area, the correction window is adjusted to the second target area.

[0040] In other words, the magnitude relationship between the first total heat value and the second total heat value is compared, and the correction window is adjusted to the target area corresponding to the higher heat value between the first total heat value and the second total heat value.

[0041] In an exemplary embodiment, after adjusting the correction window to the target area, a second target image is acquired, wherein the second target image indicates the same area as the first target image; determining whether there is an intelligent event in the second target image, wherein the intelligent event includes at least one of the following: a face recognition event, a tripwire intrusion event; in the case that there is an intelligent event in the second target image, adjusting the correction window according to the intelligent event.

[0042] After the correction window is adjusted to the target area, at the same time, the intelligent analysis function of the fisheye camera or the network video recorder (NVR) supports the intelligent analysis module to perform intelligent analysis on the target image in the video stream. When an intelligent event is detected, such as face recognition, line intrusion, etc., the correction window is adjusted according to the intelligent event.

[0043] In an exemplary embodiment, when there is an intelligent event in the second target image, adjusting the correction window according to the intelligent event includes: determining the target object in the second target image and the position information corresponding to the target object; adjusting the correction window to the position corresponding to the target object according to the position information corresponding to the target object.

[0044] Specifically, the target object in the target image and the corresponding coordinate position of the target object are determined, and one of the correction windows is adjusted in real time to continuously track the target, and the target object is kept in the center of the picture as much as possible. In this way, the user can track a coherent and clear video picture.

[0045] In an exemplary embodiment, obtaining heat map data corresponding to a first target image includes: obtaining crowd flow data in a video stream corresponding to the first target image; and performing statistics on the crowd flow data to obtain heat map data corresponding to the first target image.

[0046] The fisheye camera supports heat map statistics, which counts the traffic data in the video stream corresponding to the first target image to obtain the heat map data corresponding to the first target image. The NVR continuously queries the heat map data, and automatically adjusts the position of the correction window after the heat map data is updated, so that the correction window is distributed at a position with a relatively high heat value.

[0047] In order to better understand the process of the above-mentioned monitoring image correction window adjustment method, the following describes the process of the above-mentioned monitoring image correction window adjustment method in combination with an optional embodiment, but is not used to limit the technical solution of the embodiment of the present invention.

[0048] Figure 3 FIG. 1 is a system structure diagram of a method for adjusting a monitoring image correction window according to an optional embodiment of the present invention; Figure 3 As shown, the system for monitoring the adjustment method of the image correction window includes:

[0049] NVR or DVR and a fisheye camera that supports heat map statistics, where the NVR or DVR supports post-intelligence or the fisheye camera supports intelligent analysis.

[0050] The NVR or DVR is used to query the heat map data corresponding to the target image, and the video stream corresponding to the target image for intelligent analysis to detect whether an intelligent event occurs in the video stream.

[0051] The fisheye camera is used to count the human flow data in the video stream to obtain the heat map data corresponding to the target image.

[0052] Figure 4 FIG. 1 is a flow chart of a method for adjusting a monitoring image correction window according to an optional embodiment of the present invention (I). Figure 4 As shown, the specific steps are as follows:

[0053] Step S401: NVR continuously queries heat map data;

[0054] Step S402: Analyze heat map data;

[0055] Specifically, the target image is divided into a plurality of regions, and a plurality of total heat values ​​corresponding to the plurality of regions are respectively determined according to the heat map data.

[0056] Step S403: adjusting the position of the correction window according to the heat map coordinates;

[0057] Step S404: Save the position of the correction window.

[0058] Specifically, the fisheye camera counts the traffic data of the video stream and obtains the corresponding heat map. The NVR continuously queries the heat map data and automatically adjusts the position of the correction window after the heat map data is updated, so that the correction window is distributed at a position with a relatively high heat value. Figure 5 FIG. 1 is a schematic diagram of a method for adjusting a monitoring image correction window according to an optional embodiment of the present invention. Figure 5 As shown, taking the correction window of 8 windows as an example, adjust the correction window to a position with high concentration heat, so as to capture more active picture areas more clearly.

[0059] The heat map data format is as follows:

[0060] "Average": 27, "Width": 192, "Height": 160,

[0061] "Points": {"data":[0, 0, 5, 17, 29...]}.

[0062] The image is divided into 192*160 dots, and the data value is the heat value of each dot.

[0063] The position of each correction window is calculated so that each correction window covers the dot matrix area with relatively large heat value as much as possible, while ensuring that the correction window is not too concentrated, so as to maximize the amount of video information monitored in the correction window area.

[0064] Figure 6 FIG. 2 is a flow chart of a method for adjusting a monitoring image correction window according to an optional embodiment of the present invention. Figure 6 As shown, the process of the method for adjusting the monitoring image correction window can be implemented by the following steps:

[0065] Step S601: The intelligent analysis function of the fisheye camera or the intelligent analysis module of the NVR can be used to perform intelligent analysis on the video stream and detect intelligent events, such as face recognition, line intrusion, etc.;

[0066] Step S602: Acquire the location information of the moving target;

[0067] Step S603: adjusting the correction window to the position of the moving target;

[0068] Step S604: Determine whether the smart event is over. If the smart event is over, execute step S605; if the smart event is not over, execute step S602;

[0069] Step S605: Return to the position corresponding to the original correction window.

[0070] Through the present invention, heat map data corresponding to a first target image is obtained, wherein the heat map data is used to indicate the flow of people data corresponding to each position of the target image; the first target image is divided into multiple areas, and the total heat value corresponding to each of the multiple areas is determined according to the heat map data; a target area is determined in the multiple areas according to the multiple total heat values, and a correction window is adjusted to the target area, wherein the correction window is used to adjust the image of the target area, that is, the target area is determined according to the total heat values ​​of the multiple areas, and the correction window is adjusted to the target area. The above technical solution is adopted to solve the problem in the related art that it is necessary to manually adjust the position of the correction window to correct the pixel value of the target area of ​​the target image, and the position of the correction window is automatically adjusted through heat map data analysis, and different correction modes are changed for different actual scenes, so that the position of each correction window is distributed in the area with higher heat value, so as to achieve the best preview effect.

[0071] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0072] In this embodiment, a device for adjusting the monitoring image correction window is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0073] Figure 7 is a structural block diagram of a device for adjusting a monitoring image correction window according to an embodiment of the present invention; Figure 7 As shown, including:

[0074] An acquisition module 72, used to acquire heat map data corresponding to the first target image, wherein the heat map data is used to indicate the flow of people data corresponding to each position of the target image;

[0075] A determination module 74, configured to divide the first target image into a plurality of regions, and determine a total heat value corresponding to each of the plurality of regions according to the heat map data;

[0076] The adjustment module 76 is used to determine a target area among the multiple areas according to the multiple total heat values, and adjust the correction window to the target area, wherein the correction window is used to adjust the image of the target area.

[0077] Through the above module, the heat map data corresponding to the first target image is obtained, wherein the heat map data is used to indicate the traffic data corresponding to each position of the target image; the first target image is divided into multiple areas, and the total heat value corresponding to each of the multiple areas is determined according to the heat map data; the target area is determined in the multiple areas according to the multiple total heat values, and the correction window is adjusted to the target area, wherein the correction window is used to adjust the picture of the target area, that is, the target area is determined according to the total heat values ​​of the multiple areas, and the correction window is adjusted to the target area. The above technical solution is adopted to solve the problem in the related art that it is necessary to manually adjust the position of the correction window to correct the pixel value of the target area of ​​the target image, and automatically adjust the position of the correction window through heat map data analysis, and change different correction modes for different actual scenes, so that the position of each correction window is distributed in the area with higher heat value, so as to achieve the best preview effect.

[0078] In an exemplary embodiment, the determination module is also used to determine multiple first total heat values ​​greater than a first preset threshold among multiple total heat values; determine multiple areas corresponding to the multiple first total heat values, and determine distance information of the multiple areas; when the distance information between the first target area and the second target area is less than a second preset threshold, determine the size relationship between the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area, wherein the multiple areas include: the first target area and the second target area.

[0079] That is to say, multiple first total heat values ​​greater than a first preset threshold and the areas corresponding to the first total heat values ​​are determined, and the distance information of the first target area and the second target area are respectively determined according to the coordinate information; when the distance information of the first target area and the second target area is less than the second preset threshold, the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area are compared, and the target area is determined according to the size relationship between the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area; when the distance information of the first target area and the second target area is greater than the second preset threshold, the first target area and the second target area are used as target areas, and the correction window is adjusted to the first target area and the second target area, wherein the number of correction windows is multiple.

[0080] In another exemplary embodiment, the determination module is also used to sort multiple total heat values ​​from large to small, determine a preset number of first total heat values ​​and the areas corresponding to the first total heat values ​​according to the arrangement order, and respectively determine the distance information of the first target area and the second target area according to the coordinate information; when the distance information of the first target area and the second target area is less than a second preset threshold, compare the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area, and determine the target area according to the size relationship between the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area; when the distance information of the first target area and the second target area is greater than the second preset threshold, use the first target area and the second target area as target areas, and adjust the correction window to the first target area and the second target area, wherein the number of correction windows is multiple, and the preset number is the same as the number of correction windows.

[0081] In an exemplary embodiment, the adjustment module is also used to adjust the correction window to the first target area when the size relationship indicates that the first total heat value corresponding to the first target area is greater than the first total heat value corresponding to the second target area; and adjust the correction window to the second target area when the size relationship indicates that the first total heat value corresponding to the first target area is less than the first total heat value corresponding to the second target area.

[0082] In other words, the magnitude relationship between the first total heat value and the second total heat value is compared, and the correction window is adjusted to the target area corresponding to the higher heat value between the first total heat value and the second total heat value.

[0083] In an exemplary embodiment, the adjustment module is also used to acquire a second target image, wherein the second target image indicates the same area as the first target image; determine whether there is an intelligent event in the second target image, wherein the intelligent event includes at least one of the following: a face recognition event, a tripwire intrusion event; and in the case that there is an intelligent event in the second target image, adjust the correction window according to the intelligent event.

[0084] After the correction window is adjusted to the target area, at the same time, the intelligent analysis function of the fisheye camera or the network video recorder (NVR) supports the intelligent analysis module to perform intelligent analysis on the target image in the video stream. When an intelligent event is detected, such as face recognition, line intrusion, etc., the correction window is adjusted according to the intelligent event.

[0085] In an exemplary embodiment, the adjustment module is further used to determine the target object in the second target image and position information corresponding to the target object; and adjust the correction window to the position corresponding to the target object according to the position information corresponding to the target object.

[0086] Specifically, the target object in the target image and the corresponding coordinate position of the target object are determined, and one of the correction windows is adjusted in real time to continuously track the target, and the target object is kept in the center of the picture as much as possible. In this way, the user can track a coherent and clear video picture.

[0087] In an exemplary embodiment, the acquisition module is further used to acquire the human flow data in the video stream corresponding to the first target image; and to perform statistics on the human flow data to obtain the heat map data corresponding to the first target image.

[0088] The fisheye camera supports heat map statistics, which counts the traffic data in the video stream corresponding to the first target image to obtain the heat map data corresponding to the first target image. The NVR continuously queries the heat map data, and automatically adjusts the position of the correction window after the heat map data is updated, so that the correction window is distributed at a position with a relatively high heat value.

[0089] An embodiment of the present invention further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.

[0090] In an exemplary embodiment, in this embodiment, the above storage medium may be configured to store a computer program for performing the following steps:

[0091] S1, obtaining heat map data corresponding to a first target image, wherein the heat map data is used to indicate the flow of people data corresponding to each position of the target image;

[0092] S2, dividing the first target image into a plurality of regions, and determining a total heat value corresponding to each of the plurality of regions according to the heat map data;

[0093] S3, determining a target area among the multiple areas according to the multiple total heat values, and adjusting a correction window to the target area, wherein the correction window is used to adjust the image of the target area.

[0094] In an exemplary embodiment, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0095] An embodiment of the present invention further provides an electronic device, 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.

[0096] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0097] In an exemplary embodiment, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0098] S1, obtaining heat map data corresponding to a first target image, wherein the heat map data is used to indicate the flow of people data corresponding to each position of the target image;

[0099] S2, dividing the first target image into a plurality of regions, and determining a total heat value corresponding to each of the plurality of regions according to the heat map data;

[0100] S3, determining a target area among the multiple areas according to the multiple total heat values, and adjusting a correction window to the target area, wherein the correction window is used to adjust the image of the target area.

[0101] In an exemplary embodiment, the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0102] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices. In an exemplary embodiment, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0103] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for adjusting a monitoring image correction window, characterized in that: include: Acquire heat map data corresponding to the first target image, wherein the heat map data is used to indicate the flow of people data corresponding to each position of the target image; Dividing the first target image into a plurality of regions, and determining a total heat value corresponding to each of the plurality of regions according to the heat map data; Determine a target area among the multiple areas according to the multiple total heat values, and adjust the correction window to the target area, wherein the correction window is used to adjust the image of the target area; Before determining the target area in multiple areas according to the multiple total heat values, the method includes: determining multiple first total heat values ​​greater than a first preset threshold value in the multiple total heat values; determining multiple areas corresponding to the multiple first total heat values, and determining distance information of the multiple areas; when the distance information between the first target area and the second target area is less than a second preset threshold value, determining the size relationship between the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area, wherein the multiple areas include: the first target area and the second target area; Among them, after determining the size relationship between the first total heat value corresponding to the first target area and the first total heat value corresponding to the second target area, the method also includes: when the size relationship indicates that the first total heat value corresponding to the first target area is greater than the first total heat value corresponding to the second target area, adjusting the correction window to the first target area; when the size relationship indicates that the first total heat value corresponding to the first target area is less than the first total heat value corresponding to the second target area, adjusting the correction window to the second target area.

2. The method for adjusting the monitoring image correction window according to claim 1, characterized in that: After adjusting the correction window to the target area, the method further includes: Acquire a second target image, wherein the second target image and the first target image indicate the same area; Determine whether there is an intelligent event in the second target image, wherein the intelligent event includes at least one of the following: a face recognition event, a tripwire intrusion event; In the case where there is an intelligent event in the second target image, the correction window is adjusted according to the intelligent event.

3. The method for adjusting the monitoring image correction window according to claim 2, characterized in that: When there is an intelligent event in the second target image, adjusting the correction window according to the intelligent event includes: Determine a target object in a second target image and position information corresponding to the target object; The correction window is adjusted to a position corresponding to the target object according to the position information corresponding to the target object.

4. The method for adjusting the monitoring image correction window according to claim 1, characterized in that: Obtaining heat map data corresponding to the first target image, including: Obtaining human flow data in the video stream corresponding to the first target image; The human flow data is counted to obtain heat map data corresponding to the first target image.

5. A device for adjusting a monitoring image correction window, characterized in that: include: An acquisition module, used to acquire heat map data corresponding to the first target image, wherein the heat map data is used to indicate the human flow data corresponding to each position of the target image; a determination module, configured to divide the first target image into a plurality of regions, and determine a total heat value corresponding to each of the plurality of regions according to the heat map data; an adjustment module, configured to determine a target area among the multiple areas according to the multiple total heat values, and adjust a correction window to the target area, wherein the correction window is used to adjust the image of the target area; The determination module is further used to determine a plurality of first total heat values ​​greater than a first preset threshold value among a plurality of total heat values; determine a plurality of regions corresponding to the plurality of first total heat values, and determine distance information of the plurality of regions; and determine a magnitude relationship between a first total heat value corresponding to the first target region and a first total heat value corresponding to the second target region when the distance information between the first target region and the second target region is less than a second preset threshold value, wherein the plurality of regions include: the first target region and the second target region; Among them, the adjustment module is also used to adjust the correction window to the first target area when the size relationship indicates that the first total heat value corresponding to the first target area is greater than the first total heat value corresponding to the second target area; and adjust the correction window to the second target area when the size relationship indicates that the first total heat value corresponding to the first target area is less than the first total heat value corresponding to the second target area.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 4 when executed.

7. 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 execute the method according to any one of claims 1 to 4 through the computer program.