AI large model target recognition high-precision and high-resolution video encoding method and system

Through the target recognition method of the AI ​​​​large model, the key and non-key content in the video is extracted, and the convolutional neural network is used to construct virtual images, which solves the problem of low efficiency of high-precision and high-resolution video coding in the existing technology and achieves more efficient Encoding processing.

CN117915096BActive Publication Date: 2024-09-10BEIJING DAXING ECONOMIC DEV ZONE DEV & OPERATION CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311716249.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-14
Publication Date
2024-09-10
Estimated Expiration
2043-12-14

AI Technical Summary

Technical Problem

When processing videos, existing high-precision and high-resolution video encoding methods also encode irrelevant content, resulting in an increase in the amount of calculation and a decrease in encoding efficiency.

Method used

Using the target recognition method of the AI ​​​​large model, through video frame processing, signal analysis, subject recognition and image segmentation, key subjects and non-key subjects are extracted, and convolutional neural networks and autoencoders are used to construct virtual images and generate the final encoded image. Improve coding efficiency.

Benefits of technology

Effectively separates and encodes video images, reduces computational costs, and improves the encoding efficiency of high-precision and high-resolution videos.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117915096B
    Figure CN117915096B
Patent Text Reader

Abstract

The present invention relates to the technical field of video coding, and provides a high-precision and high-resolution video coding method and system for target recognition of an AI large model, including: performing video framing processing on a high-definition video stream to obtain a framed video, identifying a video image in the framed video, optimizing the video image to obtain an optimized video image; performing signal analysis on the optimized video image to obtain an image signal, and calculating a signal amplitude value corresponding to the image signal; performing subject recognition on the target video image to obtain an image subject, performing image segmentation on the target video image to obtain a key subject image and a non-key subject image, encoding the key subject image to obtain an encoded image; extracting visual features corresponding to the non-key subject image, constructing a virtual image corresponding to the non-key subject image, and generating a final encoded image corresponding to the target video image. The present invention aims to improve the encoding efficiency of high-precision and high-resolution videos.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video coding technology, and in particular to a high-precision and high-resolution video coding method and system for target recognition of a large AI model. Background Art

[0002] High-precision and high-resolution video refers to video with higher image quality and resolution. It can provide clearer and more realistic image details. Current live broadcasts of sports events or international conferences will use high-precision and high-resolution video, allowing viewers to better appreciate and feel the video content. Videos need to be encoded during processing to facilitate better video transmission.

[0003] However, the existing high-precision and high-resolution video encoding methods mainly adopt the H.264 / AVC method. This method obtains high-quality encoded video through processing methods such as motion estimation, transform coding, quantization and entropy coding. However, during the processing, this method will also encode irrelevant content in the video, such as the grass in the stadium or physical scenes such as the audience, thereby increasing the computational complexity of video encoding and reducing the encoding efficiency of high-precision and high-resolution video. Therefore, a method that can improve the encoding efficiency of high-precision and high-resolution video is needed. Summary of the invention

[0004] The present invention provides a high-precision and high-resolution video encoding method and system for target recognition of an AI large model, the main purpose of which is to improve the encoding efficiency of high-precision and high-resolution videos.

[0005] To achieve the above-mentioned purpose, the present invention provides a high-precision and high-resolution video encoding method for target recognition of an AI large model, comprising:

[0006] Acquire a high-definition video stream to be encoded, perform video frame processing on the high-definition video stream to obtain a framed video, identify a video image in the framed video, and optimize the video image to obtain an optimized video image;

[0007] Performing signal analysis on the optimized video image to obtain an image signal, calculating a signal amplitude value corresponding to the image signal, performing deduplication processing on the optimized video image according to the signal amplitude value to obtain a target video image, mining image information corresponding to each image in the target video image, and analyzing an image scene corresponding to the video image according to the image information;

[0008] Performing subject recognition on the target video image to obtain an image subject, extracting subject features corresponding to the image subject, analyzing the association relationship between the image scene and the subject features, and determining key subjects and non-key subjects in the image subject based on the association relationship;

[0009] According to the key subject and the non-key subject, the target video image is segmented to obtain a key subject image and a non-key subject image, and the key subject image is encoded to obtain an encoded image;

[0010] The non-critical subject image is input into the trained AI big model, and the convolutional neural network in the AI ​​big model is used to extract the visual features corresponding to the non-critical subject image. Based on the visual features, the autoencoder in the AI ​​big model is used to construct a virtual image corresponding to the non-critical subject image, and based on the encoded image and the virtual image, a final encoded image corresponding to the target video image is generated.

[0011] Optionally, the optimizing the video image to obtain an optimized video image includes:

[0012] Performing noise reduction processing on the video image to obtain a noise-reduced video image;

[0013] Performing distortion restoration processing on the denoised video image to obtain a restored video image;

[0014] Performing distortion correction processing on the repaired video image to obtain a corrected video image;

[0015] Calculating pixel intensity values ​​corresponding to pixel points of the corrected video image, and performing equalization processing on the pixel intensity values ​​to obtain equalized pixels;

