A network-based intelligent visual monitoring and tracking method and system
By obtaining the quality evaluation parameters and pixel change degree of continuous frame images in the night surveillance system, dividing the target area and performing adaptive enhancement, combined with the optical flow method, the problem of fuzzy tracking in the night scene with the full-image enhancement method is solved, and the Clear identification and accurate monitoring of moving objects.
Patent Information
- Application Number
- CN202410918075.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-10
AI Technical Summary
The image enhancement method based on the whole image in the existing technology tends to ignore the overall dark features in night scenes, resulting in blurred display of moving objects and poor monitoring and tracking effects.
By acquiring continuous frames of night surveillance grayscale images, the quality evaluation parameters and pixel change degree are determined, the target area is divided and adaptive image enhancement is performed based on the motion analysis coefficient, and the optical flow method is combined to achieve monitoring and tracking of moving targets.
It improves the recognition clarity of moving objects, avoids over-enhancement, significantly improves monitoring and tracking effects, and ensures accurate tracking of moving objects in night scenes.
Smart Images

Figure CN118470071B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image enhancement, and in particular to a network-based intelligent visual monitoring and tracking method and system. Background Art
[0002] Intelligent monitoring systems have become an important tool in the fields of security, resource management, and production monitoring. By connecting multiple monitoring devices together to achieve information sharing and centralized management, a network monitoring system can be built to achieve automatic identification, tracking, and analysis of targets. However, in night scenes, due to the overall dark image, the images collected by the monitoring equipment will be blurred, and the monitoring and tracking effect of moving objects will be poor.
[0003] In the related art, the image is enhanced and the monitoring and tracking of moving objects is achieved based on the enhanced image combined with the optical flow method. In this way, since the image enhancement in the related art is based on the image enhancement of the whole image, this image enhancement method tends to ignore the features of the overall dark areas in the night scene, resulting in over-enhancement of the moving objects, causing the display effect of the moving objects to be still relatively blurred and the monitoring and tracking effect to be poor. Summary of the invention
[0004] In order to solve the technical problem that the image enhancement based on the whole image in the related art tends to ignore the features with more overall dark parts in the night scene, resulting in over-enhancement of the moving objects, resulting in the display effect of the moving objects being still relatively blurred and the monitoring and tracking effect being poor, the present invention provides a network-based intelligent visual monitoring and tracking method and system, and the technical solutions adopted are specifically as follows:
[0005] The present invention proposes a network-based intelligent visual monitoring and tracking method, the method comprising:
[0006] Acquire continuous frames of night monitoring grayscale images, and determine the quality evaluation parameters of each frame of night monitoring grayscale image according to the grayscale distribution of all pixels in each frame of night monitoring grayscale image;
[0007] The first frame of two consecutive night monitoring grayscale images is used as a comparison image, and the second frame is used as a test image; the pixel change degree of the test image is determined according to the quality evaluation parameters of the comparison image and the test image and the grayscale difference of the pixel points at the same image position;
[0008] Within a preset time sequence range centered at the time corresponding to the image to be tested, all frames of night monitoring grayscale images are used as analysis images, and one pixel point in the image to be tested is selected as the target point; the degree of change characteristics of the target point is determined according to the degree of pixel change between the image to be tested and the comparison image, the grayscale distribution of the target point within the corresponding preset neighborhood range, and the grayscale distribution of the pixel point at the same image position as the target point in the analysis image;
[0009] According to the numerical distribution of the degree of change characteristics of all pixels in the image to be tested, the image to be tested is divided into at least two target areas; according to the degree of change characteristics of all pixels in each target area, a motion analysis coefficient of the target area is determined;
[0010] The image to be tested is enhanced according to the motion analysis coefficients of all target areas to obtain an enhanced image; and the monitoring and tracking of the moving target is achieved according to the enhanced images of all frames.
[0011] Furthermore, the method for obtaining the quality evaluation parameters of the night monitoring grayscale image includes:
[0012] Determine the minimum grayscale value of the pixel points in the same frame of night monitoring grayscale image;
[0013] The difference between the grayscale value of all pixels in the same frame of night monitoring grayscale image and the minimum grayscale value is averaged to obtain the quality evaluation parameters of the corresponding night monitoring grayscale image.
[0014] Furthermore, the method for acquiring the pixel change degree of the image to be tested includes:
[0015] Determine the absolute value of the difference between the quality evaluation parameters of the image to be tested and the comparison image as an evaluation difference index;
[0016] Performing frame difference processing on the comparison image and the image to be tested to obtain a difference image, determining the grayscale values and values of all pixels in the difference image, and obtaining a grayscale change index;
[0017] The pixel change degree is determined according to the evaluation difference index and the grayscale change index, wherein both the evaluation difference index and the grayscale change index are positively correlated with the pixel change degree.
[0018] Furthermore, the method for acquiring the degree of change characteristics of the target point includes:
[0019] Determine the grayscale value difference between the target point in the image to be tested and each pixel point in a preset neighborhood range, and calculate the average value to obtain a neighborhood grayscale difference index;
[0020] The pixel points in all analysis images that are at the same image position as the target point are taken as analysis points, the grayscale value difference between the target point and each analysis point is calculated, and the average value is calculated to obtain the time series grayscale difference index;
[0021] Determine the absolute value of the difference between the pixel change degree of the image to be tested and the comparison image as the pixel change difference index of the image to be tested;
[0022] The degree of change characteristics of the target point is determined by combining the neighborhood grayscale difference index, the temporal grayscale difference index and the pixel change difference index, wherein the pixel change difference index is negatively correlated with the degree of change characteristics, and the temporal grayscale difference index and the neighborhood grayscale difference index are positively correlated with the degree of change characteristics.
[0023] Furthermore, the image to be tested is divided into at least two target areas, including:
[0024] Based on the DBSCAN density clustering algorithm, clustering is performed according to the degree of change characteristics of all pixels in the image to be tested to obtain clusters, and each cluster is used as a target area.
[0025] Furthermore, the method for obtaining the motion analysis coefficient includes:
[0026] The mean of the degree of change characteristics of all pixels in the same target area is calculated as the motion analysis coefficient of the corresponding target area.
[0027] Furthermore, the image to be tested is enhanced according to the motion analysis coefficients of all target areas to obtain an enhanced image, including:
[0028] Filtering a moving area from the target area according to the moving analysis coefficient;
[0029] The motion analysis coefficient is used as an image enhancement weight, and image enhancement processing is performed on the motion region to obtain an enhanced region. All motion regions are traversed to obtain an enhanced image.
[0030] Furthermore, the method for obtaining the moving area includes:
[0031] The target area whose movement analysis coefficient is greater than a preset coefficient threshold is taken as the movement area.
[0032] Furthermore, the monitoring and tracking of the moving target is realized according to the enhanced images of all frames, including:
[0033] Based on the optical flow method, optical flow analysis is performed on the enhanced images of all frames, and the movement trajectory of the moving target is determined according to the analysis results.
[0034] In a second aspect, the present invention also provides a network-based intelligent visual monitoring and tracking system, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of a network-based intelligent visual monitoring and tracking method as described in any one of the foregoing items when executing the computer program.
[0035] The present invention has the following beneficial effects:
[0036] The present invention obtains continuous frames of night monitoring grayscale images to determine the quality evaluation parameters of each frame of night monitoring grayscale images; the quality evaluation parameters can accurately characterize the grayscale distribution of the night monitoring grayscale images, and realize reliable grayscale distribution analysis. Determine a comparison image and a test image; determine the pixel change degree of the test image according to the quality evaluation parameters of the comparison image and the test image and the grayscale difference of the pixel points at the same image position; the pixel change degree characterizes the instantaneous pixel change of the test image. Determine an analysis image and a target point; and then determine the change characteristic degree of the target point; since the change characteristic is a combination of the change of the analysis image and the pixel change degree of the test image, it is possible to realize image change analysis in multiple dimensions of time sequence and space, and then assign the change characteristics in time sequence to the pixel points in the test image, so as to obtain the target area by combining the numerical distribution of the change characteristic degree of all pixel points; and determine the motion analysis coefficient of the target area; by characterizing the movement in time sequence on the corresponding pixel points, the area with the same motion characteristics can be accurately identified, and then more reliable motion analysis can be realized. Finally, the image to be tested is enhanced according to the motion analysis coefficients of all target areas to obtain an enhanced image; the monitoring and tracking of moving targets is achieved based on the enhanced images of all frames. Since the same target area represents similar motion features, that is, it is more likely to represent a complete moving individual, the target area is adaptively enhanced to achieve effective enhancement of moving objects, while eliminating the influence of the overall darkness of the night on the moving objects, it is clearly distinguished from the background area, avoiding over-enhancement, making the texture effect of the moving object in the enhanced image clearer, thereby effectively improving the recognition of moving objects and enhancing the monitoring and tracking effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1A flow chart of a network-based intelligent visual monitoring and tracking method provided by one embodiment of the present invention;
[0039] Figure 2 A schematic diagram of a night scene provided by an embodiment of the present invention;
[0040] Figure 3 A flowchart of a method for obtaining a pixel change degree provided by an embodiment of the present invention;
[0041] Figure 4 A flow chart of a method for obtaining a degree of change characteristic of a target point provided by an embodiment of the present invention;
[0042] Figure 5 A structural diagram of a network-based intelligent visual monitoring and tracking system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation, structure, features and effects of a network intelligent visual monitoring and tracking method and system proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0044] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0045] The specific scheme of the network intelligent visual monitoring and tracking method provided by the present invention is described in detail below with reference to the accompanying drawings.
[0046] See also Figure 1 , which shows a flow chart of a network-based intelligent visual monitoring and tracking method provided by an embodiment of the present invention, the method comprising:
[0047] S101: Acquire continuous frames of night monitoring grayscale images, and determine the quality evaluation parameters of each frame of night monitoring grayscale image according to the grayscale distribution of all pixels in each frame of night monitoring grayscale image.
[0048] The embodiments of the present invention can be configured with monitoring equipment for monitoring roads, factory areas, parks and other areas. It should be noted that since the monitoring equipment is usually a static monitoring equipment, it cannot meet the real-time monitoring requirements for large-scale and complex scenes. Therefore, a network monitoring system can be built to connect multiple monitoring equipment together to achieve information sharing and centralized management, and realize automatic identification, tracking and analysis of moving objects.
[0049] In the embodiment of the present invention, the moving object may be, for example, a moving animal, a car, a moving mechanical part, etc., without limitation thereto.
[0050] It should be noted that a specific implementation scenario of the embodiment of the present invention is a night scene. Figure 2 Conduct analysis, Figure 2 This is a schematic diagram of a night scene provided by an embodiment of the present invention; in a night scene, due to the dim light, when the difference between the moving object and the background is small, the monitoring screen cannot be accurately identified, which will cause the moving object tracking to disappear, so it is necessary to enhance the night monitoring video image. Image enhancement in related technologies is based on full-image image enhancement. This image enhancement method easily ignores the overall dark features, resulting in over-enhancement of the moving object.
[0051] Among them, the continuous frame night monitoring grayscale image is the image information generated by the monitoring equipment. The original image of the continuous frame can be acquired at a speed of 30 frames per second, and then the original image is preprocessed to obtain the night monitoring grayscale image.
[0052] The image preprocessing in the embodiments of the present invention may specifically include, for example, image denoising, image grayscale processing, and semantic segmentation and other preprocessing methods, wherein the image denoising may specifically include, for example, mean denoising, and the image grayscale processing may specifically include, for example, mean grayscale processing. Of course, in other embodiments of the present invention, the technical means used for preprocessing may also be adjusted as needed to meet the actual usage scenarios, and no further elaboration or limitation is given for this.
[0053] Among them, the quality assessment coefficient is the quality evaluation of the corresponding night monitoring grayscale image. The quality assessment coefficient can be used to quantify the image quality of the night monitoring image, and the grayscale distribution in the night monitoring grayscale image is the evaluation standard for achieving image quality quantification.
[0054] Furthermore, in some embodiments of the present invention, a method for obtaining quality evaluation parameters of a night monitoring grayscale image includes: determining the minimum grayscale value of pixels in the same frame of the night monitoring grayscale image; averaging the difference between the grayscale value of all pixels in the same frame of the night monitoring grayscale image and the minimum grayscale value to obtain the quality evaluation parameters of the corresponding night monitoring grayscale image.
[0055] Among them, the minimum grayscale value is the grayscale feature of the darkest pixel in the night monitoring grayscale image. The more bright information in the night monitoring grayscale image and the more obvious the bright texture, the better the quality of image analysis for the night monitoring grayscale image, that is, the image has a better quality assessment effect.
[0056] In an embodiment of the present invention, the difference between the grayscale value of a pixel and the minimum grayscale value is calculated, and the difference is used as the bright part information of the corresponding pixel. That is, the larger the difference is, the brighter the texture corresponding to the pixel is. Thus, the average of the differences corresponding to all pixels is calculated as the overall bright part information, and the quality evaluation parameters of the corresponding night monitoring grayscale image are obtained.
[0057] Of course, in other embodiments of the present invention, the above-mentioned mean and the grayscale value variance of all pixels can also be forward fused to further characterize the texture distribution of the image. The larger the variance, the more obvious the image texture distribution is, that is, the better the quality is. Therefore, the mean obtained by averaging the difference between the grayscale value of all pixels and the minimum grayscale value, and the product of the grayscale value variance of all pixels are used as the quality evaluation effect.
[0058] S102: taking the first frame of two consecutive night monitoring grayscale images as a comparison image and the second frame as a test image; determining the degree of pixel change of the test image according to the quality evaluation parameters of the comparison image and the test image and the grayscale difference of pixels at the same image position.
[0059] Among them, since the main purpose of the embodiment of the present invention is to realize the monitoring and tracking of moving objects, it is necessary to perform specific analysis on the night monitoring grayscale images of adjacent frames. It should be noted that since the overall monitoring process is a continuous process, when the present invention performs neighborhood analysis later, each corresponding night monitoring grayscale image has its neighborhood image in time sequence.
[0060] In the embodiment of the present invention, two consecutive frames (the tth frame and the t-1th frame, t is a positive integer and t>1) of night monitoring grayscale images can be set, and the t-1th frame is used as a comparison image and the tth frame is used as a test image.
[0061] In the embodiment of the present invention, since the comparison image and the image to be tested are two adjacent frames of night monitoring grayscale images, that is, the changes in the image are moving objects, the degree of pixel change of the image to be tested itself is analyzed by comparing the quality evaluation parameters of the comparison image and the image to be tested and the grayscale difference of pixels at the same image position.
[0062] Among them, the degree of pixel change represents the change of pixel points between the image to be tested and the comparison image. Since the comparison image and the image to be tested are two adjacent frames of night monitoring grayscale images, their changes can be regarded as instantaneous changes. The greater the degree of pixel change, the greater the instantaneous change feature. Compared with the comparison image, the moving object in the image to be tested produces a larger instantaneous displacement.
[0063] Further, in some embodiments of the present invention, in combination Figure 3 , Figure 3A flowchart of a method for obtaining pixel change degree provided by an embodiment of the present invention; comprising:
[0064] S301: Determine the absolute value of the difference between the quality evaluation parameters of the image to be tested and the comparison image as an evaluation difference index.
[0065] The evaluation difference index is the absolute value of the difference between the quality evaluation parameters of the image to be tested and the comparison image. The larger the evaluation difference index is, the greater the difference between the quality evaluation parameters of the image to be tested and the comparison image is.
[0066] In an embodiment of the present invention, a large difference in quality evaluation parameters appears in two consecutive frames of night surveillance grayscale images, indicating that a large scene change occurs in the overall background of the corresponding two consecutive frames of night surveillance grayscale images, such as a change in lighting, a mode adjustment of the shooting device itself, etc.
[0067] S302: Perform frame difference processing on the comparison image and the image to be tested to obtain a difference image, determine the grayscale values and values of all pixels in the difference image, and obtain a grayscale change index.
[0068] Among them, frame difference processing is an image difference method well known to technicians in this field. It overlaps two different images, calculates the absolute value of the difference between the overlapping pixels, and obtains a differential image. The differential image can specifically represent the grayscale difference of the pixels at the same position between the two frames of images.
[0069] Among them, the grayscale value of the pixel in the differential image, that is, the absolute value of the grayscale difference between the pixel at the same position of the image to be tested and the comparison image. It should be noted that the larger the absolute value of the grayscale difference, the more obvious the change in the pixel from the comparison image to the image to be tested.
[0070] In the embodiment of the present invention, the grayscale change index is obtained by calculating the grayscale value and value of all pixels in the differential image. The larger the grayscale change index is, the greater the overall image change from the comparison image to the image to be tested is.
[0071] S303: Determine the pixel change degree according to the evaluation difference index and the grayscale change index, wherein the evaluation difference index and the grayscale change index are both positively correlated with the pixel change degree.
[0072] It is understandable that when the difference in quality evaluation parameters is large, it means that the overall background of two consecutive frames has a large scene change. When the grayscale change index is larger, it means that the overall image change from the comparison image to the image to be tested is larger.
[0073] Therefore, the embodiment of the present invention can combine the evaluation difference index and the grayscale change index to achieve a specific analysis of the degree of pixel change.
[0074] Among them, a positive correlation means that the dependent variable will increase as the independent variable increases, and the dependent variable will decrease as the independent variable decreases. The specific relationship can be a multiplication relationship, an addition relationship, or the power of an exponential function, which is determined by actual application; a negative correlation means that the dependent variable will decrease as the independent variable increases, and the dependent variable will increase as the independent variable decreases. It can be a subtraction relationship, a division relationship, etc., which is determined by actual application.
[0075] Therefore, the present invention can first normalize the evaluation difference index and the grayscale change index respectively, and then multiply the normalized values to obtain the pixel change degree. Alternatively, the product of the evaluation difference index and the grayscale change index can be directly calculated to obtain the pixel change degree, or the sum of the evaluation difference index and the grayscale change index can be calculated to obtain the pixel change degree, that is, when the values of the evaluation difference index and the grayscale change index are larger, the corresponding pixel change degree value becomes larger accordingly, and the specific positive correlation steps are not limited.
[0076] The embodiment of the present invention combines the evaluation difference index and the grayscale change index to analyze the degree of pixel change, and can accurately characterize the change of the image to be tested in adjacent frames, thereby performing effective change analysis on the image to be tested.
[0077] S103: Within a preset time range centered at the moment corresponding to the image to be tested, all frames of night monitoring grayscale images are used as analysis images, and a pixel point in the image to be tested is selected as the target point; the degree of change of the target point's characteristics is determined based on the degree of pixel change between the image to be tested and the comparison image, the grayscale distribution of the target point within the corresponding preset neighborhood range, and the grayscale distribution of the pixel point at the same image position as the target point in the analysis image.
[0078] Among them, the preset timing range can be a range of 1 second before and after the image to be tested as the center, that is, the corresponding 2 seconds are used as the preset timing range of the image to be tested, and all frames of night monitoring grayscale images collected within the corresponding 2 seconds are used as analysis images to conduct specific analysis of long-term changes in timing.
[0079] The embodiment of the present invention can perform analysis from the image position dimension, and optionally select a pixel point in the image to be tested as the target point.
[0080] Further, in some embodiments of the present invention, in combination Figure 4 , Figure 4 A flow chart of a method for obtaining a degree of change characteristic of a target point provided by an embodiment of the present invention; comprising:
[0081] S401: Determine the grayscale value differences between the target point in the image to be tested and each pixel point in a preset neighborhood, and calculate the average value to obtain a neighborhood grayscale difference index.
[0082] The preset neighborhood range is the position range of the target point in the image to be measured. The preset neighborhood range in the embodiment of the present invention may specifically be, for example, a pixel point range of 7×7 centered on the target point.
[0083] It is understandable that since the overall grayscale distribution of night scenes tends to be dark, the difference between the moving object and the background is small, so the features of the moving object will be lost during the pixel tracking process, that is, the difference between the pixel points corresponding to the moving object and the surrounding neighborhood points is small, resulting in confusion. When the corresponding target point has a large grayscale difference with the pixel points within its preset neighborhood range, it means that the recognition effect is better within the local range where the target point is located, and the reliability is stronger in subsequent motion analysis.
[0084] Therefore, the present invention calculates the grayscale value difference between the target point and each pixel point in the preset neighborhood range, and takes the mean of all grayscale value differences as the neighborhood grayscale difference index of the target point. The larger the value of the neighborhood grayscale difference index, the more obvious the local internal texture distribution of the target point is.
[0085] S402: taking the pixel points in all analysis images that are at the same image position as the target point as the analysis points, calculating the grayscale value difference between the target point and each analysis point, and averaging the values to obtain a time series grayscale difference index.
[0086] The analysis point is determined from the analysis image, and the analysis point is a pixel point at the same image position as the target point, and each analysis image has one analysis point.
[0087] In the embodiment of the present invention, the absolute value of the difference between the grayscale value of the target point and each analysis point is calculated, and the absolute value of the difference of all grayscale values is averaged to obtain the time series grayscale difference index. The time series grayscale difference index can represent the grayscale change of the target point in the corresponding time series range. The larger the value of the time series grayscale difference index, the greater the grayscale change of the target point in the corresponding preset time series range.
[0088] S403: Determine the absolute value of the difference between the pixel change degrees of the image to be tested and the comparison image as the pixel change difference index of the image to be tested.
[0089] In the embodiment of the present invention, the absolute value of the difference between the pixel change degrees of the image to be tested and the comparison image represents the difference between the pixel change degrees of the image to be tested and the comparison image. The larger the pixel change difference index is, the more likely it is that the pixel change is caused by background changes (such as the background vehicle suddenly turning on the lights). Therefore, it is used as a weight here, that is, the larger the value of the pixel change difference index is, the more likely it is that the background change is causing the impact.
[0090] S404: Determine the degree of change characteristics of the target point by combining the neighborhood grayscale difference index, the time series grayscale difference index and the pixel change difference index.
[0091] Among them, the neighborhood grayscale difference index represents the distribution characteristics in the spatial dimension, and the temporal grayscale difference index represents the change characteristics in the time dimension. Therefore, the temporal grayscale difference index and the neighborhood grayscale difference index are positively correlated with the degree of change characteristics. Since the larger the value of the pixel change difference index, the more likely it is that the background change has an impact, therefore, the pixel change difference index is negatively correlated with the degree of change characteristics.
[0092] In the embodiment of the present invention, the product of the time series grayscale difference index and the neighborhood grayscale difference index may be calculated, and the ratio of the product to the pixel change difference index may be used as the change feature degree.
[0093] The embodiments of the present invention can analyze each pixel in the image to be tested in the spatial dimension and the temporal dimension by combining the neighborhood grayscale difference index, the temporal grayscale difference index and the pixel change difference index, thereby achieving a more accurate and effective change feature analysis based on the temporal changes and spatial distribution of each pixel in combination with the scene changes of the image to be tested itself, so that the degree of change characteristics of the target point itself can more accurately and objectively characterize the changes at the target point position.
[0094] S104: Divide the image to be tested into at least two target areas according to the numerical distribution of the degree of change characteristics of all pixels in the image to be tested; and determine the motion analysis coefficient of the target area according to the degree of change characteristics of all pixels in each target area.
[0095] The degree of change characteristic represents the change in the position of the target point, that is, the closer the values of the degree of change characteristic are and the closer the position distribution is, the more likely they are to belong to the same object and be in the same moving state.
[0096] Furthermore, in some embodiments of the present invention, the image to be tested is divided into at least two target areas, including: based on the DBSCAN density clustering algorithm, clustering is performed according to the degree of change characteristics of all pixels in the image to be tested to obtain clusters, and each cluster is used as a target area.
[0097] The DBSCAN density clustering algorithm is a well-known algorithm in the art. It uses the numerical value of the pixel point as the numerical feature of density clustering, and then clusters all the pixel points in the image to be tested to obtain clusters, and all the pixel points contained in each cluster are combined into a target area.
[0098] The present invention aims to treat pixel points that are close to each other and have similar degrees of change characteristics as a target area. Of course, in other embodiments of the present invention, the region growing method can also be used, and the degree of change characteristics can be used as a judgment indicator for region growing. All images to be tested can be traversed to achieve region division and obtain multiple target areas.
[0099] In the embodiment of the present invention, the same target area refers to an area with desired grayscale characteristics and similar motion characteristics. After the target area is confirmed, the change analysis of the target area itself can be implemented according to the degree of change characteristics of all pixels in the target area.
[0100] Furthermore, in some embodiments of the present invention, the method for obtaining the motion analysis coefficient includes: calculating the average of the degree of change characteristics of all pixels in the same target area as the motion analysis coefficient of the corresponding target area.
[0101] That is, the larger the mean value of the change characteristics of all pixels in the target area, that is, the larger the motion analysis coefficient, the more obvious the change in the target area itself is, and the more a higher intensity enhancement effect is needed to improve the distinction from the background and achieve a clear display effect.
[0102] S105: performing image enhancement on the image to be tested according to all target area motion analysis coefficients to obtain an enhanced image; and implementing monitoring and tracking of the moving target according to the enhanced images of all frames.
[0103] In the embodiments of the present invention, the larger the motion analysis coefficient is, the more obvious the change in the target area itself is, and the more a higher intensity enhancement effect is needed to achieve a clear display effect. Therefore, in some embodiments of the present invention, the motion analysis coefficient can be directly used as a weight for image enhancement of the corresponding target area to achieve image enhancement analysis.
[0104] Optionally, in some other embodiments of the present invention, the moving area can be screened from the target area according to the motion analysis coefficient; the motion analysis coefficient is used as an image enhancement weight, the moving area is subjected to image enhancement processing to obtain an enhanced area, and all the moving areas are traversed to obtain an enhanced image.
[0105] In other words, by screening out the moving areas, the efficiency of image enhancement can be improved by avoiding analyzing the background areas where the motion is not obvious or does not occur at all.
[0106] In the embodiment of the present invention, the image enhancement method may be specifically, for example, a gamma transform, and its corresponding data expression is:
[0107]
[0108] In the formula, Represents the gray value of a pixel in the moving area after image enhancement. Represents the gray value of the corresponding pixel before image enhancement. Represents the image enhancement weight, that is, the motion analysis coefficient, Indicates that Linearly map to the range [0,255] and round up.
[0109] The embodiment of the present invention can perform a stronger image enhancement effect on the region with a larger motion analysis coefficient value through gamma transformation, thereby ensuring its clarity, and at the same time effectively distinguish it from the background region, thereby enhancing the overall display effect of the image to be tested.
[0110] Furthermore, in some embodiments of the present invention, monitoring and tracking of mobile targets are achieved based on enhanced images of all frames, including: performing optical flow analysis on enhanced images of all frames based on an optical flow method, and determining the movement trajectory of the mobile target based on the analysis results.
[0111] Among them, the optical flow method is a method that can effectively analyze the direction of movement of an object and realize target tracking. In an embodiment of the present invention, image enhancement can be performed on all frames of night monitoring grayscale images based on the above method to obtain enhanced images corresponding to each frame, and then, the optical flow method is used to perform optical flow analysis on each frame of the enhanced image in the time sequence, so as to determine the moving target and the movement trajectory of the moving target in the time sequence corresponding to all frames of night monitoring grayscale images.
[0112] Of course, the embodiment of the present invention can also use a variety of other timing analyses to determine the moving target and the motion trajectory corresponding to the moving target. The embodiment of the present invention aims to adaptively enhance the image display effect caused by the dim scene at night, so that the display effect of the moving target is clearer, thereby achieving a more accurate and stable target monitoring and tracking effect.
[0113] The present invention obtains continuous frames of night monitoring grayscale images to determine the quality evaluation parameters of each frame of night monitoring grayscale images; the quality evaluation parameters can accurately characterize the grayscale distribution of the night monitoring grayscale images, and realize reliable grayscale distribution analysis. Determine a comparison image and a test image; determine the pixel change degree of the test image according to the quality evaluation parameters of the comparison image and the test image and the grayscale difference of the pixel points at the same image position; the pixel change degree characterizes the instantaneous pixel change of the test image. Determine an analysis image and a target point; and then determine the change characteristic degree of the target point; since the change characteristic is a combination of the change of the analysis image and the pixel change degree of the test image, it is possible to realize the image change analysis in multiple dimensions of time sequence and space, and then assign the change characteristics in the time sequence to the pixel points in the image, so as to obtain the target area by combining the numerical distribution of the change characteristic degree of all pixel points; and determine the motion analysis coefficient of the target area; by characterizing the movement in the time sequence on the corresponding pixel points, the area with the same motion characteristics can be accurately identified, and then more reliable motion analysis can be realized. Finally, the image to be tested is enhanced according to the motion analysis coefficients of all target areas to obtain an enhanced image; the monitoring and tracking of moving targets is achieved based on the enhanced images of all frames. Since the same target area represents similar motion features, that is, it is more likely to represent a complete individual, the target area is adaptively enhanced to achieve effective enhancement of moving objects, while eliminating the influence of the overall darkness of the night on the moving objects, it is clearly distinguished from the background area, avoiding over-enhancement, making the texture effect of the moving object in the enhanced image clearer, thereby effectively improving the recognition of moving objects and enhancing the monitoring and tracking effect.
[0114] The present invention also provides a network-based intelligent visual monitoring and tracking system, see Figure 5 , Figure 5 A structural diagram of a network-based intelligent visual monitoring and tracking system provided for an embodiment of the present invention, wherein the system 600 includes a memory 601, a processor 602, and a computer program 603 stored in the memory 601 and executable on the processor 602, and when the processor 602 executes the computer program 603, the steps of the aforementioned network-based intelligent visual monitoring and tracking method are implemented.
[0115] This embodiment also provides a computer-readable storage medium, which stores computer program code. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement a network-based intelligent visual monitoring and tracking method provided by the above embodiment.
[0116] This embodiment also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement a network-based intelligent visual monitoring and tracking method provided by the above-mentioned embodiment.
[0117] Among them, the system, computer-readable storage medium or computer program product provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0118] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0119] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A network-based intelligent visual monitoring and tracking method, characterized in that: The method comprises: Acquire continuous frames of night monitoring grayscale images, and determine the quality evaluation parameters of each frame of night monitoring grayscale image according to the grayscale distribution of all pixels in each frame of night monitoring grayscale image; The first frame of two consecutive night monitoring grayscale images is used as a comparison image, and the second frame is used as a test image; the pixel change degree of the test image is determined according to the quality evaluation parameters of the comparison image and the test image and the grayscale difference of the pixel points at the same image position; Within a preset time sequence range centered at the time corresponding to the image to be tested, all frames of night monitoring grayscale images are used as analysis images; a pixel point in the image to be tested is selected as a target point; the degree of change characteristics of the target point is determined according to the degree of pixel change between the image to be tested and the comparison image, the grayscale distribution of the target point within the corresponding preset neighborhood range, and the grayscale distribution of the pixel point at the same image position as the target point in the analysis image; According to the numerical distribution of the degree of change characteristics of all pixels in the image to be tested, the image to be tested is divided into at least two target areas; according to the degree of change characteristics of all pixels in each target area, a motion analysis coefficient of the target area is determined; Performing image enhancement on the image to be tested according to the motion analysis coefficients of all target areas to obtain an enhanced image; and monitoring and tracking the moving target according to the enhanced images of all frames; The method for obtaining the quality evaluation parameters of the night monitoring grayscale image comprises: Determine the minimum grayscale value of the pixel points in the same frame of night monitoring grayscale image; The difference between the grayscale value of all pixels in the same frame of night monitoring grayscale image and the minimum grayscale value is averaged to obtain the quality evaluation parameter of the corresponding night monitoring grayscale image; The method for acquiring the pixel change degree of the image to be tested comprises: Determine the absolute value of the difference between the quality evaluation parameters of the image to be tested and the comparison image as an evaluation difference index; Performing frame difference processing on the comparison image and the image to be tested to obtain a difference image, determining the grayscale values and values of all pixels in the difference image, and obtaining a grayscale change index; Determining the pixel change degree according to the evaluation difference index and the grayscale change index, wherein both the evaluation difference index and the grayscale change index are positively correlated with the pixel change degree; The method for obtaining the degree of change characteristics of the target point includes: Determine the grayscale value difference between the target point in the image to be tested and each pixel point in a preset neighborhood range, and calculate the average value to obtain a neighborhood grayscale difference index; The pixel points in all analysis images that are at the same image position as the target point are taken as analysis points, the grayscale value difference between the target point and each analysis point is calculated, and the average value is calculated to obtain the time series grayscale difference index; Determine the absolute value of the difference between the pixel change degree of the image to be tested and the comparison image as the pixel change difference index of the image to be tested; The change characteristic degree of the target point is determined by combining the neighborhood grayscale difference index, the time series grayscale difference index and the pixel change difference index, wherein the pixel change difference index is negatively correlated with the change characteristic degree, and the time series grayscale difference index and the neighborhood grayscale difference index are positively correlated with the change characteristic degree; wherein the product of the time series grayscale difference index and the neighborhood grayscale difference index is calculated, and the ratio of the product to the pixel change difference index is used as the change characteristic degree; The method for obtaining the motion analysis coefficient comprises: The mean of the degree of change characteristics of all pixels in the same target area is calculated as the motion analysis coefficient of the corresponding target area.
2. A network-based intelligent visual monitoring and tracking method as claimed in claim 1, characterized in that: Dividing the image to be tested into at least two target areas, including: Based on the DBSCAN density clustering algorithm, clustering is performed according to the degree of change characteristics of all pixels in the image to be tested to obtain clusters, and each cluster is used as a target area.
3. The network-based intelligent visual monitoring and tracking method according to claim 1, characterized in that: The step of performing image enhancement on the image to be tested according to the motion analysis coefficients of all target areas to obtain an enhanced image includes: Filtering a moving area from the target area according to the moving analysis coefficient; The motion analysis coefficient is used as an image enhancement weight, and image enhancement processing is performed on the motion region to obtain an enhanced region. All motion regions are traversed to obtain an enhanced image.
4. A network-based intelligent visual monitoring and tracking method as claimed in claim 3, characterized in that: The method for obtaining the moving area includes: The target area whose movement analysis coefficient is greater than a preset coefficient threshold is taken as the movement area.
5. The method for network-based intelligent visual monitoring and tracking as claimed in claim 1, characterized in that: The monitoring and tracking of the moving target is realized according to the enhanced images of all frames, including: Based on the optical flow method, optical flow analysis is performed on the enhanced images of all frames, and the movement trajectory of the moving target is determined according to the analysis results.
6. A network-based intelligent visual monitoring and tracking system, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
