A film and television animation evaluation method based on spatial layout and deep learning
By constructing an undirected fully connected graph and content similarity network of film and television animations based on spatial layout and deep learning methods, combined with color features, it solves the problem of difficulty in evaluating the aesthetics of Chinese-style animations with existing technology, and achieves a reliable assessment of film and television animations. Interpretability improvements.
Patent Information
- Application Number
- CN202210430505.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-22
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-04-22
AI Technical Summary
The existing aesthetic evaluation methods for film and television animation are difficult to adapt to the characteristics of Chinese-style animation, especially in terms of simplicity, realism, clarity, visual color, exposure, depth of field and blur effects, and there is a lack of effective evaluation for film and television animation. method.
Using a method based on spatial layout and deep learning, it constructs an undirected fully connected graph by obtaining the spatial features of film and television animation images, constructs a content similarity network and a spatial relationship network, uses graph convolution for reasoning, and calculates a comprehensive score based on color features to fully Mining spatial node relationships.
It improves the interpretability of film and television animation evaluation, comprehensively considers spatial characteristics and color characteristics, and improves the accuracy and interpretability of evaluation.
Smart Images

Figure CN114863241B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a film and television animation evaluation method based on spatial layout and deep learning. Background Art
[0002] Film and television animation generally belongs to the art form of film and television, but it also contains a lot of characteristics of fine art visual communication. For beginners in the aesthetic design of film and television animation, teachers are needed to provide guidance and assistance so that students can draw beautiful pictures. However, in some self-study scenarios, without the guidance of teachers, it is difficult for students to get feedback to improve their aesthetic design skills. Therefore, there is a need for aesthetic evaluation of film and television animation images to judge the beauty of film and television animation works.
[0003] Obviously, there are some methods to evaluate the degree of beauty, but the traditional methods are mainly aimed at photographs and are not suitable for film and television animation, especially Chinese-style animation. This is because compared with photographs, film and television animation differs in simplicity, realism, clarity, visual color, exposure, depth of field, blur effect, etc. Chinese-style animation does not have the facial area features in portrait photos, and the professional color combination, indoor and outdoor, sky lighting and other factors in landscape photos are also different from film and television animation; in addition, Chinese-style animation has a small number of colors, is not restricted to focal perspective, and does not emphasize the changes in light and color of objects in nature. It uses more changes in ink color and white space to express levels. Therefore, traditional methods are difficult to adapt to the aesthetic evaluation of Chinese-style animation.
[0004] Therefore, how to provide a film and television animation evaluation method based on spatial layout and deep learning to improve the interpretability of film and television animation evaluation has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a film and television animation evaluation method based on spatial layout and deep learning, so as to improve the interpretability of film and television animation evaluation.
[0006] The present invention is implemented as follows: a film and television animation evaluation method based on spatial layout and deep learning, comprising the following steps:
[0007] Step S10: acquiring an animated image of a film and television animation, extracting spatial features of the animated image, and constructing an undirected fully connected graph based on the spatial features;
[0008] Step S20: constructing a content similarity network, and performing reasoning on the undirected fully connected graph through graph convolution;
[0009] Step S30: Mapping the spatial nodes in the content similarity network to the latent space, and then constructing a fully connected graph of spatial relations;
[0010] Step S40: construct a spatial relationship network, infer the spatial relationship fully connected graph through graph convolution to obtain potential features, and map the potential features back to the original space where the content similarity network is located;
[0011] Step S50, calculating a composition score based on the outputs of the spatial relationship network and the content similarity network;
[0012] Step S60, extracting color features of the animation image, and inputting the color features into a color evaluation model to obtain a color score;
[0013] Step S70: Calculate a comprehensive score of the animation image based on the composition score and the color score.
[0014] Furthermore, in step S10, the spatial features include at least the length, width, channel dimension, spatial nodes, similarity of spatial nodes, distance of spatial nodes, and a neighbor matrix for describing edge sets and edge weights of spatial nodes of the animation image.
[0015] Furthermore, the similarity of the spatial nodes is calculated based on cosine similarity, and the distance of the spatial nodes is calculated based on Euclidean distance and embedded in the aspect ratio of the animation image.
[0016] Furthermore, the step S20 is specifically as follows:
[0017] A content similarity network is constructed, and the undirected fully connected graph is inferred through graph convolution to obtain the content relationship between each of the spatial nodes.
[0018] Furthermore, the step S30 is specifically as follows:
[0019] The spatial nodes in the content similarity network are mapped to a latent space based on a linear combination of the content relations, thereby constructing a fully connected graph of spatial relations.
[0020] Furthermore, the step S40 is specifically as follows:
[0021] A spatial relationship network is constructed, and latent features are obtained by inferring the spatial relationship fully connected graph through graph convolution, and the latent features are mapped back to the original space where the content similarity network is located through a back projection method.
[0022] Furthermore, the step S50 is specifically as follows:
[0023] A cumulative distribution function is used as the loss function of the spatial relationship network and the content similarity network, and the outputs of the spatial relationship network and the content similarity network are weighted averaged to obtain a composition score.
[0024] Furthermore, the step S60 is specifically as follows:
[0025] A color evaluation model is created based on deep learning, and the color evaluation model is trained; color features of the animation image including the H channel, the S channel and the grayscale value are extracted, and the color features are input into the trained color evaluation model to obtain a color score.
[0026] Furthermore, the step S70 is specifically as follows:
[0027] The composition score and the color score are accumulated to calculate a comprehensive score of the animation image.
[0028] The advantages of the present invention are:
[0029] An undirected fully connected graph is constructed by extracting the spatial features of the animated images of film and television animations, and then a content similarity network is constructed. The undirected fully connected graph is inferred through graph convolution, and then the spatial nodes in the content similarity network are mapped to the latent space to construct a spatial relationship network. The spatial relationship fully connected graph is inferred through graph convolution to obtain the latent features and then mapped back to the original content space. The outputs of the spatial relationship network and the content similarity network are weighted averaged to obtain the composition score. The color features of the animated image are then extracted and input into the color evaluation model to obtain the color score. Finally, the comprehensive score of the animated image is calculated based on the composition score and the color score. That is, the comprehensive score fully considers the spatial features and color features, and fully explores the relationship between spatial nodes through graph convolution, which ultimately greatly improves the interpretability of film and television animation evaluation. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0031] Figure 1 It is a flow chart of a film and television animation evaluation method based on spatial layout and deep learning of the present invention. DETAILED DESCRIPTION
[0032] The overall idea of the technical solution in the embodiments of the present application is as follows: a comprehensive score is calculated by combining spatial features and color features, and graph convolution is used to fully explore the relationship between spatial nodes to improve the interpretability of film and television animation evaluation.
[0033] Please refer to Figure 1 As shown, a preferred embodiment of a film and television animation evaluation method based on spatial layout and deep learning of the present invention comprises the following steps:
[0034] Step S10: acquiring an animated image of a film and television animation, extracting spatial features of the animated image, and constructing an undirected fully connected graph based on the spatial features;
[0035] Step S20: constructing a content similarity network, and performing reasoning on the undirected fully connected graph through graph convolution;
[0036] Step S30: Mapping the spatial nodes in the content similarity network to the latent space, and then constructing a fully connected graph of spatial relations;
[0037] Step S40: construct a spatial relationship network, infer the spatial relationship fully connected graph through graph convolution to obtain potential features, and map the potential features back to the original space where the content similarity network is located;
[0038] Step S50, calculating a composition score based on the outputs of the spatial relationship network and the content similarity network;
[0039] Step S60, extracting color features of the animation image, and inputting the color features into a color evaluation model to obtain a color score;
[0040] Step S70: Calculate a comprehensive score of the animation image based on the composition score and the color score.
[0041] In step S10, the spatial features include at least the length, width, channel dimension, spatial nodes, similarity of spatial nodes, distance of spatial nodes, and a neighbor matrix for describing edge sets and edge weights of spatial nodes of the animation image.
[0042] The similarity of the spatial nodes is calculated based on cosine similarity, and the distance of the spatial nodes is calculated based on Euclidean distance and embedded in the aspect ratio of the animation image.
[0043] The step S20 is specifically as follows:
[0044] A content similarity network is constructed, and the undirected fully connected graph is inferred through graph convolution to obtain the content relationship between each of the spatial nodes. Graph convolution can pass messages between each adjacent spatial node based on the defined relationship, that is, embedding spatial relationships through graph convolution for unified aesthetic evaluation.
[0045] The step S30 is specifically as follows:
[0046] The spatial nodes in the content similarity network are mapped to the latent space based on the linear combination of the content relations, and then a fully connected graph of spatial relations is constructed, that is, the linear combination of the content relations is used as the mapping function.
[0047] The step S40 is specifically as follows:
[0048] A spatial relationship network is constructed, and the spatial relationship fully connected graph is inferred by graph convolution to obtain potential features, and the potential features are mapped back to the original space where the content similarity network is located by back projection. In order to make the spatial relationship network and the content similarity network compatible, the potential features are mapped back to the original space.
[0049] The step S50 is specifically as follows:
[0050] A cumulative distribution function (CDF) is used as the loss function of the spatial relationship network and the content similarity network, and the outputs of the spatial relationship network and the content similarity network are weighted averaged to obtain a composition score.
[0051] The step S60 is specifically as follows:
[0052] A color evaluation model is created based on deep learning, and the color evaluation model is trained; color features of the animation image including the H channel, the S channel and the grayscale value are extracted, and the color features are input into the trained color evaluation model to obtain a color score.
[0053] The step S70 is specifically as follows:
[0054] The composition score and the color score are accumulated to calculate a comprehensive score of the animation image.
[0055] In summary, the advantages of the present invention are:
[0056] An undirected fully connected graph is constructed by extracting the spatial features of the animated images of film and television animations, and then a content similarity network is constructed. The undirected fully connected graph is inferred through graph convolution, and then the spatial nodes in the content similarity network are mapped to the latent space to construct a spatial relationship network. The spatial relationship fully connected graph is inferred through graph convolution to obtain the latent features and then mapped back to the original content space. The outputs of the spatial relationship network and the content similarity network are weighted averaged to obtain the composition score. The color features of the animated image are then extracted and input into the color evaluation model to obtain the color score. Finally, the comprehensive score of the animated image is calculated based on the composition score and the color score. That is, the comprehensive score fully considers the spatial features and color features, and fully explores the relationship between spatial nodes through graph convolution, which ultimately greatly improves the interpretability of film and television animation evaluation.
[0057] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A film and television animation evaluation method based on spatial layout and deep learning, characterized by: The steps include: Step S10: acquiring an animated image of a film and television animation, extracting spatial features of the animated image, and constructing an undirected fully connected graph based on the spatial features; Step S20: constructing a content similarity network, and performing reasoning on the undirected fully connected graph through graph convolution; Step S30: Mapping the spatial nodes in the content similarity network to the latent space, and then constructing a fully connected graph of spatial relations; Step S40: construct a spatial relationship network, infer the spatial relationship fully connected graph through graph convolution to obtain potential features, and map the potential features back to the original space where the content similarity network is located; Step S50, calculating the composition score based on the outputs of the spatial relationship network and the content similarity network; specifically: using a cumulative distribution function as a loss function of the spatial relationship network and the content similarity network, and performing weighted averaging on the outputs of the spatial relationship network and the content similarity network, thereby obtaining a composition score; Step S60, extracting color features of the animation image, and inputting the color features into a color evaluation model to obtain a color score; specifically: creating a color evaluation model based on deep learning, and training the color evaluation model; extracting color features of the animation image including an H channel, an S channel, and a grayscale value, and inputting the color features into the trained color evaluation model to obtain a color score; Step S70: Calculate a comprehensive score of the animation image based on the composition score and the color score.
2. A method for evaluating film and television animation based on spatial layout and deep learning as claimed in claim 1, characterized in that: In step S10, the spatial features include at least the length, width, channel dimension, spatial nodes, similarity of spatial nodes, distance of spatial nodes, and a neighbor matrix for describing edge sets and edge weights of spatial nodes of the animation image.
3. A method for evaluating film and television animation based on spatial layout and deep learning as claimed in claim 2, characterized in that: The similarity of the spatial nodes is calculated based on cosine similarity, and the distance of the spatial nodes is calculated based on Euclidean distance and embedded in the aspect ratio of the animation image.
4. A method for evaluating film and television animation based on spatial layout and deep learning as claimed in claim 2, characterized in that: The step S20 is specifically as follows: A content similarity network is constructed, and the undirected fully connected graph is inferred through graph convolution to obtain the content relationship between each of the spatial nodes.
5. A method for evaluating film and television animation based on spatial layout and deep learning as claimed in claim 4, characterized in that: The step S30 is specifically as follows: The spatial nodes in the content similarity network are mapped to a latent space based on a linear combination of the content relations, thereby constructing a fully connected graph of spatial relations.
6. A method for evaluating film and television animation based on spatial layout and deep learning as claimed in claim 1, characterized in that: The step S40 is specifically as follows: A spatial relationship network is constructed, and latent features are obtained by inferring the spatial relationship fully connected graph through graph convolution, and the latent features are mapped back to the original space where the content similarity network is located through a back projection method.
7. The method for evaluating film and television animation based on spatial layout and deep learning as claimed in claim 1, characterized in that: The step S70 is specifically as follows: The composition score and the color score are accumulated to calculate a comprehensive score of the animation image.