[0016] According to the equalized pixels, pixel optimization processing is performed on the corrected video image to obtain an optimized video image.

[0017] Optionally, performing noise reduction processing on the video image to obtain a noise-reduced video image includes:

[0018] The video image is subjected to noise reduction processing by the following formula:

[0019]

[0020] Among them, A represents the denoised video image, a and b represent the length and width of the convolution window respectively. Represents the convolution window for denoising pixels in the video image. Represents video images

[0021] Optionally, calculating the signal amplitude value corresponding to the image signal includes:

[0022] The signal amplitude value corresponding to the image signal is calculated by the following formula:

[0023]

[0024] Among them, E represents the signal amplitude value corresponding to the image signal, and F represents the length value corresponding to the image signal. represents the time domain energy corresponding to the dth signal sampling point in the image signal, d represents the signal starting sampling point of the image signal, t represents the number of signal sampling points of the image signal, Represents the frequency domain energy corresponding to the dth signal sampling point of the image signal, Represents the frequency domain conversion coefficient corresponding to the image signal.

[0025] Optionally, analyzing the image scene corresponding to the video image according to the image information includes:

[0026] Extracting information description characters corresponding to the image information;

[0027] Performing semantic analysis on the information description characters to obtain character interpretations;

[0028] Determining the information scene corresponding to the image information according to the character interpretation;

[0029] The scene frequencies corresponding to the information scenes are counted, and the target scene of the image information is determined according to the scene frequencies.

[0030] Optionally, extracting subject features corresponding to the subject of the image includes:

[0031] Identify the main body texture corresponding to the main body of the image, and calculate the pixel grayscale value corresponding to each pixel point in the main body texture;

[0032] According to the pixel grayscale value, construct a texture matrix corresponding to the main texture, and calculate a matrix mean value corresponding to the texture matrix;

[0033] Extracting texture features corresponding to the main body texture according to a preset threshold and the matrix mean;

[0034] Extract the color features corresponding to the main body of the image, and use the texture features and the color features as the main features of the main body of the image

[0035] Optionally, extracting a color feature corresponding to the main body of the image includes:

[0036] The color features corresponding to the main body of the image are extracted by the following formula:

[0037]

[0038] Among them, Q represents the color feature corresponding to the main body of the image, represents the normalization algorithm, represents the pixel mean corresponding to the e-th subject in the image body, e represents the subject sequence number of the image body, The number of subjects representing the subject of the image, represents the pixel value corresponding to the i-th pixel in the e-th subject, i represents the pixel sequence number of the image subject, represents the pixel variance corresponding to the e-th subject in the image body, Represents the pixel skewness coefficient corresponding to the e-th subject in the image subject.

[0039] Optionally, the analyzing the association relationship between the image scene and the subject feature includes:

[0040] Analyzing characteristic elements in the subject features, and analyzing visual elements corresponding to the image scene;

[0041] Calculating a correlation coefficient between the visual element and the feature element;

[0042] Performing vectorization processing on the feature element and the visual element respectively to obtain a feature element vector and a visual element vector;

[0043] Calculating the vector similarity between the feature element vector and the visual element vector;

[0044] Combine the vector similarity and the correlation coefficient to analyze the correlation relationship between the image scene and the subject feature

[0045] Optionally, the calculating the vector similarity between the feature element vector and the visual element vector includes:

[0046] The vector similarity between the feature element vector and the visual element vector is calculated by the following formula:

[0047]

[0048] Where N represents the vector similarity between the feature element vector and the visual element vector, j and j+1 represent the sequence numbers of the feature element vector and the visual element respectively. The total number of vectors representing the eigenvalue vectors, represents the vector value of the jth vector in the feature element vector, Represents the vector value of the j+1th vector in the visual element vector.

[0049] An AI large-model target recognition high-precision and high-resolution video encoding system, characterized in that the system comprises:

[0050] An image optimization module is used to obtain a high-definition video stream to be encoded, perform video frame processing on the high-definition video stream to obtain a framed video, identify a video image in the framed video, and optimize the video image to obtain an optimized video image;

[0051] A scene analysis module is used to perform signal analysis on the optimized video image to obtain an image signal, calculate a signal amplitude value corresponding to the image signal, perform deduplication processing on the optimized video image according to the signal amplitude value to obtain a target video image, mine image information corresponding to each image in the target video image, and analyze an image scene corresponding to the video image according to the image information;

[0052] A subject analysis module is used to perform subject recognition on the target video image to obtain an image subject, extract subject features corresponding to the image subject, analyze the association between the image scene and the subject features, and determine the key subject and non-key subject in the image subject based on the association;

[0053] An image encoding module is used to perform image segmentation on the target video image according to the key subject and the non-key subject to obtain a key subject image and a non-key subject image, and perform encoding processing on the key subject image to obtain an encoded image;

[0054] An image construction module is used to input the non-key subject image into a trained AI large model, use the convolutional neural network in the AI ​​large model to extract the visual features corresponding to the non-key subject image, and use the autoencoder in the AI ​​large model to construct a virtual image corresponding to the non-key subject image based on the visual features, and generate a final encoded image corresponding to the target video image based on the encoded image and the virtual image.

