Video image intelligent recognition method and system for multi-scene adaptation
By analyzing the video information in the exhibition area, we generate and integrate interactive behaviors and background images, which solves the problem of insufficient audience experience in digital art exhibitions, realizes the interaction between digital art exhibits and user behavior, and enhances the resonance between the audience and the works and the transmission of creative ideas.
Patent Information
- Application Number
- CN202410948084.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Existing digital art exhibitions lack the interaction between the audience and digital art works, resulting in an insufficiently deep and rich audience experience and inability to resonate with the works, which limits the transmission of the creative concepts of digital art works.
By obtaining exhibition area video information, extracting interactive video information, analyzing interactive behaviors and background images, generating style images based on artificial intelligence technology, and fusing them with background images to output dynamic fusion images, realizing the interaction between digital art exhibits and user behavior, and enhancing Audience experience.
It optimizes the audience's experience of digital art exhibits, allowing them to resonate with the works, enhances the delivery effect of digital art creation concepts, and enhances the audience's interactivity and interest.
Smart Images

Figure CN118485952B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method and system for intelligent video image recognition that is adaptable to multiple scenes. Background Art
[0002] With the rapid development of artificial intelligence technology, the application of artificial intelligence technology in the field of digital art is leading the innovative direction of digital art and providing unprecedented possibilities and opportunities for the development of digital art. Among them, digital art exhibitions are an important platform for displaying and discussing digital art works. Through exhibitions, audiences can feel the infinite possibilities brought by digital art.
[0003] However, existing digital art exhibitions focus on displaying the innovative artistic styles produced by the combination of digital technology and artworks. When visiting digital art exhibitions, the audience is merely a passive viewer, which results in the audience's experience of the works not being deep and rich enough, and they are unable to resonate with the digital artworks, which limits the transmission of the creative concepts of digital artworks. Summary of the invention
[0004] The present application provides a multi-scene adaptive video image intelligent recognition method and system to solve the above-mentioned technical problems.
[0005] In a first aspect, the present application provides a multi-scenario adaptive video image intelligent recognition method, the method comprising: acquiring exhibition area video information, preprocessing the exhibition area video information, and extracting interactive video information;
[0006] Analyze the interactive video information to determine interactive behavior information and background image;
[0007] Determining a number of style images according to the interactive behavior information;
[0008] Based on the background image, the plurality of style images are fused with the background image to determine and output a dynamic fused image.
[0009] The present application obtains and pre-processes the exhibition area video information, determines the interactive video information, analyzes the interactive video information, extracts the interactive behavior information and the background image, determines a number of style images according to the interactive behavior information, and then fuses the several style images and the background image based on the background image, determines and outputs a dynamic fused image, thereby realizing the interaction between digital art exhibits and user behavior, optimizing the audience's experience of digital art exhibits, enabling the audience to resonate with the digital art works, and enhancing the delivery effect of the creative concept of the digital art exhibits.
[0010] Optionally, analyzing the interactive video information to determine the interactive behavior information and the background image includes:
[0011] Analyze the interactive video information to determine the overall environment brightness value;
[0012] Extracting frames of the interactive video information, analyzing each frame image, and determining the original brightness value of each pixel area in each frame image;
[0013] Determine the pixel value of each pixel region according to each pixel region of each frame image;
[0014] Determine a preliminary foreground value of each pixel region in each of the frame images according to the overall environment brightness value, the original brightness value and the pixel value;
[0015] Determine an observation matrix according to a preliminary foreground value of each pixel region and an original brightness value of each pixel region;
[0016] Determine a final state value of each pixel region in each of the frame images based on a preliminary foreground value of each pixel region and the measurement matrix;
[0017] Determine a foreground image and a background image according to a final state value of each pixel region in each of the frame images;
[0018] The foreground image is analyzed to determine the interactive behavior information.
[0019] Through the above technical scheme, the interactive video information is analyzed to determine the overall environment brightness value, and the pixel area in the frame image in the interactive video information is analyzed to determine the original brightness value and the pixel value. According to the overall environment brightness value, the original brightness value and the pixel value, the preliminary foreground value is determined. On the basis of the preliminary foreground value and the original brightness value, an observation matrix is obtained, and the preliminary foreground value is adjusted based on the observation matrix to determine the final state value. The final state value of each pixel area is comprehensively analyzed to obtain the foreground image and the background image. By analyzing the foreground image, the interactive behavior information is determined, and the negative impact of the frequently changing light and shadow in the digital art exhibition hall on the analysis of the interactive behavior information is effectively avoided, so that the separation of the foreground image and the background image is more accurate, so that the digital art exhibits that are subsequently transformed according to the interactive behavior information are more in line with the audience's interactive behavior, the interactivity felt by the audience is enhanced, and the audience's interest in digital art exhibits is further stimulated.
[0020] Optionally, determining the preliminary foreground value of each pixel area in each frame image according to the overall environment brightness value, the original brightness value and the pixel value includes:
[0021] The coordinates of each pixel area in each frame image are expressed by Indicates that, according to the overall environment brightness value, the original brightness value, the pixel value and the coordinates of each pixel area, the preliminary foreground value of each pixel area in each frame image is determined, referring to the following formula:
[0022] ;
[0023] in, For the moment The pixel region coordinates in the current frame image The initial outlook value at is the current pixel region coordinate of the current frame image, is the time point corresponding to the current frame image, is the preset foreground threshold, is the overall environment brightness value, is the original brightness value of the current pixel area in the current frame image, For the moment The pixel value of the current pixel area in the current frame image.
[0024] Through the above technical solution, a mathematical formula is designed to calculate the preliminary foreground value based on the overall ambient brightness value, the original brightness value, the pixel value and the coordinates of each pixel area. Through the processing flow in the formula, the brightness factor is incorporated into the process of determining the preliminary foreground value, and the impact of the frequently changing light and shadow in the digital art exhibition hall on the process of determining the preliminary foreground value is quantified, making the preliminary foreground value more accurate.
[0025] Optionally, determining the measurement matrix according to the preliminary foreground value of each pixel region and the original brightness value of each pixel region includes:
[0026] ;
[0027] in, is the observation matrix, is the total number of pixel regions in the frame image, is the first The initial foreground value of the pixel area, is the first The original brightness value of the pixel area.
[0028] Through the above technical solution, a mathematical expression is used to express the mathematical mapping relationship between the preliminary foreground value of each pixel area and the original brightness value of each pixel area, providing accurate mathematical data for subsequent adjustment of the preliminary foreground value based on the observation matrix through mathematical analysis.
[0029] Optionally, determining the final state value of each pixel region in each frame image based on the preliminary foreground value of each pixel region and the observation matrix includes:
[0030] ;
[0031] in, For the current moment When the current pixel area The final state value of For the previous moment When the current pixel area The final state value of is the preset gain matrix, is the preliminary foreground value of the current frame image, is the observation matrix.
[0032] Through the above technical scheme, a mathematical formula is designed to dynamically adjust the preliminary foreground value based on the preliminary foreground value and observation matrix of each pixel area based on the final state value at different times, so as to obtain the accurate final state value of each pixel area, thereby improving the accuracy of the foreground image and background image obtained based on the final state value.
[0033] Optionally, determining the foreground image and the background image according to the final state value of each pixel area in each frame image includes:
[0034] Analyze each pixel region in each frame image to determine a pixel value matrix;
[0035] Determining an image state matrix of each frame image according to a final state value of each pixel region in each frame image;
[0036] Based on the pixel value matrix and according to the image state matrix, the foreground image is determined, referring to the following expression:
[0037] ;
[0038] in, represents the foreground image, is the image state matrix, is the pixel value matrix;
[0039] Based on the pixel value matrix and the image state matrix, the background image is determined, referring to the following expression:
[0040] ;
[0041] in, represents the background image, is the image state matrix, is the pixel value matrix.
[0042] Through the above technical scheme, each pixel area is analyzed to determine the pixel value matrix and the image state matrix. Based on the pixel value matrix and the image state matrix, the foreground image and the background image are determined through mathematical expressions, thereby improving the efficiency of determining the foreground image and the background image while ensuring the accuracy of the foreground image and the background image.
[0043] Optionally, determining a plurality of style images according to the interactive behavior information includes:
[0044] The interactive behavior information is converted into vector feature information, and based on a preset vector quantization adversarial generative network, adversarial training is performed on the preset vector quantization adversarial generative network according to the vector feature information to determine a training result;
[0045] According to the training result, several style images are determined.
[0046] Through the above technical scheme, adversarial training is performed on the preset vector quantization generative adversarial network according to the vector feature information corresponding to the interactive behavior information, and a number of style images are determined according to the training results. By using the vector quantization generative adversarial network to generate a number of style images, the generation diversity is ensured, and different style images with creativity and imagination are obtained to enhance the user experience.
[0047] Optionally, the fusing the plurality of style images with the background image based on the background image to determine and output a dynamic fused image includes:
[0048] According to the background image, the plurality of style images, the preset fusion weight and the preset time influence coefficient, a dynamic fusion image is determined and outputted, referring to the following expression:
[0049] ;
[0050] in, For the current time point The dynamic fusion image, is the preset fusion weight, is the current style image, is the background image, is the preset time influence coefficient, For the previous time point The fused image.
[0051] Through the above technical scheme, the influence of different style images and time changes on the fused image is comprehensively considered, the fusion process of the dynamic fused image is accurately reflected through mathematical expressions, and the dynamic fused images under different time bags are obtained, which enhances the fusion effect of different style images and background images, and makes the styles in the dynamic fused image not conflicting and abrupt.
[0052] Optionally, the method further includes:
[0053] Analyze the interactive video information to determine the motion displacement;
[0054] According to the motion displacement, the preset blur control parameter, the preset translation function and the preset Gaussian blur function, the dynamic fusion image is adjusted to determine the highly interactive image, referring to the following expression:
[0055] ;
[0056] in, For the highly interactive image, is the preset translation function, To preset the Gaussian blur function, is the dynamic fusion image, To preset the blur level control parameters, is the displacement of the action.
[0057] Through the above technical scheme, on the basis of the dynamic fusion image, Gaussian blur processing is performed on the dynamic fusion image through mathematical expressions to make the transition between different areas in the dynamic fusion image smoother, and the dynamic fusion image is pixel-shifted and adjusted according to the action displacement to determine the highly interactive image, so that the highly interactive image and the audience's interactive actions maintain a high match, further enhancing the audience's interactive experience.
[0058] In a second aspect, the present application provides a multi-scene adaptive video image intelligent recognition system, the system comprising:
[0059] An information extraction module is used to obtain exhibition area video information, pre-process the exhibition area video information, and extract interactive video information;
[0060] An information analysis module, used to analyze the interactive video information and determine the interactive behavior information and background image;
[0061] A style generation module, used to determine a number of style images according to the interactive behavior information;
[0062] The fusion output module is used to fuse the plurality of style images with the background image based on the background image, and determine and output a dynamic fusion image.
[0063] Optionally, the information analysis module is specifically used to:
[0064] Analyze the interactive video information to determine the overall environment brightness value;
[0065] Extracting frames of the interactive video information, analyzing each frame image, and determining the original brightness value of each pixel area in each frame image;
[0066] Determine the pixel value of each pixel region according to each pixel region of each frame image;
[0067] Determine a preliminary foreground value of each pixel region in each of the frame images according to the overall environment brightness value, the original brightness value and the pixel value;
[0068] Determine an observation matrix according to a preliminary foreground value of each pixel region and an original brightness value of each pixel region;
[0069] Determine a final state value of each pixel region in each of the frame images based on a preliminary foreground value of each pixel region and the measurement matrix;
[0070] Determine a foreground image and a background image according to a final state value of each pixel region in each of the frame images;
[0071] The foreground image is analyzed to determine the interactive behavior information.
[0072] Optionally, the information analysis module is specifically used to:
[0073] The coordinates of each pixel area in each frame image are expressed by Indicates that, according to the overall environment brightness value, the original brightness value, the pixel value and the coordinates of each pixel area, the preliminary foreground value of each pixel area in each frame image is determined, referring to the following formula:
[0074] ;
[0075] in, For the moment The pixel region coordinates in the current frame image The initial outlook value at is the current pixel region coordinate of the current frame image, is the time point corresponding to the current frame image, is the preset foreground threshold, is the overall environment brightness value, is the original brightness value of the current pixel area in the current frame image, For the moment The pixel value of the current pixel area in the current frame image.
[0076] Optionally, the information analysis module is specifically used to:
[0077] ;
[0078] in, is the observation matrix, is the total number of pixel regions in the frame image, is the first The initial foreground value of the pixel area, is the first The original brightness value of the pixel area.
[0079] Optionally, the information analysis module is specifically used to:
[0080] ;
[0081] in, For the current moment When the current pixel area The final state value of For the previous moment When the current pixel area The final state value of is the preset gain matrix, is the preliminary foreground value of the current frame image, is the observation matrix.
[0082] Optionally, the information analysis module is specifically used to:
[0083] Analyze each pixel region in each frame image to determine a pixel value matrix;
[0084] Determining an image state matrix of each frame image according to a final state value of each pixel region in each frame image;
[0085] Based on the pixel value matrix and according to the image state matrix, the foreground image is determined, referring to the following expression:
[0086] ;
[0087] in, represents the foreground image, is the image state matrix, is the pixel value matrix;
[0088] Based on the pixel value matrix and the image state matrix, the background image is determined, referring to the following expression:
[0089] ;
[0090] in, represents the background image, is the image state matrix, is the pixel value matrix.
[0091] Optionally, the style generation module is specifically used to:
[0092] The interactive behavior information is converted into vector feature information, and based on a preset vector quantization adversarial generative network, adversarial training is performed on the preset vector quantization adversarial generative network according to the vector feature information to determine a training result;
[0093] According to the training result, several style images are determined.
[0094] Optionally, the fusion output module is specifically used to:
[0095] According to the background image, the plurality of style images, the preset fusion weight and the preset time influence coefficient, a dynamic fusion image is determined and outputted, referring to the following expression:
[0096] ;
[0097] in, For the current time point The dynamic fusion image, is the preset fusion weight, is the current style image, is the background image, is the preset time influence coefficient, For the previous time point The fused image.
[0098] Optionally, the system further comprises an adjustment module, configured to:
[0099] Analyze the interactive video information to determine the motion displacement;
[0100] According to the motion displacement, the preset blur control parameter, the preset translation function and the preset Gaussian blur function, the dynamic fusion image is adjusted to determine the highly interactive image, referring to the following expression:
[0101] ;
[0102] in, For the highly interactive image, is the preset translation function, To preset the Gaussian blur function, is the dynamic fusion image, To preset the blur level control parameters, is the displacement of the action. BRIEF DESCRIPTION OF THE DRAWINGS
[0103] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0104] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0105] Figure 2 A flowchart of a multi-scene adaptive video image intelligent recognition method provided by an embodiment of the present application;
[0106] Figure 3 A schematic diagram of the structure of a multi-scene adaptive video image intelligent recognition system provided in one embodiment of the present application. DETAILED DESCRIPTION
[0107] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0108] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0109] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0110] Existing digital art exhibitions focus on displaying the innovative artistic styles produced by the combination of digital technology and artworks. The interaction with the audience is very limited, making the audience a purely passive viewer. As a result, the audience's experience of the works is not deep and rich enough, and they are unable to resonate with digital artworks, which limits the transmission of the creative concepts of digital artworks.
[0111] Based on this, the present application provides a multi-scene adaptive video image intelligent recognition method and system, which acquires and pre-processes the exhibition area video information, determines the interactive video information, analyzes the interactive video information, extracts the interactive behavior information and the background image, determines a number of style images based on the interactive behavior information, and then fuses the several style images and the background image based on the background image, determines and outputs a dynamic fused image, realizes the interaction between digital art exhibits and user behavior, optimizes the audience's experience of digital art exhibits, enables the audience to resonate with the digital art works, and enhances the delivery effect of the creative concept of the digital art exhibits.
[0112] Figure 1 A schematic diagram of an application scenario provided for the present application. During a visitor's visit to a digital art exhibition, the method provided by the present application is used to analyze the video information of the exhibition area, output a dynamic fusion image that matches the audience's interactive actions, and enhance the audience's interactive experience.
[0113] Specifically, the method of the present application is installed in any server, which communicates with the monitoring system of the digital art exhibition hall, obtains and pre-processes the exhibition area video information, determines the interactive video information, analyzes the interactive video information, extracts the interactive behavior information and the background image, determines a number of style images based on the interactive behavior information, and then fuses the several style images and the background image based on the background image, determines and outputs a dynamic fused image, realizes the interaction between digital art exhibits and user behavior, optimizes the audience's experience of digital art exhibits, enables the audience to resonate with the digital art works, and enhances the delivery effect of the creative concept of the digital art exhibits.
[0114] For specific implementation methods, please refer to the following embodiments.
[0115] Figure 2 This is a flowchart of a multi-scenario adaptive video image intelligent recognition method provided by an embodiment of the present application. The method of this embodiment can be applied to the server in the above scenario. Figure 2 As shown, the method includes:
[0116] S201, obtaining exhibition area video information, preprocessing the exhibition area video information, and extracting interactive video information.
[0117] The exhibition area video information can be considered as the surveillance video information of the digital art exhibition area.
[0118] Interactive video information can be considered as video information containing the interaction between the digital art exhibition area visitors and the digital art exhibits.
[0119] Specifically, the monitoring system in the digital art exhibition area is used to obtain video information of the exhibition area, and then the target tracking algorithm in the video processing technology is used to pre-process the video information of the exhibition area to extract the interactive actions between the exhibitors and the digital art exhibits during the visit, such as making various gestures, choosing different poses to take photos with digital art works, etc., to provide a data basis for the subsequent control of the digital art exhibits to perform corresponding style changes according to the audience's interactive actions.
[0120] S202: Analyze the interactive video information to determine the interactive behavior information and the background image.
[0121] Interactive behavior information can be considered as the specific behavior information of the exhibitors on the digital art exhibits in the interactive video information.
[0122] The background image can be considered as the digital art exhibit image corresponding to the area where the exhibitor who performs the interactive action in the interactive video information is located.
[0123] Specifically, after extracting the interactive video information, the interactive video information is further processed through the combination of mathematical analysis methods and video processing technology, such as denoising and background separation, so as to accurately extract the audience's specific interactive behavior information and the background image in the corresponding interactive area, and further improve the accuracy of the subsequent control of the digital art exhibits to perform corresponding style transformation processes according to the audience's interactive actions.
[0124] S203: Determine a number of style images according to the interactive behavior information.
[0125] The several style images can be considered as corresponding transformation images that need to be made for the current digital art exhibit corresponding to the interactive behavior information.
[0126] Specifically, after obtaining the interactive behavior information, the interactive behavior information can be analyzed based on artificial intelligence image processing technology, such as vector quantization generative adversarial networks, to obtain several corresponding style images, thereby providing accurate data basis for the subsequent fusion of several style images with background images and the process of interacting with the audience.
[0127] S204: Based on the background image, a plurality of style images are fused with the background image to determine and output a dynamic fused image.
[0128] Dynamic fusion images can be considered as new dynamic image information formed by the fusion of several style images and background images, which can interact with the audience's behavior.
[0129] Specifically, based on the background image and several style images, the several style images are fused with the background image through image processing technology to determine a dynamic fused image, and the dynamic fused image is output in real time to interact with users and improve their exhibition experience.
[0130] Through the method provided in this embodiment, the exhibition area video information is obtained and preprocessed, the interactive video information is determined and analyzed, the interactive behavior information and the background image are extracted, and a number of style images are determined based on the interactive behavior information. Then, based on the background image, the several style images and the background image are fused, and a dynamic fused image is determined and output, so as to realize the interaction between digital art exhibits and user behavior, optimize the audience's experience of digital art exhibits, enable the audience to resonate with the digital art works, and enhance the delivery effect of the creative concept of the digital art exhibits.
[0131] In some embodiments, the interactive video information is analyzed to determine the overall environment brightness value; frame extraction is performed on the interactive video information, each frame image is analyzed, and the original brightness value of each pixel area in each frame image is determined; based on each pixel area in each frame image, the pixel value of each pixel area is determined; based on the overall environment brightness value, the original brightness value and the pixel value, a preliminary foreground value of each pixel area in each frame image is determined; based on the preliminary foreground value of each pixel area and the original brightness value of each pixel area, an observation matrix is determined; based on the preliminary foreground value of each pixel area and the observation matrix, a final state value of each pixel area in each frame image is determined; based on the final state value of each pixel area in each frame image, a foreground image and a background image are determined; the foreground image is analyzed to determine the interactive behavior information.
[0132] The frame image can be considered as an image corresponding to each frame obtained after frame extraction of interactive video information.
[0133] The pixel region can be considered as a region including multiple pixels obtained by dividing the frame image into several regions.
[0134] The overall environment brightness value can be considered as the overall brightness value in each frame of the image.
[0135] The original brightness value can be considered as the brightness value of each pixel area in the corresponding frame image.
[0136] The pixel value can be considered as the color value of the corresponding position of each pixel in the pixel area in the image data matrix corresponding to the pixel area.
[0137] The preliminary foreground value can be considered as numerical information obtained after preliminary analysis of the pixel area, which is used to represent whether the current pixel area is the foreground area. For example, when the preliminary foreground value is 1, the current pixel area is the foreground area, and when the preliminary foreground value is 0, the current pixel area is the non-foreground area.
[0138] The observation matrix can be considered as a matrix used to reflect the mathematical relationship between each preliminary foreground value and the original brightness value of each pixel area.
[0139] The final state value can be considered as the state value obtained by the final analysis to reflect whether the current pixel area is a foreground area or a background area. For example, when the final state value is 1, the current pixel area is the foreground area, and when the final state value is 0, the current pixel area is the background area.
[0140] The foreground image can be considered as the part of the frame image that only contains the audience's behavior.
[0141] The background image can be considered as the part of the image outside the foreground image in the frame image.
[0142] Specifically, when visitors visit digital art exhibitions, since digital art exhibits are usually displayed to the audience through high-definition display screens or digital projections, in the process of determining interactive behavior information and background images based on interactive video information, they are affected by the frequently changing light and shadow effects in the exhibition hall. The existing method of extracting interactive behavior information and background images through background separation technology has low accuracy.
[0143] Therefore, the overall brightness value of the interactive video information can be extracted through the brightness calculation algorithm in the image processing technology, such as the grayscale average method, and then the video frame extraction technology, such as the fixed interval sampling algorithm, can be used to extract several frames of images in the interactive video information, and each frame of the image can be divided into several pixel areas, and the original brightness value of each pixel area can be extracted. Through the pixel value extraction algorithm, such as the main color extraction algorithm, the main color value in each pixel area can be extracted as the pixel value of the pixel area.
[0144] Based on the overall environment brightness value, original brightness value and pixel value, mathematical analysis is used to determine the preliminary foreground value of each pixel area in each frame of the image, providing a data basis for subsequent adjustments based on the preliminary foreground value.
[0145] After obtaining the preliminary foreground value of each pixel area, combined with the original brightness value of each pixel area, the observation matrix used to reflect the mathematical relationship between each preliminary foreground value and the original brightness value of each pixel area is determined through mathematical analysis. Based on the observation matrix, the preliminary foreground value of each pixel area is further adjusted through mathematical analysis to determine the final state value of each pixel area, and the final state value of each pixel area is comprehensively analyzed to obtain the foreground image and the background image, thereby achieving accurate separation of the foreground and background in the frame image.
[0146] Furthermore, through a human motion recognition algorithm, such as a deep learning algorithm based on a convolutional neural network, the audience's interactive actions in the foreground image are identified, the specific interactive action information is determined, and the interactive action information is used as the interactive behavior information.
[0147] Through the method provided in this embodiment, the interactive video information is analyzed to determine the overall environment brightness value, and the pixel area in the frame image in the interactive video information is analyzed to determine the original brightness value and the pixel value. According to the overall environment brightness value, the original brightness value and the pixel value, the preliminary foreground value is determined. On the basis of the preliminary foreground value and the original brightness value, an observation matrix is obtained, and the preliminary foreground value is adjusted based on the observation matrix to determine the final state value. The final state value of each pixel area is comprehensively analyzed to obtain the foreground image and the background image. By analyzing the foreground image, the interactive behavior information is determined, which effectively avoids the negative impact of the frequently changing light and shadow in the digital art exhibition hall on the analysis of the interactive behavior information, makes the separation of the foreground image and the background image more accurate, and thus makes the digital art exhibits that are subsequently transformed according to the interactive behavior information more in line with the audience's interactive behavior, enhances the interactivity felt by the audience, and further stimulates the audience's interest in digital art exhibits.
[0148] In some embodiments, the coordinates of each pixel region in each frame image are expressed as Indicates that the preliminary foreground value of each pixel area in each frame image is determined according to the overall environment brightness value, the original brightness value, the pixel value and the coordinates of each pixel area, referring to formula (1):
[0149] (1)
[0150] in, For the moment The pixel area coordinates in the current frame image The initial outlook value at is the coordinate of the current pixel area of the current frame image, is the time point corresponding to the current frame image, is the preset foreground threshold, is the overall ambient brightness value, is the original brightness value of the current pixel area in the current frame image, For the moment The pixel value of the current pixel area in the current frame image.
[0151] The preset foreground threshold can be considered as a judgment threshold for judging whether the current pixel area is a foreground area. The preset foreground threshold can be obtained by analyzing a large amount of historical data.
[0152] Specifically, through formula (1) Correct the brightness within the pixel area and then pass The foreground difference value is extracted from the pixel area. When the foreground difference value is greater than the preset foreground threshold, the preliminary foreground value is determined to be 1, otherwise the preliminary foreground value is determined to be 0. Through the processing flow in formula (1), the brightness factor is included in the process of determining the preliminary foreground value, and the influence of the frequently changing light and shadow in the digital art exhibition hall on the process of determining the preliminary foreground value is quantified, so that the preliminary foreground value is more accurate.
[0153] Through the method provided in this embodiment, a mathematical formula is designed to calculate the preliminary foreground value based on the overall environment brightness value, the original brightness value and the pixel value and the coordinates of each pixel area. Through the processing flow in the formula, the brightness factor is incorporated into the process of determining the preliminary foreground value, and the influence of the frequently changing light and shadow in the digital art exhibition hall on the process of determining the preliminary foreground value is quantified, so that the preliminary foreground value is more accurate.
[0154] In some embodiments, the observation matrix is determined according to the preliminary foreground value of each pixel region and the original brightness value of each pixel region, referring to the matrix expression (2):
[0155] (2)
[0156] in, is the observation matrix, is the total number of pixel areas in the frame image, The first The initial foreground value of the pixel area, The first The original brightness value of the pixel area.
[0157] Specifically, the mathematical mapping relationship between the preliminary foreground value of each pixel area and the original brightness value of each pixel area is expressed by matrix expression (2), so as to provide accurate mathematical data for subsequent adjustment of the preliminary foreground value based on the observation matrix by mathematical analysis.
[0158] Through the method provided in this embodiment, a mathematical expression is used to express the mathematical mapping relationship between the preliminary foreground value of each pixel area and the original brightness value of each pixel area, so as to provide accurate mathematical data for subsequent adjustment of the preliminary foreground value based on the observation matrix through mathematical analysis means.
[0159] In some embodiments, based on the preliminary foreground value of each pixel region and the observation matrix, the final state value of each pixel region in each frame image is determined, referring to formula (3):
[0160] (3)
[0161] in, For the current moment When the current pixel area The final state value of For the previous moment When the current pixel area The final state value of is the preset gain matrix, is the initial foreground value of the current frame image, is the observation matrix.
[0162] The preset gain matrix can be considered as a mathematical matrix used to balance the weight between the preliminary foreground value and the final state value in the process of adjusting the preliminary foreground value. The preset gain matrix can adopt the Kalman gain matrix.
[0163] Specifically, through formula (3) , providing the current time The final state value before adjustment is obtained by Provides preliminary outlook value and previous moment The difference between the final state values before and after the adjustment is used to correct the adjustment process of the preliminary outlook value and is calculated through Balance the weight between the initial prospect value and the final state value, and dynamically adjust the initial prospect value based on the final state value at different times through formula (3) to improve the accuracy of the final state value.
[0164] Through the method provided in this embodiment, a mathematical formula is designed to dynamically adjust the preliminary foreground value based on the preliminary foreground value and the observation matrix of each pixel area based on the final state value at different times, so as to obtain an accurate final state value of each pixel area, thereby improving the accuracy of the foreground image and background image obtained based on the final state value.
[0165] In some embodiments, each pixel region in each frame image is analyzed to determine a pixel value matrix; an image state matrix of each frame image is determined according to the final state value of each pixel region in each frame image; and a foreground image is determined based on the pixel value matrix and the image state matrix, referring to expression (4):
[0166] (4)
[0167] in, represents the foreground image, is the image state matrix, is the pixel value matrix; based on the pixel value matrix and the image state matrix, the background image is determined, referring to expression (5):
[0168] (5)
[0169] in, Represents the background image, is the image state matrix, is a matrix of pixel values.
[0170] The pixel value matrix can be considered as a mathematical matrix composed of pixel values in each pixel area.
[0171] The image state matrix can be considered as a mathematical matrix composed of the final state values of each pixel area.
[0172] Specifically, a pixel value matrix is constructed according to the pixel value of each pixel region in each frame image, and an image state matrix is constructed according to the final state value of each pixel region. Indicates that when the image state matrix When the corresponding final state value is 1, the pixel value of the current pixel area is retained. When the corresponding final state value is 0, the pixel value of the current pixel area is deleted to determine the foreground image.
[0173] In expression (4), Indicates that when the image state matrix When the corresponding final state value is 1, the pixel value of the current pixel area is deleted. When the image state matrix When the corresponding final state value is 0, the pixel value of the current pixel area is retained to determine the background image.
[0174] Through the method provided in this embodiment, each pixel area is analyzed to determine the pixel value matrix and the image state matrix. Based on the pixel value matrix and the image state matrix, the foreground image and the background image are determined through mathematical expressions, thereby improving the efficiency of determining the foreground image and the background image while ensuring the accuracy of the foreground image and the background image.
[0175] In some embodiments, the interactive behavior information is converted into vector feature information, and based on a preset vector quantization adversarial generative network, adversarial training is performed on the preset vector quantization adversarial generative network according to the vector feature information to determine the training results; and a number of style images are determined according to the training results.
[0176] Vector feature information can be considered as a vector expression of interactive behavior information. The interactive behavior information can be converted into corresponding vector feature information through Python data processing libraries such as NumPY and Pandas.
[0177] The preset vector quantization generative adversarial network can be considered as a vector quantization generative adversarial network constructed based on interactive behavior information extracted from a large amount of historical video information.
[0178] The training result can be considered as data corresponding to the training sample, such as an image, generated after training the preset vector quantization adversarial generative network based on the vector feature information.
[0179] The several style images may be considered as several different style images corresponding to the interactive behavior information.
[0180] Specifically, after determining the user interaction behavior information, the interaction behavior information is converted into vector feature information, and the vector feature information is provided to a preset vector quantization generative adversarial network, and the preset vector quantization generative adversarial network is trained so that the preset vector quantization generative adversarial network generates a number of style images. By using the vector quantization generative adversarial network to generate a number of style images, the generation diversity is ensured, and different style images with creativity and imagination are obtained.
[0181] Through the method provided in this embodiment, adversarial training is performed on a preset vector quantization generative adversarial network according to the vector feature information corresponding to the interactive behavior information, and a number of style images are determined based on the training results. By using a vector quantization generative adversarial network to generate a number of style images, generation diversity is ensured, and different style images with creativity and imagination are obtained to enhance the user experience.
[0182] In some embodiments, a dynamic fusion image is determined and outputted according to a background image, a plurality of style images, a preset fusion weight and a preset time influence coefficient, referring to expression (6):
[0183] (6)
[0184] in, For the current time point Dynamic fusion image, is the preset fusion weight, is the current style image, For the background image, is the preset time influence coefficient, For the previous time point fused image.
[0185] The dynamic fusion image can be considered as a dynamic image formed by the fusion of several style images and the background image in the background image.
[0186] The preset fusion weight can be considered as the weight of the corresponding fusion of different style images with the background image, and the preset fusion weight can be obtained by analyzing historical data.
[0187] The preset time influence coefficient can be considered as a quantitative coefficient reflecting the influence of time change on the image fusion process, and the preset time influence coefficient can be obtained by analyzing historical data.
[0188] Specifically, in the process of fusing several style images with the background image, the influence of different style images and time changes on the fused image is comprehensively considered through expression (6), and finally a dynamic fused image at different time points is obtained, so that the styles in the dynamic fused image are not conflicting and abrupt.
[0189] Through the method provided in this embodiment, the influence of different style images and time changes on the fused image is comprehensively considered, the fusion process of the dynamic fused image is accurately reflected through mathematical expressions, and the dynamic fused images under different time bags are obtained, which enhances the fusion effect of different style images and the background image, and makes the styles in the dynamic fused image not conflicting and abrupt.
[0190] In some embodiments, the interactive video information is analyzed to determine the motion displacement; according to the motion displacement, the preset blur control parameter, the preset translation function and the preset Gaussian blur function, the dynamic fusion image is adjusted to determine the highly interactive image, referring to the following expression (7):
[0191] (7)
[0192] in, For highly interactive images, is the preset translation function, To preset the Gaussian blur function, For dynamic fusion images, To preset the blur level control parameters, is the action displacement.
[0193] The action displacement can be considered as the displacement of the audience's interactive action, and the action displacement can be obtained by extracting the audience's interactive action displacement in the interactive video information through an image processing library.
[0194] Highly interactive images can be considered as dynamic images that are more closely matched with the audience's interactive actions after adjusting the dynamic fusion image.
[0195] The preset translation function may be considered as a preset mathematical function for translating pixel positions in an image. The preset translation function may adopt a translation function provided in an existing image processing library.
[0196] The preset Gaussian blur function can be considered as a mathematical function that convolves an image with a Gaussian kernel to make the image transition smooth. The preset Gaussian blur function can adopt the Gaussian blur function provided in an existing image processing library.
[0197] The preset blur degree control parameter can be considered as a preset parameter for controlling the Gaussian blur degree, and the preset blur degree control parameter can be adjusted according to actual conditions, or a general blur degree control parameter can be obtained by analyzing historical data. The general blur degree control parameter is used as the preset blur degree control parameter.
[0198] Specifically, based on the dynamic fusion image, Gaussian blur processing is performed on the dynamic fusion image through expression (7) to make the transition between different areas in the dynamic fusion image smoother, and pixel translation adjustment is performed on the dynamic fusion image according to the displacement of the audience's interactive action to determine the high-interactive image, so that the high-interactive image and the audience's interactive action maintain a high match.
[0199] Through the method provided in this embodiment, on the basis of the dynamic fusion image, Gaussian blur processing is performed on the dynamic fusion image through mathematical expressions to make the transition between different areas in the dynamic fusion image smoother, and pixel translation adjustment is performed on the dynamic fusion image according to the action displacement to determine a highly interactive image, so that the highly interactive image and the audience's interactive actions maintain a high match, thereby further enhancing the audience's interactive experience.
[0200] Figure 3 A schematic diagram of a multi-scenario adaptive video image intelligent recognition system provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the multi-scene adaptive video image intelligent recognition system 300 of this embodiment includes: an information extraction module 301 , an information analysis module 302 , a style generation module 303 and a fusion output module 304 .
[0201] The information extraction module 301 is used to obtain the exhibition area video information, pre-process the exhibition area video information, and extract the interactive video information;
[0202] An information analysis module 302 is used to analyze the interactive video information to determine interactive behavior information and background images;
[0203] A style generation module 303, used to determine a number of style images according to the interactive behavior information;
[0204] The fusion output module 304 is used to fuse the plurality of style images with the background image based on the background image, and determine and output a dynamic fusion image.
[0205] Optionally, the information analysis module 302 is specifically used to:
[0206] Analyze the interactive video information to determine the overall environment brightness value;
[0207] Extracting frames of the interactive video information, analyzing each frame image, and determining the original brightness value of each pixel area in each frame image;
[0208] Determine the pixel value of each pixel region according to each pixel region of each frame image;
[0209] Determine a preliminary foreground value of each pixel region in each of the frame images according to the overall environment brightness value, the original brightness value and the pixel value;
[0210] Determine an observation matrix according to a preliminary foreground value of each pixel region and an original brightness value of each pixel region;
[0211] Determine a final state value of each pixel region in each of the frame images based on a preliminary foreground value of each pixel region and the measurement matrix;
[0212] Determine a foreground image and a background image according to a final state value of each pixel region in each of the frame images;
[0213] The foreground image is analyzed to determine the interactive behavior information.
[0214] Optionally, the information analysis module 302 is specifically used to:
[0215] The coordinates of each pixel area in each frame image are expressed by Indicates that, according to the overall environment brightness value, the original brightness value, the pixel value and the coordinates of each pixel area, the preliminary foreground value of each pixel area in each frame image is determined, referring to the following formula:
[0216] (1)
[0217] in, For the moment The pixel region coordinates in the current frame image The initial outlook value at is the current pixel region coordinate of the current frame image, is the time point corresponding to the current frame image, is the preset foreground threshold, is the overall environment brightness value, is the original brightness value of the current pixel area in the current frame image, For the moment The pixel value of the current pixel area in the current frame image.
[0218] Optionally, the information analysis module 302 is specifically used to:
[0219] (2)
[0220] in, is the observation matrix, is the total number of pixel regions in the frame image, is the first The initial foreground value of the pixel area, is the first The original brightness value of the pixel area.
[0221] Optionally, the information analysis module 302 is specifically used to:
[0222] (3)
[0223] in, For the current moment When the current pixel area The final state value of For the previous moment When the current pixel area The final state value of is the preset gain matrix, is the preliminary foreground value of the current frame image, is the observation matrix.
[0224] Optionally, the information analysis module 302 is specifically used to:
[0225] Analyze each pixel region in each frame image to determine a pixel value matrix;
[0226] Determining an image state matrix of each frame image according to a final state value of each pixel region in each frame image;
[0227] Based on the pixel value matrix and according to the image state matrix, the foreground image is determined, referring to the following expression:
[0228] (4)
[0229] in, represents the foreground image, is the image state matrix, is the pixel value matrix;
[0230] Based on the pixel value matrix and the image state matrix, the background image is determined, referring to the following expression:
[0231] (5)
[0232] in, represents the background image, is the image state matrix, is the pixel value matrix.
[0233] Optionally, the style generation module 303 is specifically used to:
[0234] The interactive behavior information is converted into vector feature information, and based on a preset vector quantization adversarial generative network, adversarial training is performed on the preset vector quantization adversarial generative network according to the vector feature information to determine a training result;
[0235] According to the training result, several style images are determined.
[0236] Optionally, the fusion output module 304 is specifically used to:
[0237] According to the background image, the plurality of style images, the preset fusion weight and the preset time influence coefficient, a dynamic fusion image is determined and outputted, referring to the following expression:
[0238] (6)
[0239] in, For the current time point The dynamic fusion image, is the preset fusion weight, is the current style image, is the background image, is the preset time influence coefficient, For the previous time point The fused image.
[0240] Optionally, the system further includes an adjustment module 305, configured to:
[0241] Analyze the interactive video information to determine the motion displacement;
[0242] According to the motion displacement, the preset blur control parameter, the preset translation function and the preset Gaussian blur function, the dynamic fusion image is adjusted to determine the highly interactive image, referring to the following expression:
[0243] (7)
[0244] in, For the highly interactive image, is the preset translation function, To preset the Gaussian blur function, is the dynamic fusion image, To preset the blur level control parameters, is the displacement of the action.
[0245] The system of this embodiment can be used to execute the method of any of the above embodiments. The implementation principles and technical effects are similar and will not be described in detail here.
Claims
1. A multi-scene adaptive video image intelligent recognition method, characterized in that: include: Acquire exhibition area video information, pre-process the exhibition area video information, and extract interactive video information; Analyze the interactive video information to determine interactive behavior information and background image; Determining a number of style images according to the interactive behavior information; Based on the background image, the plurality of style images are fused with the background image to determine and output a dynamic fused image; The analyzing the interactive video information to determine the interactive behavior information and the background image includes: Analyze the interactive video information to determine the overall environment brightness value; Extracting frames of the interactive video information, analyzing each frame image, and determining the original brightness value of each pixel area in each frame image; Determine the pixel value of each pixel region according to each pixel region of each frame image; Determine a preliminary foreground value of each pixel region in each of the frame images according to the overall environment brightness value, the original brightness value and the pixel value; Determine an observation matrix according to a preliminary foreground value of each pixel region and an original brightness value of each pixel region; Determine a final state value of each pixel region in each of the frame images based on a preliminary foreground value of each pixel region and the measurement matrix; Determine a foreground image and a background image according to a final state value of each pixel region in each of the frame images; Analyzing the foreground image to determine the interactive behavior information; The step of determining the preliminary foreground value of each pixel region in each frame image according to the overall environment brightness value, the original brightness value and the pixel value comprises: The coordinates of each pixel area in each frame image are expressed by Indicates that, according to the overall environment brightness value, the original brightness value, the pixel value and the coordinates of each pixel area, the preliminary foreground value of each pixel area in each frame image is determined, referring to the following formula: ; in, For the moment The pixel region coordinates in the current frame image The initial outlook value at is the current pixel region coordinate of the current frame image, is the time point corresponding to the current frame image, is the preset foreground threshold, is the overall environment brightness value, is the original brightness value of the current pixel area in the current frame image, For the moment The pixel value of the current pixel area in the current frame image; The step of determining the measurement matrix according to the preliminary foreground value of each pixel region and the original brightness value of each pixel region comprises: ; in, is the observation matrix, is the total number of pixel regions in the frame image, is the first The initial foreground value of the pixel area, is the first The original brightness value of the pixel area; The step of determining the final state value of each pixel region in each frame image based on the preliminary foreground value of each pixel region and the observation matrix comprises: ; in, For the current moment When the current pixel area The final state value of For the previous moment When the current pixel area The final state value of is the preset gain matrix, is the preliminary foreground value of the current frame image, is the observation matrix; The step of determining the foreground image and the background image according to the final state value of each pixel region in each frame image comprises: Analyze each pixel region in each frame image to determine a pixel value matrix; Determining an image state matrix of each frame image according to a final state value of each pixel region in each frame image; Based on the pixel value matrix and according to the image state matrix, the foreground image is determined, referring to the following expression: ; in, represents the foreground image, is the image state matrix, is the pixel value matrix; Based on the pixel value matrix and the image state matrix, the background image is determined, referring to the following expression: ; in, represents the background image, is the image state matrix, is the pixel value matrix.
2. The method according to claim 1, characterized in that Determining a plurality of style images according to the interactive behavior information includes: The interactive behavior information is converted into vector feature information, and based on a preset vector quantization adversarial generative network, adversarial training is performed on the preset vector quantization adversarial generative network according to the vector feature information to determine a training result; According to the training result, several style images are determined.
3. The method according to claim 2, characterized in that The step of fusing the plurality of style images with the background image based on the background image, and determining and outputting a dynamic fused image comprises: According to the background image, the plurality of style images, the preset fusion weight and the preset time influence coefficient, a dynamic fusion image is determined and outputted, referring to the following expression: ; in, For the current time point The dynamic fusion image, is the preset fusion weight, is the current style image, is the background image, is the preset time influence coefficient, For the previous time point The fused image.
4. The method according to claim 3, characterized in that The method further comprises: Analyze the interactive video information to determine the motion displacement; According to the motion displacement, the preset blur control parameter, the preset translation function and the preset Gaussian blur function, the dynamic fusion image is adjusted to determine the highly interactive image, referring to the following expression: ; in, For the highly interactive image, is the preset translation function, To preset the Gaussian blur function, is the dynamic fusion image, To preset the blur level control parameters, is the displacement of the action.
5. A multi-scene adaptive video image intelligent recognition system, characterized in that: The method as claimed in any one of claims 1 to 4 above comprises: An information extraction module is used to obtain exhibition area video information, pre-process the exhibition area video information, and extract interactive video information; An information analysis module, used to analyze the interactive video information and determine the interactive behavior information and background image; A style generation module, used to determine a number of style images according to the interactive behavior information; A fusion output module, used to fuse the plurality of style images with the background image based on the background image, and determine and output a dynamic fusion image; The information analysis module is specifically used for: Analyze the interactive video information to determine the overall environment brightness value; Extracting frames of the interactive video information, analyzing each frame image, and determining the original brightness value of each pixel area in each frame image; Determine the pixel value of each pixel region according to each pixel region of each frame image; Determine a preliminary foreground value of each pixel region in each of the frame images according to the overall environment brightness value, the original brightness value and the pixel value; Determine an observation matrix according to a preliminary foreground value of each pixel region and an original brightness value of each pixel region; Determine a final state value of each pixel region in each of the frame images based on a preliminary foreground value of each pixel region and the measurement matrix; Determine a foreground image and a background image according to a final state value of each pixel region in each of the frame images; The foreground image is analyzed to determine the interactive behavior information.
Citation Information
Patent Citations
Method for fusing events in video summarization and backgrounds
CN104717574A
Image processing method and device, electronic device and computer readable storage medium
CN107730509A
Gaussian mixture model and H-S (Horn-Schunck) optical flow method fused video foreground target extracting method
CN108564597A
Man-machine interaction method and device based on story scene, equipment and medium
CN116943191A
Indoor scene virtual roaming method based on reflection decomposition
US20240169674A1
