A video intelligent analysis method and system

Through adaptive Gaussian filtering and image enhancement algorithms, combined with multi-feature spatio-temporal fusion and classification recognition algorithms, the problems of video noise reduction and feature extraction are solved, and the fidelity of video details and classification recognition are improved.

CN118570708BActive Publication Date: 2024-10-25ZIBO SICHUANG INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411053670.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-25
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

The traditional Gaussian filter can easily lead to the loss of details and edge information and uneven color distribution when reducing video noise. It is also difficult for existing feature extraction methods to capture dynamic changes and static features, and the classification and recognition accuracy is not high.

Method used

The adaptive Gaussian filter algorithm and adaptive image enhancement algorithm are used for video preprocessing, combined with the multi-feature spatio-temporal fusion algorithm and classification recognition algorithm, the video details and edge information are retained through the adaptive Gaussian filter, and the multi-feature spatio-temporal fusion algorithm is used to capture the video time series and spatial information, and consider the interrelationship between features through classification and recognition algorithms.

Benefits of technology

Effectively retain video details and edge information, improve video clarity and color naturalness, fully reflect video information, and improve the accuracy and stability of classification and recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570708B_ABST
    Figure CN118570708B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of video analysis technology, and discloses a video intelligent analysis method and system, the method comprising: using a video acquisition device to acquire a video to obtain a camera video; performing noise reduction and image enhancement preprocessing on the camera video to obtain a video frame after noise reduction and image enhancement; using a multi-feature spatiotemporal fusion algorithm to fuse the video frame to obtain a comprehensive feature vector, and based on the comprehensive feature vector, using a classification recognition algorithm to calculate a video classification recognition result. The present invention can retain the details and edge information of the video frame, improve the clarity and detail fidelity of the video; ensure the naturalness and consistency of the color of the video frame; can fully and accurately reflect the important information in the video, and improve the accuracy of subsequent classification recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video analysis, and in particular to a video intelligent analysis method and system. Background Art

[0002] With the popularization of video equipment and monitoring systems, the amount of video data has exploded. Traditional human analysis can no longer cope with the processing needs of massive data. Therefore, video intelligent analysis methods have emerged. Video intelligent analysis methods use machine learning and deep learning technologies to automatically identify, analyze and understand images and behaviors in videos, thereby achieving real-time monitoring and decision support for complex scenes. With the continuous development of deep learning technology and the continuous expansion of application scenarios, video intelligent analysis technology will continue to usher in new development opportunities and bring more convenience and security to people's lives and work.

[0003] my country's patent application number: CN202311293558.9, publication date: 2023.11.10, discloses a video analysis method and system based on artificial intelligence, obtains multiple video analysis tasks, extracts the initial monitoring video shot by the corresponding camera in the video analysis task, preprocesses the initial monitoring video, and obtains the video to be analyzed; obtains the tracking target in the video analysis task, and identifies and processes the video to be analyzed based on the tracking target to determine the target analysis object; segments the image data to be processed containing the target analysis object from the video to be analyzed, wherein the image data to be processed includes the video data to be analyzed and / or the image data to be processed; inputs the image data to be processed into the task analysis model, performs behavior analysis on the target analysis object in the image data to be processed through the task analysis model, and outputs the analysis result corresponding to the video analysis task by the task analysis model; the present invention realizes targeted analysis of videos based on artificial intelligence technology and improves the efficiency of video analysis.

[0004] However, the above technology has at least the following technical problems: the traditional Gaussian filter is prone to cause the loss of video image details and edge information when processing video noise reduction; it is easy to make the color distribution of the video frame become uneven when enhancing video details, resulting in poor visual effects; the existing feature extraction method is difficult to fully capture the dynamic changes and static features in the video; the classification and recognition process only considers the independent contribution of a single feature and ignores the relationship between features, resulting in low classification and recognition accuracy. Summary of the invention

[0005] The embodiments of the present invention provide a video intelligent analysis method and system to solve the above technical problems in the prior art.

[0006] In order to have a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not a general review, nor is it intended to identify key / important components or to describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a prelude to the detailed description that follows.

[0007] According to a first aspect of an embodiment of the present invention, a video intelligent analysis method is provided.

[0008] In one embodiment, the video intelligent analysis method includes:

[0009] Use a video acquisition device to capture video to obtain a camera video;

[0010] Performing noise reduction and image enhancement preprocessing on the camera video to obtain a video frame after noise reduction and image enhancement;

[0011] The video frames are fused using a multi-feature spatiotemporal fusion algorithm to obtain a comprehensive feature vector, and based on the comprehensive feature vector, a classification and recognition algorithm is used to calculate and obtain a video classification and recognition result.