[0055] The present invention performs video frame processing on the high-definition video stream, and can decompose the high-definition video stream into a single frame video, thereby reducing the difficulty of video image recognition processing. Compared with multi-frame video, the efficiency of identifying the video image corresponding to a single frame video is higher. The present invention can obtain the electrical signal of the optimized video image by performing signal analysis on the optimized video image, and calculate the signal amplitude value corresponding to the image signal, so as to facilitate the subsequent removal of repeated images in the optimized video image and avoid subsequent calculation and processing of repeated images. The present invention extracts the subject features corresponding to the image subject, and can obtain the relevant representation of the image subject. According to the relevant representation, the accuracy of subsequent correlation relationship analysis is improved. The present invention performs image segmentation on the target video image according to the key subject and the non-key subject, and can effectively separate the target video image, which is convenient for the subsequent hybrid coding processing of the target video image, thereby improving the coding efficiency of the image. Therefore, the high-precision and high-resolution video coding method and system for target recognition of an AI large model provided in an embodiment of the present invention can improve the coding efficiency of high-precision and high-resolution video. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 A flowchart of a high-precision and high-resolution video encoding method for target recognition of an AI large model provided by an embodiment of the present invention;

[0057] Figure 2 A functional module diagram of a high-precision and high-resolution video encoding system for target recognition of an AI large model provided in one embodiment of the present invention.

[0058] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION

[0059] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0060] The embodiment of the present application provides a high-precision and high-resolution video encoding method for target recognition of an AI large model. In the embodiment of the present application, the execution subject of the high-precision and high-resolution video encoding method for target recognition of an AI large model includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided in the embodiment of the present application. In other words, the high-precision and high-resolution video encoding method for target recognition of an AI large model can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.

[0061] Reference Figure 1 FIG. 1 is a flow chart of a method for high-precision and high-resolution video encoding of a target recognition of an AI large model provided by an embodiment of the present invention. In this embodiment, the method for high-precision and high-resolution video encoding of a target recognition of an AI large model includes steps S1-S5.

[0062] S1. Obtain a high-definition video stream to be encoded, perform video frame processing on the high-definition video stream to obtain a framed video, identify a video image in the framed video, and optimize the video image to obtain an optimized video image.

[0063] The present invention performs video frame processing on the high-definition video stream, and can decompose the high-definition video stream into single-frame videos, thereby reducing the difficulty of video image recognition processing. Compared with multi-frame videos, it is more efficient to identify the video image corresponding to a single-frame video. The high-definition video stream is a video data stream with higher resolution, higher frame rate and higher bit rate, which can provide clearer, more delicate and more realistic images and smoother animation effects. For example, scenes such as live broadcasts of sports events or broadcasts of international conferences all use high-definition video streams. The framed video is a single-frame video corresponding to the high-definition video stream, and the video image is a static image corresponding to the framed video. Optionally, the video frame processing of the high-definition video stream can be performed by a video frame tool, such as an OpenCV tool, and the identification of the video image in the framed video can be achieved by an image recognition tool, and the image recognition tool is compiled by a script language.

[0064] The present invention can improve the image quality of the video image by optimizing the video image, thereby making the image signal obtained by subsequent signal analysis more accurate, wherein the optimized video image is a high-quality image obtained after the video image is optimized.

[0065] As an embodiment of the present invention, the optimization processing of the video image to obtain an optimized video image includes: performing noise reduction processing on the video image to obtain a noise-reduced video image, performing distortion repair processing on the denoised video image to obtain a repaired video image, performing distortion correction processing on the repaired video image to obtain a corrected video image, calculating pixel intensity values ​​corresponding to pixel points of the corrected video image, performing equalization processing on the pixel intensity values ​​to obtain equalized pixels, and performing pixel optimization processing on the corrected video image based on the equalized pixels to obtain an optimized video image.

[0066] Among them, the denoised video image is an image obtained after suppressing the noise points in the video image, the repaired video image is an image obtained after repairing the distortion artifacts in the denoised video image, the corrected video image is an image obtained after repairing the geometric distortion or lens distortion in the repaired video image, the pixel intensity value is the value corresponding to the pixel point of the corrected video image, and the equalized pixel is the pixel obtained after the pixel intensity value is equalized.

[0067] Optionally, distortion repair processing of the denoised video image can be achieved through a blind deconvolution method, and distortion correction processing of the repaired video image can be achieved through a distortion model, such as a Brown model. The pixel intensity value corresponding to the pixel point of the corrected video image can be calculated using the following formula: pixel intensity value = 0.299R + 0.587*G + 0.114*B, where R, G, and B are the pixel values ​​of the red, green, and blue channels, respectively. Equalization processing of the pixel intensity value can be achieved through a pixel histogram equalization method, and the corrected video image can be updated by using the equalized pixels, thereby performing pixel optimization processing on the corrected video image.

[0068] Further, as an optional embodiment of the present invention, the performing noise reduction processing on the video image to obtain the noise-reduced video image includes:

[0069] The video image is subjected to noise reduction processing by the following formula:

[0070]

[0071] Among them, A represents the denoised video image, a and b represent the length and width of the convolution window respectively. Represents the convolution window for denoising pixels in the video image. Represents a video image.

[0072] S2. Perform signal analysis on the optimized video image to obtain an image signal, calculate a signal amplitude value corresponding to the image signal, perform deduplication processing on the optimized video image based on the signal amplitude value to obtain a target video image, mine image information corresponding to each image in the target video image, and analyze the image scene corresponding to the video image based on the image information.

[0073] The present invention can obtain the electrical signal of the optimized video image by performing signal analysis on the optimized video image, and calculate the signal amplitude value corresponding to the image signal, so as to facilitate the subsequent removal of repeated images in the optimized video image and avoid subsequent calculation and processing of the repeated images, wherein the image signal is the electrical signal corresponding to the optimized video image when it is transmitted or processed, and the signal amplitude value represents the signal strength corresponding to the image signal. Optionally, signal analysis of the optimized video image can be achieved by a signal analysis tool, such as a video decoder.

[0074] As an embodiment of the present invention, the calculating the signal amplitude value corresponding to the image signal includes:

[0075] The signal amplitude value corresponding to the image signal is calculated by the following formula:

[0076]

[0077] Among them, E represents the signal amplitude value corresponding to the image signal, and F represents the length value corresponding to the image signal. represents the time domain energy corresponding to the dth signal sampling point in the image signal, d represents the signal starting sampling point of the image signal, t represents the number of signal sampling points of the image signal, Represents the frequency domain energy corresponding to the dth signal sampling point of the image signal, Represents the frequency domain conversion coefficient corresponding to the image signal.

[0078] The present invention performs deduplication processing on the optimized video image according to the signal amplitude value, which can reduce the number of images in the optimized video image, reduce the subsequent computing cost of the image, and mine the image information corresponding to each image in the target video image to obtain the content contained in each image in the target video image, thereby providing a basis for subsequent image scene analysis, wherein the image information is the content contained in each image in the target video image, such as objects or characters in the image, etc. Optionally, deduplication processing on the optimized video image can be achieved through a perceptual hash algorithm, and the specific steps are: using a perceptual hash function to calculate the hash value corresponding to the optimized video image, and then comparing the difference in the hash values ​​to determine the similarity of the optimized video images. When the similarity is greater than a preset threshold similarity, mining the image information corresponding to each image in the target video image can be achieved through a neural network model, such as a recurrent neural network.

[0079] The present invention analyzes the image scene corresponding to the video image based on the image information, so as to determine the specific application scene corresponding to the video image, thereby facilitating the subsequent distinction of the image subject, wherein the image scene is the specific application scene corresponding to the video image, such as international video or live broadcast of sports events.

[0080] As an embodiment of the present invention, analyzing the image scene corresponding to the video image based on the image information includes: extracting information description characters corresponding to the image information, performing semantic analysis on the information description characters to obtain character interpretations, determining the information scene corresponding to the image information based on the character interpretations, counting the scene frequency corresponding to the information scene, and determining the target scene of the image information based on the scene frequency.

[0081] Among them, the information description character is the description text corresponding to the image information, the character interpretation is the meaning corresponding to the information description character, the information scene is the scene corresponding to each information in the image information, and the scene frequency represents the number of occurrences of the scene corresponding to the information scene.

[0082] Optionally, extracting information description characters corresponding to the image information can be achieved through OCR text recognition technology, semantic analysis of the information description characters can be achieved through a semantic analysis method, and the information scene corresponding to the image information can be determined based on the interpretation content corresponding to the character interpretation. Counting the scene frequency corresponding to the information scene can be achieved through a counting method, and the information scene that appears most times in the scene frequency can be used as the target scene of the image information.

[0083] S3. Perform subject recognition on the target video image to obtain an image subject, extract subject features corresponding to the image subject, analyze the association between the image scene and the subject features, and determine the key subject and non-key subject in the image subject based on the association.

[0084] The present invention extracts the subject features corresponding to the image subject, and can obtain the relevant representation of the image subject. According to the relevant representation, the accuracy of subsequent association relationship analysis is improved, wherein the image subject is the most important target or object in the target video image, and the subject features are the representations corresponding to the image subject. Optionally, subject recognition of the target video image can be achieved through a target detection algorithm, such as the FasterR-CNN algorithm.

[0085] As an embodiment of the present invention, the extracting of the main features corresponding to the image body includes: identifying the main texture corresponding to the image body, calculating the pixel grayscale value corresponding to each pixel in the main texture, constructing a texture matrix corresponding to the main texture according to the pixel grayscale value, calculating the matrix mean corresponding to the texture matrix, extracting the texture features corresponding to the main texture according to a preset threshold and the matrix mean, and extracting the color features corresponding to the image body, and using the texture features and the color features as the main features of the image body.

[0086] Among them, the main texture is the texture corresponding to the main body of the image, the pixel grayscale value is the brightness value corresponding to the image in which the main texture is expressed only in a single tone, the texture matrix is ​​a square matrix constructed by the pixel grayscale values, the preset threshold is the standard value for judging the matrix mean, the texture feature is the texture representation corresponding to the main texture, and the color feature is the color representation corresponding to the main body of the image.