[0012] In one embodiment, performing noise reduction preprocessing on the camera video to obtain a noise-reduced video frame includes:

[0013] Performing adaptive Gaussian filtering noise reduction processing on the camera video using an adaptive Gaussian filtering algorithm, and calculating pixel values ​​after adaptive Gaussian filtering to obtain a video frame after adaptive Gaussian filtering noise reduction;

[0014] The calculation formula of the adaptive Gaussian filtering algorithm is:

[0015] ;

[0016] In the formula, Represents the first Video frames at position The pixel value at ; Represents the double summation symbol, calculating the weighted sum of pixels; Represents half the size of the Gaussian filter, and defines the range of the Gaussian filter as , determines the pixel range covered by the Gaussian filter; Indicates Video frames at position The pixel value at ; Indicates the horizontal coordinate of the pixel; Indicates the vertical coordinate of the pixel; Indicates the offset of the horizontal coordinate of the pixel point; Indicates the offset of the vertical coordinate of the pixel; Represents the basic weight of the Gaussian filter, which determines the weight of the pixel in the filtering process; It represents the standard deviation of the Gaussian filter, controls the expansion range of the Gaussian filter, and determines the blur degree of the Gaussian filter; Indicates Video frames at position The gradient amplitude at The local edge strength of each video frame is used to adaptively adjust the weight of the Gaussian filter, which is calculated by the Sobel operator. represents the adjustment parameter, which is used to control the influence of the gradient amplitude on the filter weight; represents the hyperbolic tangent function.

[0017] In one embodiment, performing image enhancement preprocessing on the camera video to obtain an image-enhanced video frame includes:

[0018] Based on the video frame after denoising by adaptive Gaussian filtering, an adaptive image enhancement algorithm is used to calculate the enhanced pixel value to obtain the enhanced video frame;

[0019] Wherein, the calculation formula of the adaptive image enhancement algorithm is:

[0020] ;

[0021] In the formula, Indicates the enhanced Video frames at coordinates The pixel value at ; Represents the first Video frames at position The pixel value at ; Represents a logarithmic transformation, which is used to compress the dynamic range of high-brightness areas while stretching the details of low-brightness areas; Represents color fidelity adjustment, which is used to ensure the naturalness and consistency of video frame colors and avoid color distortion; Represents a sine function that generates periodic changes and is used to adjust the brightness and contrast of image colors; Represents the period of the sine function to ensure periodic changes; Indicates the adjustment period, controls the period length of the sine function, and affects the frequency of color adjustment; represents the sum of pixel positions, used to generate periodic modulation that varies with position; Represents the color fidelity adjustment parameter, which controls the intensity of color adjustment.

[0022] In one embodiment, the calculation formula of the multi-feature spatiotemporal fusion algorithm is:

[0023] ;

[0024] ;

[0025] In the formula, represents the comprehensive feature vector; represents the summation symbol; Indicates the number of video frames; Indicates the enhanced The temporal rate of change of video frames; Indicates The timestamp of each video frame; Indicates The first video frame Class characteristics; represents the summation symbol; Indicates the number of feature categories; represents the spatiotemporal fusion factor; Indicates The timestamp of each video frame; Indicates The timestamp of each video frame; It represents the time scale parameter, which controls the influence of time difference on the spatiotemporal fusion factor; represents an exponential function, which is used to convert time difference and space difference into weight value; Indicates video frames and The spatial distance between video frames measures the spatial difference between two frames. The square root function is used to calculate the Euclidean distance. Indicates the enhanced Video frames at coordinates The pixel value at ; Indicates the enhanced Video frames at coordinates The pixel value at ; Indicates the accumulation of differences in all pixels. The pixel points at the position are summed; Represents the spatial scale parameter, which controls the influence of spatial differences on the spatiotemporal fusion factor.

[0026] In one embodiment, the calculation formula of the classification recognition algorithm is:

[0027] ;

[0028] ;

[0029] ;

[0030] In the formula, Indicates the classification and recognition results; It means that the category with the largest change in similarity measure and category distribution is selected as the classification result; Represents the category label; represents the similarity measure; It indicates the degree of change in the category distribution and is used to measure the internal consistency and distinctiveness of the category; Express The features are summed; Indicates The weight of each feature is used to adjust the contribution of the feature in the similarity measurement; represents the exponential function used to convert feature differences into similarity measures; Represents a negative sign, which is used to invert the feature difference value; represents the first Feature values ​​and categories absolute difference in mean eigenvalues; represents the first eigenvalues; Indicates category In the The mean of the features; is a constant used to prevent the denominator from being zero; Indicates that except Sum all features except for features; Indicates Features and The interaction coefficient between the two features indicates the mutual influence between the two features; represents the first eigenvalues; Indicates category In the The mean of the features; Express The features are summed; Show category In the The standard deviation of the features; Indicates The difference after standardization of the features; represents the first eigenvalues; Indicates category In the The mean value of the features.