[0087] Optionally, identifying the main texture corresponding to the image body can be achieved through the LBP algorithm, calculating the pixel grayscale value corresponding to each pixel point in the main texture can be achieved through the average method, averaging the pixel values ​​of the red, green and blue channels of each pixel to obtain the pixel grayscale value, constructing the texture matrix corresponding to the main texture can be achieved through a matrix function, such as a zero matrix function, calculating the matrix mean corresponding to the texture matrix can be achieved through the average function, extracting the texture features corresponding to the main texture can be achieved through the grayscale co-occurrence moment algorithm, and taking the texture features and the color features as the main features of the image body.

[0088] Optionally, as an optional embodiment of the present invention, the extracting the color feature corresponding to the image subject includes:

[0089] The color features corresponding to the main body of the image are extracted by the following formula:

[0090]

[0091] Among them, Q represents the color feature corresponding to the main body of the image, represents the normalization algorithm, represents the pixel mean corresponding to the e-th subject in the image body, e represents the subject sequence number of the image body, The number of subjects representing the subject of the image, represents the pixel value corresponding to the i-th pixel in the e-th subject, i represents the pixel sequence number of the image subject, represents the pixel variance corresponding to the e-th subject in the image body, Represents the pixel skewness coefficient corresponding to the e-th subject in the image subject.

[0092] By analyzing the correlation relationship between the image scene and the subject features, the present invention can understand the degree of correlation between the image scene and the subject features through the correlation relationship, thereby facilitating the subsequent determination of key subjects and non-key subjects in the image subject, and providing a basis for subsequent image segmentation, wherein the correlation relationship is the degree of correlation between the image scene and the subject features, the key subject is the subject in the image subject with the highest correlation relationship corresponding to the image scene, such as an athlete in a sports event, and the non-key subject is the subject in the image subject with the lowest correlation relationship corresponding to the image scene, such as a spectator in a stadium. Optionally, the key subject and non-key subjects in the image subject can be determined according to the level of the correlation relationship.

[0093] As an embodiment of the present invention, the analysis of the association relationship between the image scene and the subject features includes: analyzing the characteristic elements in the subject features and analyzing the visual elements corresponding to the image scene, calculating the association coefficient between the visual elements and the characteristic elements, vectorizing the characteristic elements and the visual elements respectively to obtain a characteristic element vector and a visual element vector, calculating the vector similarity between the characteristic element vector and the visual element vector, and analyzing the association relationship between the image scene and the subject features by combining the vector similarity and the association coefficient.

[0094] Among them, the feature element is the element where the subject feature exists, such as an object or color, and the visual element is the element that exists in the image scene, such as a person. The association coefficient represents the degree of association between the visual element and the feature element. The feature element vector and the visual element vector are the expression vectors corresponding to the feature element and the visual element respectively. The vector similarity represents the degree of similarity between the feature element vector and the visual element vector.

[0095] Optionally, the analysis of the characteristic elements in the subject features can be implemented by a corner detection algorithm, such as the Harris corner detection algorithm. The analysis method of the visual elements is consistent with that of the characteristic elements, which will not be described in detail here. The calculation of the correlation coefficient between the visual elements and the characteristic elements can be implemented by a Pearson correlation coefficient algorithm. The vectorization of the characteristic elements and the visual elements can be implemented by a word2vec algorithm. Combined with the vector similarity and the correlation coefficient, the correlation relationship between the image scene and the subject features is analyzed.

[0096] Optionally, as an optional embodiment of the present invention, the calculating the vector similarity between the feature element vector and the visual element vector includes:

[0097] The vector similarity between the feature element vector and the visual element vector is calculated by the following formula:

[0098]

[0099] Where N represents the vector similarity between the feature element vector and the visual element vector, j and j+1 represent the sequence numbers of the feature element vector and the visual element respectively. The total number of vectors representing the eigenvalue vectors, represents the vector value of the jth vector in the feature element vector, Represents the vector value of the j+1th vector in the visual element vector.

[0100] S4. According to the key subject and the non-key subject, the target video image is segmented to obtain a key subject image and a non-key subject image, and the key subject image is encoded to obtain an encoded image.

[0101] The present invention performs image segmentation on the target video image according to the key subject and the non-key subject, and can effectively separate the target video image, which is convenient for subsequent hybrid coding processing of the target video image, thereby improving the coding efficiency of the image, wherein the key subject image is an image corresponding to the key subject in the target video image, the non-key subject image is an image corresponding to the non-key subject in the target video image, and the coded image is an image obtained after the key subject image is coded. Optionally, the image segmentation of the target video image can be achieved by a threshold segmentation method, and the steps of coding the key subject image are: coding the key subject image Preprocessing is performed, including operations such as cropping, resizing, and color space conversion, to obtain a target subject image, and the target subject image is divided into blocks, where the target subject image is divided into image blocks of equal or unequal sizes, each block containing a certain number of pixels, and pixel prediction is performed on the image blocks. The pixels in the image blocks are predicted based on the statistical information of the encoded pixel values ​​or surrounding pixel values ​​to obtain predicted pixel values. A linear model method may be used for prediction, and the predicted pixel values ​​are compared with the actual pixel values ​​to obtain a prediction error. The prediction error is encoded and compressed using a lossless coding algorithm to obtain a compressed pixel value. The lossless coding method includes Huffman coding. The compressed pixel values ​​are reconstructed to obtain an encoded image.