[0031] According to a second aspect of an embodiment of the present invention, a video intelligent analysis system is provided.

[0032] In one embodiment, the video intelligent analysis system includes:

[0033] The video acquisition module is used to acquire video using a video acquisition device to obtain a camera video;

[0034] A video preprocessing module, used for performing noise reduction and image enhancement preprocessing on the camera video to obtain a video frame after noise reduction and image enhancement;

[0035] The video analysis module is used to use a multi-feature spatiotemporal fusion algorithm to fuse the video frames to obtain a comprehensive feature vector, and based on the comprehensive feature vector, use a classification recognition algorithm to calculate a video classification recognition result.

[0036] In one embodiment, when the video preprocessing module performs noise reduction preprocessing on the camera video to obtain the video frame after noise reduction, the video preprocessing module uses an adaptive Gaussian filtering algorithm to perform adaptive Gaussian filtering noise reduction processing on the camera video, and calculates the pixel value after the adaptive Gaussian filtering to obtain the video frame after the adaptive Gaussian filtering noise reduction;

[0037] The calculation formula of the adaptive Gaussian filtering algorithm is:

[0038] ;

[0039] In the formula, Represents the first Video frames at position The pixel value at ; Represents the double summation symbol, calculating the weighted sum of pixels; Represents half the size of the Gaussian filter, and defines the range of the Gaussian filter as , determines the pixel range covered by the Gaussian filter; Indicates Video frames at position The pixel value at ; Indicates the horizontal coordinate of the pixel; Indicates the vertical coordinate of the pixel; Indicates the offset of the horizontal coordinate of the pixel point; Indicates the offset of the vertical coordinate of the pixel; Represents the basic weight of the Gaussian filter, which determines the weight of the pixel in the filtering process; It represents the standard deviation of the Gaussian filter, controls the expansion range of the Gaussian filter, and determines the blur degree of the Gaussian filter; Indicates Video frames at position The gradient amplitude at The local edge strength of each video frame is used to adaptively adjust the weight of the Gaussian filter, which is calculated by the Sobel operator. represents the adjustment parameter, which is used to control the influence of the gradient amplitude on the filter weight; represents the hyperbolic tangent function.

[0040] In one embodiment, when the video preprocessing module performs image enhancement preprocessing on the camera video to obtain an image enhanced video frame, the video preprocessing module uses an adaptive image enhancement algorithm to calculate the enhanced pixel value based on the video frame after the adaptive Gaussian filtering noise reduction to obtain the enhanced video frame;

[0041] Wherein, the calculation formula of the adaptive image enhancement algorithm is:

[0042] ;

[0043] In the formula, Indicates the enhanced Video frames at coordinates The pixel value at ; Represents the first Video frames at position The pixel value at ; Represents a logarithmic transformation, which is used to compress the dynamic range of high-brightness areas while stretching the details of low-brightness areas; Represents color fidelity adjustment, which is used to ensure the naturalness and consistency of video frame colors and avoid color distortion; Represents a sine function that generates periodic changes and is used to adjust the brightness and contrast of image colors; Represents the period of the sine function to ensure periodic changes; Indicates the adjustment period, controls the period length of the sine function, and affects the frequency of color adjustment; represents the sum of pixel positions, used to generate periodic modulation that varies with position; Represents the color fidelity adjustment parameter, which controls the intensity of color adjustment.

[0044] In one embodiment, the calculation formula of the multi-feature spatiotemporal fusion algorithm is:

[0045] ;

[0046] ;

[0047] In the formula, represents the comprehensive feature vector; represents the summation symbol; Indicates the number of video frames; Indicates the enhanced The temporal rate of change of video frames; Indicates The timestamp of each video frame; Indicates The first video frame Class characteristics; represents the summation symbol; Indicates the number of feature categories; represents the spatiotemporal fusion factor; Indicates The timestamp of each video frame; Indicates The timestamp of each video frame; It represents the time scale parameter, which controls the influence of time difference on the spatiotemporal fusion factor; represents an exponential function, which is used to convert time difference and space difference into weight value; Indicates video frames and The spatial distance between video frames measures the spatial difference between two frames. The square root function is used to calculate the Euclidean distance. Indicates the enhanced Video frames at coordinates The pixel value at ; Indicates the enhanced Video frames at coordinates The pixel value at ; Indicates the accumulation of differences in all pixels. The pixel points at the position are summed; Represents the spatial scale parameter, which controls the influence of spatial differences on the spatiotemporal fusion factor.