[0102] S5. Input the non-critical subject image into the trained AI big model, use the convolutional neural network in the AI ​​big model to extract the visual features corresponding to the non-critical subject image, and use the autoencoder in the AI ​​big model to construct a virtual image corresponding to the non-critical subject image based on the visual features, and generate a final encoded image corresponding to the target video image based on the encoded image and the virtual image.

[0103] The present invention can obtain the visual characteristics corresponding to the non-key subject image by utilizing the convolutional neural network in the AI ​​large model, thereby facilitating the subsequent construction of a virtual image corresponding to the non-key subject image, wherein the AI ​​large model is used to model non-key objects in the image, the convolutional neural network is a neural network used to extract image characteristics, and the encoding efficiency of the high-definition video stream can be improved by replacing part of the real image with a virtual model. The autoencoder is a neural network used to model image objects, and the encoding of the real image is achieved through the modeled model. The virtual image is an image obtained by replacing the real image in the non-key subject image with the model. Optionally, the visual characteristics corresponding to the non-key subject image can be extracted by the convolution kernel in the convolutional neural network, and the virtual image corresponding to the non-key subject image can be constructed by the encoder and decoder in the autoencoder. The generation of the final encoded image corresponding to the target video image can be achieved by an image generator, and the image generator is compiled by JAVA language.

[0104] The present invention performs video frame processing on the high-definition video stream, and can decompose the high-definition video stream into a single frame video, thereby reducing the difficulty of video image recognition processing. Compared with multi-frame video, it is more efficient to identify the video image corresponding to a single frame video. The present invention can obtain the electrical signal of the optimized video image by performing signal analysis on the optimized video image, and calculate the signal amplitude value corresponding to the image signal, so that it is convenient to remove the repeated images in the optimized video image in the future, and avoid subsequent calculation and processing of the repeated images. The present invention extracts the subject features corresponding to the image subject, and can obtain the relevant representation of the image subject. According to the relevant representation, the accuracy of subsequent correlation relationship analysis is improved. The present invention performs image segmentation on the target video image according to the key subject and the non-key subject, and can effectively separate the target video image, which is convenient for the subsequent hybrid coding processing of the target video image, thereby improving the coding efficiency of the image. Therefore, the high-precision and high-resolution video coding method for target recognition of an AI large model provided in an embodiment of the present invention can improve the coding efficiency of high-precision and high-resolution video.

[0105] like Figure 2 As shown, it is a functional module diagram of a high-precision and high-resolution video encoding system for target recognition of an AI large model provided by an embodiment of the present invention.

[0106] The high-precision and high-resolution video coding system 100 for target recognition of a large AI model described in the present invention can be installed in an electronic device. According to the functions implemented, the high-precision and high-resolution video coding system 100 for target recognition of a large AI model may include an image optimization module 101, a scene analysis module 102, a subject analysis module 103, an image coding module 104, and an image construction module 105. The module described in the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0107] In this embodiment, the functions of each module / unit are as follows:

[0108] The image optimization module 101 is used to obtain a high-definition video stream to be encoded, perform video frame processing on the high-definition video stream to obtain a framed video, identify a video image in the framed video, and optimize the video image to obtain an optimized video image;

[0109] The scene analysis module 102 is used to perform signal analysis on the optimized video image to obtain an image signal, calculate a signal amplitude value corresponding to the image signal, perform deduplication processing on the optimized video image according to the signal amplitude value to obtain a target video image, mine image information corresponding to each image in the target video image, and analyze the image scene corresponding to the video image according to the image information;

[0110] The subject analysis module 103 is used to perform subject recognition on the target video image to obtain the image subject, extract subject features corresponding to the image subject, analyze the association relationship between the image scene and the subject features, and determine the key subject and non-key subject in the image subject based on the association relationship;

[0111] The image encoding module 104 is used to perform image segmentation on the target video image according to the key subject and the non-key subject to obtain a key subject image and a non-key subject image, and perform encoding processing on the key subject image to obtain an encoded image;

[0112] The image construction module 105 is used to input the non-key subject image into the trained AI large model, use the convolutional neural network in the AI ​​large model to extract the visual features corresponding to the non-key subject image, and use the autoencoder in the AI ​​large model to construct a virtual image corresponding to the non-key subject image based on the visual features, and generate a final encoded image corresponding to the target video image based on the encoded image and the virtual image.

[0113] In detail, each module described in the high-precision and high-resolution video encoding system 100 for target recognition of an AI large model described in the embodiment of the present application is used in the same manner as described above. Figure 1 The same technical means are used as the high-precision and high-resolution video encoding method for target recognition of a large AI model described in the text, and can produce the same technical effects, so I will not go into details here.