[0048] In one embodiment, the calculation formula of the classification recognition algorithm is:

[0049] ;

[0050] ;

[0051] ;

[0052] In the formula, Indicates the classification and recognition results; It means that the category with the largest change in similarity measure and category distribution is selected as the classification result; Represents the category label; represents the similarity measure; It indicates the degree of change in the category distribution and is used to measure the internal consistency and distinctiveness of the category; Express The features are summed; Indicates The weight of each feature is used to adjust the contribution of the feature in the similarity measurement; represents the exponential function used to convert feature differences into similarity measures; Represents a negative sign, which is used to invert the feature difference value; represents the first Feature values ​​and categories absolute difference in mean eigenvalues; represents the first eigenvalues; Indicates category In the The mean of the features; is a constant used to prevent the denominator from being zero; Indicates that except Sum all features except for features; Indicates Features and The interaction coefficient between the two features indicates the mutual influence between the two features; represents the first eigenvalues; Indicates category In the The mean of the features; Express The features are summed; Indicates category In the The standard deviation of the features; Indicates The difference after standardization of the features; represents the first eigenvalues; Indicates category In the The mean value of the features.

[0053] The technical solution provided by the embodiment of the present invention may have the following beneficial effects:

[0054] 1. The adaptive Gaussian filter introduces the gradient amplitude and hyperbolic tangent function to make the filtering process adaptive and flexible. While reducing noise, it can retain the details and edge information of the video frame and improve the clarity and detail fidelity of the video.

[0055] 2. The adaptive image enhancement algorithm is used to process the video frames after Gaussian filtering. The logarithmic transformation is used to compress the dynamic range of the high-brightness area, while stretching the details of the low-brightness area, thereby improving the detail performance of the video frame. The periodic function is introduced to adjust the color fidelity of different positions, ensuring the naturalness and consistency of the color of the video frame, avoiding the color distortion that may occur during the enhancement process, and enhancing the viewing experience.

[0056] 3. Through the multi-feature spatiotemporal fusion algorithm, combined with the temporal relationship and spatial information between video frames, a comprehensive feature vector containing static spatial information and dynamic time change information is obtained, which can fully and accurately reflect the important information in the video and improve the accuracy of subsequent classification and recognition;

[0057] 4. The accuracy of classification and recognition is ensured by comprehensive consideration of similarity measurement and the degree of change in category distribution. The feature differences are converted into similarity measurement through exponential functions, and combined with the interaction between features, the measurement results can accurately reflect the degree of similarity. By calculating the degree of change in category distribution, the consistency and distinction within the category can be effectively measured, thereby improving the stability and reliability of classification and recognition.

[0058] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0060] Figure 1 is a flowchart of a video intelligent analysis method according to an exemplary embodiment;

[0061] Figure 2 is a structural block diagram of a video intelligent analysis system according to an exemplary embodiment;

[0062] Figure 3 It is a schematic diagram showing the structure of a computer device according to an exemplary embodiment. DETAILED DESCRIPTION

[0063] The following description and the drawings sufficiently illustrate the specific embodiments herein to enable those skilled in the art to practice them.

[0064] Figure 1 An embodiment of a video intelligent analysis method of the present invention is shown.

[0065] In this optional embodiment, the video intelligent analysis method includes:

[0066] In one embodiment, the video intelligent analysis method includes:

[0067] Step S101, using a video acquisition device to acquire a video;

[0068] Step S103, performing noise reduction and image enhancement preprocessing on the camera video to obtain a video frame after noise reduction and image enhancement;

[0069] Step S105, using a multi-feature spatiotemporal fusion algorithm to perform fusion processing on the video frames to obtain a comprehensive feature vector, and based on the comprehensive feature vector, using a classification recognition algorithm to calculate and obtain a video classification recognition result.

[0070] Figure 2 An embodiment of a video intelligent analysis system of the present invention is shown.

[0071] In this optional embodiment, the video intelligent analysis system includes:

[0072] The video acquisition module 201 is used to acquire video using a video acquisition device to obtain a camera video;

[0073] The video preprocessing module 203 is used to perform noise reduction and image enhancement preprocessing on the camera video to obtain a video frame after noise reduction and image enhancement;

[0074] The video analysis module 205 is used to use a multi-feature spatiotemporal fusion algorithm to perform fusion processing on the video frames to obtain a comprehensive feature vector, and based on the comprehensive feature vector, use a classification recognition algorithm to calculate a video classification recognition result.

[0075] In actual application, a video acquisition device is used to acquire a video; the video acquisition device is such as a surveillance camera; the video , Indicates video frames, Indicates the number of video frames, .

[0076] When the camera video is subjected to noise reduction and image enhancement preprocessing to obtain the video frame after noise reduction and image enhancement, an adaptive Gaussian filtering algorithm can be used to perform adaptive Gaussian filtering noise reduction processing on the camera video, and the pixel value after adaptive Gaussian filtering is calculated to obtain the video frame after adaptive Gaussian filtering noise reduction; then, based on the video frame after adaptive Gaussian filtering noise reduction, an adaptive image enhancement algorithm is used to calculate the enhanced pixel value to obtain the enhanced video frame.

[0077] Specifically, the adaptive Gaussian filter algorithm introduces the gradient amplitude and the hyperbolic tangent function to make the Gaussian filter adaptable and flexible when processing different video frame areas, so as to achieve denoising while retaining the details and edge information of the video frame. The weight of the Gaussian filter is determined by the horizontal and vertical offsets of the pixel points, and the gradient amplitude is calculated using the Sobel operator to reflect the local edge strength. The weight and the gradient amplitude are combined to perform nonlinear adjustment through the hyperbolic tangent function, and finally the pixel value after the adaptive Gaussian filter is calculated. The specific calculation formula is as follows:

[0078] ;

[0079] in, Represents the first Video frames at position The pixel value at ; Represents the double summation symbol, calculating the weighted sum of pixels; Represents half the size of the Gaussian filter, and defines the range of the Gaussian filter as , determines the pixel range covered by the Gaussian filter; Indicates Video frames at position The pixel value at ; Indicates the horizontal coordinate of the pixel; Indicates the vertical coordinate of the pixel; Indicates the offset of the horizontal coordinate of the pixel point; Indicates the offset of the vertical coordinate of the pixel; Represents the basic weight of the Gaussian filter, which determines the weight of the pixel in the filtering process; It represents the standard deviation of the Gaussian filter, controls the expansion range of the Gaussian filter, and determines the blur degree of the Gaussian filter; Indicates Video frame at position The gradient amplitude at The local edge strength of each video frame is used to adaptively adjust the weight of the Gaussian filter and is calculated by a Sobel operator. The Sobel operator is a technical means well known to those skilled in the art and will not be described in detail here. represents the adjustment parameter, which is used to control the influence of the gradient amplitude on the filter weight; Represents the hyperbolic tangent function, implements nonlinear regulation, and enhances the Gaussian filtering effect.

[0080] The video frame enhancement algorithm performs logarithmic transformation on the video frame, compresses the dynamic range of the high-brightness area, stretches the details of the low-brightness area, and enhances the contrast of the image. The color fidelity of different positions is adjusted by introducing a periodic function, and the color fidelity adjustment parameter is adjusted to control the period length and intensity to improve the visual effect and detail expression of the video frame, which can avoid color distortion of the video frame during the enhancement process. Video frames at coordinates The specific calculation formula for the pixel value at is:

[0081] ;

[0082] in, Indicates the enhanced Video frames at coordinates The pixel value at ; Represents the first Video frames at position The pixel value at ; Represents a logarithmic transformation, which is used to compress the dynamic range of high-brightness areas while stretching the details of low-brightness areas; Represents color fidelity adjustment, which is used to ensure the naturalness and consistency of video frame colors and avoid color distortion; Represents a sine function that generates periodic changes and is used to adjust the brightness and contrast of image colors; Represents the period of the sine function to ensure periodic changes; Indicates the adjustment period, controls the period length of the sine function, and affects the frequency of color adjustment; represents the sum of pixel positions, used to generate periodic modulation that varies with position; Represents the color fidelity adjustment parameter, which controls the intensity of color adjustment;

[0083] The multi-feature spatiotemporal fusion algorithm introduces a spatiotemporal fusion factor and combines the temporal relationship and spatial information between video frames, so that the comprehensive feature vector not only contains static spatial information, but also captures dynamic time change information, ensuring that the comprehensive feature vector is comprehensive and accurate. The fusion of multi-dimensional features enables the comprehensive feature vector to reflect important information in the video, thereby improving the accuracy of classification and recognition. The specific calculation formula for the comprehensive feature vector obtained using the multi-feature spatiotemporal fusion algorithm is:

[0084] ;

[0085] in, represents the comprehensive feature vector; represents the summation symbol; Indicates the number of video frames; Indicates the enhanced The temporal rate of change of video frames; Indicates The timestamp of each video frame; Indicates The first video frame Class features, such as color features, texture features, and shape features; represents the summation symbol; Indicates the number of feature categories; Represents the spatiotemporal fusion factor, which improves the stability and discrimination of the comprehensive feature vector by combining time and space information. The specific calculation formula is:

[0086] ;

[0087] in, Indicates The timestamp of each video frame; Indicates The timestamp of each video frame; It represents the time scale parameter, which controls the influence of time difference on the spatiotemporal fusion factor; represents an exponential function, which is used to convert time difference and space difference into weight value; Indicates video frames and The spatial distance between video frames measures the spatial difference between two frames. The square root function is used to calculate the Euclidean distance. Indicates the enhanced Video frames at coordinates The pixel value at ; Indicates the enhanced Video frames at coordinates The pixel value at ; Indicates the accumulation of differences in all pixels; The pixel points at the position are summed; Represents the spatial scale parameter, which controls the influence of spatial differences on the spatiotemporal fusion factor;

[0088] The classification recognition algorithm combines the weight of the features, and comprehensively considers the relationship between the features through similarity measurement and the degree of change of the category distribution to ensure the accuracy of classification recognition; the similarity measurement converts the feature difference into a similarity measurement through an exponential function, and combines the interaction between the features to ensure that the measurement result can accurately reflect the degree of similarity; the degree of change of the category distribution is an important indicator for measuring the internal consistency and distinction of the category. By calculating the degree of change of the category distribution, the stability and reliability of classification recognition can be improved; the formula for obtaining the classification recognition result is as follows:

[0089] ;

[0090] in, Indicates the classification and recognition results; It means that the category with the largest change in similarity measure and category distribution is selected as the classification result; Represents the category label; Represents the similarity measure value, and the specific calculation formula is:

[0091] ;

[0092] in, Express The features are summed; Indicates The weight of each feature is used to adjust the contribution of the feature in the similarity measurement; represents the exponential function used to convert feature differences into similarity measures; Represents a negative sign, which is used to invert the feature difference value; represents the first Feature values ​​and categories absolute difference in mean eigenvalues; represents the first eigenvalues; Indicates category In the The mean of the features; is a constant used to prevent the denominator from being zero; Indicates that except Sum all features except for features; Indicates Features and The interaction coefficient between the two features indicates the mutual influence between the two features and is obtained by covariance calculation. Covariance is a technical means well known to those skilled in the art and will not be described in detail here. represents the first eigenvalues; Indicates category In the The mean of the features;

[0093] It indicates the degree of change in the category distribution and is used to measure the internal consistency and distinction of the category. The specific calculation formula is:

[0094] ;

[0095] in, Express The features are summed; Indicates category In the The standard deviation of the features; Indicates The difference after standardization of the features; represents the first eigenvalues; Indicates category In the The mean of the features;

[0096] By comprehensively considering the relationship between features and changes in category distribution, the stability and reliability of classification and recognition results are ensured.

[0097] Figure 3 An embodiment of a computer device of the present invention is shown. The computer device may be a server, and the computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store static information and dynamic information data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the steps in the above method embodiment are implemented.

[0098] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0099] In addition, the present invention also provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiment when executing the computer program.

[0100] In addition, the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiment are implemented.

[0101] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0102] The present invention is not limited to the structures which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A video intelligent analysis method, It is characterized in that include: Use a video acquisition device to capture video to obtain a camera video; Performing noise reduction and image enhancement preprocessing on the camera video to obtain a video frame after noise reduction and image enhancement; The video frames are fused using a multi-feature spatiotemporal fusion algorithm to obtain a comprehensive feature vector, and based on the comprehensive feature vector, a classification and recognition algorithm is used to calculate and obtain a video classification and recognition result; The process of performing noise reduction preprocessing on the camera video to obtain a noise-reduced video frame includes: Performing adaptive Gaussian filtering noise reduction processing on the camera video using an adaptive Gaussian filtering algorithm, and calculating pixel values ​​after adaptive Gaussian filtering to obtain a video frame after adaptive Gaussian filtering noise reduction; The calculation formula of the adaptive Gaussian filtering algorithm is: ; In the formula, Represents the first Video frames at position The pixel value at ; Represents the double summation symbol, calculating the weighted sum of pixels; Represents half the size of the Gaussian filter, and defines the range of the Gaussian filter as , determines the pixel range covered by the Gaussian filter; Indicates Video frames at position The pixel value at ; Indicates the horizontal coordinate of the pixel; Indicates the vertical coordinate of the pixel; Indicates the offset of the horizontal coordinate of the pixel point; Indicates the offset of the vertical coordinate of the pixel; Represents the basic weight of the Gaussian filter, which determines the weight of the pixel in the filtering process; It represents the standard deviation of the Gaussian filter, controls the expansion range of the Gaussian filter, and determines the blur degree of the Gaussian filter; Indicates Video frames at position The gradient amplitude at The local edge strength of each video frame is used to adaptively adjust the weight of the Gaussian filter, which is calculated by the Sobel operator. represents the adjustment parameter, which is used to control the influence of the gradient amplitude on the filter weight; represents the hyperbolic tangent function.