[0114] In the several embodiments provided by the present invention, it should be understood that the provided methods and systems can be implemented in other ways. For example, the method embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0115] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0116] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand artificial intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0117] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or systems stated in a system claim can also be implemented by one unit or system through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0118] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A high-precision and high-resolution video encoding method for target recognition of large AI models, It is characterized in that The method comprises: Acquire a high-definition video stream to be encoded, perform video frame processing on the high-definition video stream to obtain a framed video, identify a video image in the framed video, and optimize the video image to obtain an optimized video image; Performing signal analysis on the optimized video image to obtain an image signal, calculating a signal amplitude value corresponding to the image signal, performing deduplication processing on the optimized video image according to the signal amplitude value to obtain a target video image, mining image information corresponding to each image in the target video image, and analyzing an image scene corresponding to the video image according to the image information; Perform subject recognition on the target video image to obtain an image subject, extract subject features corresponding to the image subject, analyze the association relationship between the image scene and the subject features, and determine the key subject and non-key subject in the image subject based on the association relationship; the key subject is the subject in the image subject with the highest association relationship corresponding to the image scene, and the non-key subject is the subject in the image subject with the lowest association relationship corresponding to the image scene; According to the key subject and the non-key subject, the target video image is segmented to obtain a key subject image and a non-key subject image, and the key subject image is encoded to obtain an encoded image; Input the non-key subject image into the trained AI big model, use the convolutional neural network in the AI ​​big model to extract the visual features corresponding to the non-key subject image, and use the autoencoder in the AI ​​big model to construct a virtual image corresponding to the non-key subject image based on the visual features. The virtual image is an image obtained by replacing the real image in the non-key subject image with the model, and generate a final encoded image corresponding to the target video image based on the encoded image and the virtual image; The calculating the signal amplitude value corresponding to the image signal comprises: The signal amplitude value corresponding to the image signal is calculated by the following formula: Among them, E represents the signal amplitude value corresponding to the image signal, and F represents the length value corresponding to the image signal. represents the time domain energy corresponding to the dth signal sampling point in the image signal, d represents the signal starting sampling point of the image signal, t represents the number of signal sampling points of the image signal, Represents the frequency domain energy corresponding to the dth signal sampling point of the image signal, Represents the frequency domain conversion coefficient corresponding to the image signal; The analyzing the image scene corresponding to the video image according to the image information includes: Extracting information description characters corresponding to the image information; Performing semantic analysis on the information description characters to obtain character interpretations; Determining the information scene corresponding to the image information according to the character interpretation; Counting the scene frequencies corresponding to the information scene, and determining the target scene of the image information according to the scene frequencies; The extracting the subject features corresponding to the subject of the image includes: Identify the main body texture corresponding to the main body of the image, and calculate the pixel grayscale value corresponding to each pixel point in the main body texture; According to the pixel grayscale value, construct a texture matrix corresponding to the main texture, and calculate a matrix mean value corresponding to the texture matrix; Extracting texture features corresponding to the main body texture according to a preset threshold and the matrix mean; Extracting color features corresponding to the main body of the image, and using the texture features and the color features as main features of the main body of the image; The extracting the color feature corresponding to the main body of the image includes: The color features corresponding to the main body of the image are extracted by the following formula: Among them, Q represents the color feature corresponding to the main body of the image, represents the normalization algorithm, represents the pixel mean corresponding to the e-th subject in the image body, e represents the subject sequence number of the image body, The number of subjects representing the subject of the image, represents the pixel value corresponding to the i-th pixel in the e-th subject, i represents the pixel sequence number of the image subject, represents the pixel variance corresponding to the e-th subject in the image body, represents the pixel skewness coefficient corresponding to the e-th subject in the image subject; The analyzing the association relationship between the image scene and the subject feature includes: Analyzing characteristic elements in the subject features, and analyzing visual elements corresponding to the image scene; Calculating a correlation coefficient between the visual element and the feature element; Performing vectorization processing on the feature element and the visual element respectively to obtain a feature element vector and a visual element vector; Calculating the vector similarity between the feature element vector and the visual element vector; Analyzing the correlation between the image scene and the subject feature in combination with the vector similarity and the correlation coefficient; The calculating the vector similarity between the feature element vector and the visual element vector comprises: The vector similarity between the feature element vector and the visual element vector is calculated by the following formula: Where N represents the vector similarity between the feature element vector and the visual element vector, j and j+1 represent the sequence numbers of the feature element vector and the visual element respectively. The total number of vectors representing the eigenvalue vectors, represents the vector value of the jth vector in the feature element vector, Represents the vector value of the j+1th vector in the visual element vector.

2. A high-precision and high-resolution video encoding method for target recognition of an AI large model as claimed in claim 1, It is characterized in that The step of optimizing the video image to obtain an optimized video image includes: Performing noise reduction processing on the video image to obtain a noise-reduced video image; Performing distortion repair processing on the noise-reduced video image to obtain a repaired video image; Performing distortion correction processing on the repaired video image to obtain a corrected video image; Calculating pixel intensity values ​​corresponding to pixel points of the corrected video image, and performing equalization processing on the pixel intensity values ​​to obtain equalized pixels; According to the equalized pixels, pixel optimization processing is performed on the corrected video image to obtain an optimized video image.