2. The video intelligent analysis method according to claim 1, It is characterized in that The camera video is subjected to image enhancement preprocessing to obtain an image-enhanced video frame, which includes: Based on the video frame after denoising by adaptive Gaussian filtering, an adaptive image enhancement algorithm is used to calculate the enhanced pixel value to obtain the enhanced video frame; Wherein, the calculation formula of the adaptive image enhancement algorithm is: ; In the formula, Indicates the enhanced Video frames at coordinates The pixel value at ; Represents the first Video frames at position The pixel value at ; Represents a logarithmic transformation, which is used to compress the dynamic range of high-brightness areas while stretching the details of low-brightness areas; Represents color fidelity adjustment, which is used to ensure the naturalness and consistency of video frame colors and avoid color distortion; Represents a sine function that generates periodic changes and is used to adjust the brightness and contrast of image colors; Represents the period of the sine function to ensure periodic changes; Indicates the adjustment period, controls the period length of the sine function, and affects the frequency of color adjustment; represents the sum of pixel positions, used to generate periodic modulation that varies with position; Represents the color fidelity adjustment parameter, which controls the intensity of color adjustment.

3. The video intelligent analysis method according to claim 2, It is characterized in that The calculation formula of the multi-feature spatiotemporal fusion algorithm is: ; ; In the formula, represents the comprehensive feature vector; represents the summation symbol; Indicates the number of video frames; Indicates the enhanced The temporal rate of change of video frames; Indicates The timestamp of each video frame; Indicates The first video frame Class characteristics; represents the summation symbol; Indicates the number of feature categories; represents the spatiotemporal fusion factor; Indicates The timestamp of each video frame; Indicates The timestamp of each video frame; It represents the time scale parameter, which controls the influence of time difference on the spatiotemporal fusion factor; represents an exponential function, which is used to convert time difference and space difference into weight value; Indicates video frames and The spatial distance between the video frames measures the spatial difference between the two frames. The square root function is used to calculate the Euclidean distance. Indicates the enhanced Video frames at coordinates The pixel value at ; Indicates the enhanced Video frames at coordinates The pixel value at ; Indicates the accumulation of differences in all pixels, for position The pixel points are summed; Represents the spatial scale parameter, which controls the influence of spatial differences on the spatiotemporal fusion factor.

4. The video intelligent analysis method according to claim 3, It is characterized in that The calculation formula of the classification recognition algorithm is: ; ; ; In the formula, Indicates the classification and recognition results; It means that the category with the largest change in similarity measure and category distribution is selected as the classification result; Represents the category label; represents the similarity measure; It indicates the degree of change in the category distribution and is used to measure the internal consistency and distinctiveness of the category; Express The features are summed; Indicates The weight of each feature is used to adjust the contribution of the feature in the similarity measurement; represents the exponential function used to convert feature differences into similarity measures; Represents a negative sign, which is used to invert the feature difference value; represents the first Feature values ​​and categories absolute difference in mean eigenvalues; represents the first eigenvalues; Indicates category In the The mean of the features; is a constant used to prevent the denominator from being zero; Indicates that except Sum all features except for features; Indicates Features and The interaction coefficient between the two features indicates the mutual influence between the two features; represents the first eigenvalues; Indicates category In the The mean of the features; Express The features are summed; Indicates category In the The standard deviation of the features; Indicates The difference after standardization of the features; represents the first eigenvalues; Indicates category In the The mean value of the features.

5. A video intelligent analysis system, It is characterized in that include: The video acquisition module is used to acquire video using a video acquisition device to obtain a camera video; A video preprocessing module, used for performing noise reduction and image enhancement preprocessing on the camera video to obtain a video frame after noise reduction and image enhancement; A video analysis module, used to perform fusion processing on the video frames using a multi-feature spatiotemporal fusion algorithm to obtain a comprehensive feature vector, and based on the comprehensive feature vector, use a classification recognition algorithm to calculate a video classification recognition result; The video preprocessing module performs a noise reduction preprocessing on the camera video to obtain a video frame after noise reduction, and uses an adaptive Gaussian filtering algorithm to perform an adaptive Gaussian filtering noise reduction process on the camera video, and calculates the pixel value after the adaptive Gaussian filtering to obtain a video frame after the adaptive Gaussian filtering noise reduction; The calculation formula of the adaptive Gaussian filtering algorithm is: ; In the formula, Represents the first Video frames at position The pixel value at ; Represents the double summation symbol, calculating the weighted sum of pixels; Represents half the size of the Gaussian filter, and defines the range of the Gaussian filter as , determines the pixel range covered by the Gaussian filter; Indicates Video frames at position The pixel value at ; Indicates the horizontal coordinate of the pixel; Indicates the vertical coordinate of the pixel; Indicates the offset of the horizontal coordinate of the pixel point; Indicates the offset of the vertical coordinate of the pixel; Represents the basic weight of the Gaussian filter, which determines the weight of the pixel in the filtering process; It represents the standard deviation of the Gaussian filter, controls the expansion range of the Gaussian filter, and determines the blur degree of the Gaussian filter; Indicates Video frames at position The gradient amplitude at The local edge strength of each video frame is used to adaptively adjust the weight of the Gaussian filter, which is calculated by the Sobel operator. represents the adjustment parameter, which is used to control the influence of the gradient amplitude on the filter weight; represents the hyperbolic tangent function.

6. The video intelligent analysis system according to claim 5, It is characterized in that When the video preprocessing module performs image enhancement preprocessing on the camera video to obtain an image enhanced video frame, the video preprocessing module uses an adaptive image enhancement algorithm to calculate the enhanced pixel value based on the video frame after the adaptive Gaussian filtering noise reduction to obtain the enhanced video frame; Wherein, the calculation formula of the adaptive image enhancement algorithm is: ; In the formula, Indicates the enhanced Video frames at coordinates The pixel value at ; Represents the first Video frames at position The pixel value at ; Represents a logarithmic transformation, which is used to compress the dynamic range of high-brightness areas while stretching the details of low-brightness areas; Represents color fidelity adjustment, which is used to ensure the naturalness and consistency of video frame colors and avoid color distortion; Represents a sine function that generates periodic changes and is used to adjust the brightness and contrast of image colors; Represents the period of the sine function to ensure periodic changes; Indicates the adjustment period, controls the period length of the sine function, and affects the frequency of color adjustment; represents the sum of pixel positions, used to generate periodic modulation that varies with position; Represents the color fidelity adjustment parameter, which controls the intensity of color adjustment.

7. The video intelligent analysis system according to claim 6, It is characterized in that The calculation formula of the multi-feature spatiotemporal fusion algorithm is: ; ; In the formula, represents the comprehensive feature vector; represents the summation symbol; Indicates the number of video frames; Indicates the enhanced The temporal rate of change of video frames; Indicates The timestamp of each video frame; Indicates The first video frame Class characteristics; represents the summation symbol; Indicates the number of feature categories; represents the spatiotemporal fusion factor; Indicates The timestamp of each video frame; Indicates The timestamp of each video frame; It represents the time scale parameter, which controls the influence of time difference on the spatiotemporal fusion factor; represents an exponential function, which is used to convert time difference and space difference into weight value; Indicates video frames and The spatial distance between video frames measures the spatial difference between two frames. The square root function is used to calculate the Euclidean distance. Indicates the enhanced Video frames at coordinates The pixel value at ; Indicates the enhanced Video frames at coordinates The pixel value at ; Indicates the accumulation of differences in all pixels. The pixel points at the position are summed; Represents the spatial scale parameter, which controls the influence of spatial differences on the spatiotemporal fusion factor.

8. The video intelligent analysis system according to claim 7, It is characterized in that The calculation formula of the classification recognition algorithm is: ; ; ; In the formula, Indicates the classification and recognition results; It means that the category with the largest change in similarity measure and category distribution is selected as the classification result; Represents the category label; represents the similarity measure; It indicates the degree of change in the category distribution and is used to measure the internal consistency and distinctiveness of the category; Express The features are summed; Indicates The weight of each feature is used to adjust the contribution of the feature in the similarity measurement; represents the exponential function used to convert feature differences into similarity measures; Represents a negative sign, which is used to invert the feature difference value; represents the first Feature values ​​and categories absolute difference in mean eigenvalues; represents the first eigenvalues; Indicates category In the The mean of the features; is a constant used to prevent the denominator from being zero; Indicates that except Sum all features except for features; Indicates Features and The interaction coefficient between the two features indicates the mutual influence between the two features; represents the first eigenvalues; Indicates category In the The mean of the features; Express The features are summed; Indicates category In the The standard deviation of the features; Indicates The difference after standardization of the features; represents the first eigenvalues; Indicates category In the The mean value of the features.