3. A high-precision and high-resolution video encoding method for target recognition of an AI large model as claimed in claim 2, It is characterized in that The performing noise reduction processing on the video image to obtain the noise-reduced video image includes: The video image is subjected to noise reduction processing by the following formula: Among them, A represents the denoised video image, a and b represent the length and width of the convolution window respectively. Represents the convolution window for denoising pixels in the video image. Represents a video image.

4. A high-precision and high-resolution video encoding system for target recognition of a large AI model, the system being based on the method described in any one of claims 1 to 3, It is characterized in that The system comprises: An image optimization module is used to obtain a high-definition video stream to be encoded, perform video frame processing on the high-definition video stream to obtain a framed video, identify a video image in the framed video, and optimize the video image to obtain an optimized video image; A scene analysis module is used to perform signal analysis on the optimized video image to obtain an image signal, calculate a signal amplitude value corresponding to the image signal, perform deduplication processing on the optimized video image according to the signal amplitude value to obtain a target video image, mine image information corresponding to each image in the target video image, and analyze an image scene corresponding to the video image according to the image information; A subject analysis module is used to perform subject recognition on the target video image to obtain an image subject, extract subject features corresponding to the image subject, analyze the association relationship between the image scene and the subject features, and determine the key subject and non-key subject in the image subject based on the association relationship; An image encoding module is used to perform image segmentation on the target video image according to the key subject and the non-key subject to obtain a key subject image and a non-key subject image, and perform encoding processing on the key subject image to obtain an encoded image; An image construction module is used to input the non-key subject image into the trained AI large model, use the convolutional neural network in the AI ​​large model to extract the visual features corresponding to the non-key subject image, and use the autoencoder in the AI ​​large model to construct a virtual image corresponding to the non-key subject image based on the visual features, wherein the virtual image is an image obtained by replacing the real image in the non-key subject image with the model, and generate a final encoded image corresponding to the target video image based on the encoded image and the virtual image; The calculating the signal amplitude value corresponding to the image signal comprises: The signal amplitude value corresponding to the image signal is calculated by the following formula: Among them, E represents the signal amplitude value corresponding to the image signal, and F represents the length value corresponding to the image signal. represents the time domain energy corresponding to the dth signal sampling point in the image signal, d represents the signal starting sampling point of the image signal, t represents the number of signal sampling points of the image signal, Represents the frequency domain energy corresponding to the dth signal sampling point of the image signal, Represents the frequency domain conversion coefficient corresponding to the image signal; The analyzing the image scene corresponding to the video image according to the image information includes: Extracting information description characters corresponding to the image information; Performing semantic analysis on the information description characters to obtain character interpretations; Determining the information scene corresponding to the image information according to the character interpretation; Counting the scene frequencies corresponding to the information scene, and determining the target scene of the image information according to the scene frequencies; The extracting the subject features corresponding to the subject of the image includes: Identify the main body texture corresponding to the main body of the image, and calculate the pixel grayscale value corresponding to each pixel point in the main body texture; According to the pixel grayscale value, construct a texture matrix corresponding to the main texture, and calculate a matrix mean value corresponding to the texture matrix; Extracting texture features corresponding to the main body texture according to a preset threshold and the matrix mean; Extracting color features corresponding to the main body of the image, and using the texture features and the color features as main features of the main body of the image; The extracting the color feature corresponding to the main body of the image includes: The color features corresponding to the main body of the image are extracted by the following formula: Among them, Q represents the color feature corresponding to the main body of the image, represents the normalization algorithm, represents the pixel mean corresponding to the e-th subject in the image body, e represents the subject sequence number of the image body, The number of subjects representing the subject of the image, represents the pixel value corresponding to the i-th pixel in the e-th subject, i represents the pixel sequence number of the image subject, represents the pixel variance corresponding to the e-th subject in the image body, represents the pixel skewness coefficient corresponding to the e-th subject in the image subject; The analyzing the association relationship between the image scene and the subject feature includes: Analyzing characteristic elements in the subject features, and analyzing visual elements corresponding to the image scene; Calculating a correlation coefficient between the visual element and the feature element; Performing vectorization processing on the feature element and the visual element respectively to obtain a feature element vector and a visual element vector; Calculating the vector similarity between the feature element vector and the visual element vector; Analyzing the correlation between the image scene and the subject feature in combination with the vector similarity and the correlation coefficient; The calculating the vector similarity between the feature element vector and the visual element vector comprises: The vector similarity between the feature element vector and the visual element vector is calculated by the following formula: Where N represents the vector similarity between the feature element vector and the visual element vector, j and j+1 represent the sequence numbers of the feature element vector and the visual element respectively. The total number of vectors representing the eigenvalue vectors, represents the vector value of the jth vector in the feature element vector, Represents the vector value of the j+1th vector in the visual element vector.

Citation Information

Cited By

  • Self-adaptive image super-resolution system and method

    CN122420534A