Image composition analysis method and device
By acquiring and analyzing the layer information and layout structure information of the image, the problem of high error rate and high cost when manually screening the image composition is solved, and a fast and accurate image composition analysis and efficient screening process are achieved.
Patent Information
- Application Number
- CN201911030381.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-28
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2040-05-25
AI Technical Summary
In the prior art, the process of manually screening suitable compositions from massive images is prone to errors, and is costly and has low processing efficiency.
By obtaining the layer information and layout structure information of the target image, composition analysis is performed based on these information, and composition analysis data reflecting the layout structure of the image is obtained.
It realizes fast and accurate image composition analysis, reduces composition analysis costs, and improves image screening accuracy and processing efficiency.
Smart Images

Figure CN110827344B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to an image composition analysis method and device. Background Art
[0002] Images are the most commonly used information carriers in human social activities and are widely used in the field of information flow applications. The composition of an image can reflect the layout structure of the image. A good composition can enhance the expressiveness of the image, better express the image content, make the theme clear, and make the intention clear.
[0003] In the prior art, in some scenarios where information is disseminated in the form of images, in order to screen out images with suitable compositions, relevant personnel need to select them one by one from a large number of images, but manual processing methods are often prone to errors and bring problems such as high costs and low processing efficiency. Therefore, it is necessary to provide a method for analyzing image composition to achieve accurate analysis of the layout structure of the image, etc., and improve the accuracy and processing efficiency of subsequent image screening. Summary of the invention
[0004] The present application provides an image composition analysis method and device, which can quickly and accurately perform image composition analysis, greatly reduce the cost of composition analysis, and improve the accuracy and processing efficiency of subsequent image screening.
[0005] In one aspect, the present application provides an image composition analysis method, the method comprising:
[0006] Acquire layer information of a target image, wherein the layer information represents basic attribute information of the target image and a plurality of element images in the target image;
[0007] Determine layout structure information of multiple element images in the target image;
[0008] Composition analysis is performed on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image.
[0009] Another aspect provides an image composition analysis device, the device comprising:
[0010] A layer information acquisition module, used to acquire layer information of a target image, wherein the layer information represents basic attribute information of the target image and a plurality of element images in the target image;
[0011] A layout structure information determination module, used to determine the layout structure information of multiple element images in the target image;
[0012] The composition analysis module is used to perform composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image.
[0013] On the other hand, an image composition analysis device is provided, the device comprising a processor and a memory, the memory storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor to implement the image composition analysis method as described above.
[0014] On the other hand, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the image composition analysis method as described above.
[0015] The image composition analysis method and device provided by this application have the following technical effects:
[0016] The present application obtains the layer information of the target image and the layout structure information of multiple element images in the target image; and performs composition analysis on the target image based on the layer information and / or layout structure information, thereby obtaining composition analysis data that effectively reflects the layout structure of the target image, achieving fast and accurate image composition analysis, and greatly reducing the cost of composition analysis, thereby improving the accuracy and processing efficiency of subsequent image screening. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 It is a flow chart of an image composition analysis method provided in an embodiment of the present application;
[0019] Figure 2 It is a partial schematic diagram of a target image and its layer information provided by an embodiment of the present application;
[0020] Figure 3 It is a schematic diagram of a flow chart of determining layout structure information of multiple element images in a target image provided by an embodiment of the present application;
[0021] Figure 4 is a schematic diagram of contour information of multiple element images in a target image provided by an embodiment of the present application;
[0022] Figure 5 is a schematic diagram of the center of gravity of an element image provided in an embodiment of the present application;
[0023] Figure 6 The present invention provides a schematic diagram of a flow chart of performing composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image.
[0024] Figure 7 It is a schematic diagram of alignment information of multiple element images in a target image in a target coordinate system provided by the present application;
[0025] Figure 8 is a schematic diagram of tilt deviation information between two element images provided in an embodiment of the present application;
[0026] Fig. 9 Another embodiment of the present application provides a schematic diagram of a flow chart of performing composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image;
[0027] Fig.10 is a schematic diagram of the fitting of contour information of a spiral line and an element image provided by an embodiment of the present application;
[0028] Fig.11 is a flow chart of another image composition analysis method provided in an embodiment of the present application;
[0029] Fig.12 This is a schematic diagram of the process of image screening based on composition analysis data provided in the embodiment of the present application.
[0030] Fig.13 is a structural schematic diagram of an image composition analysis device provided in an embodiment of the present application;
[0031] Fig.14 It is a structural diagram of a client provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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 making creative work are within the scope of protection of this application.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0034] The image composition analysis method provided in the embodiments of the present application can be applied to any electronic device, such as smart phones, desktop computers, tablet computers, laptops, digital assistants, augmented reality (AR) / virtual reality (VR) devices, smart wearable devices and other types of terminal devices, and can also be applied to independently running servers, distributed servers, and server clusters composed of multiple servers.
[0035] The following describes an image composition analysis method of the present application. Figure 1 It is a flowchart of an image composition analysis method provided in an embodiment of the present application. This specification provides method operation steps as described in the embodiment or flowchart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When the actual system or server product is executed, it can be executed in sequence or in parallel (for example, in a parallel processor or multi-threaded processing environment) according to the method shown in the embodiment or the drawings. Specifically, Figure 1 As shown, the method may include:
[0036] S101: Acquire layer information of a target image.
[0037] In the embodiments of this specification, the target image may include any image that needs to be analyzed for composition.
[0038] The layer information can represent basic attribute information of the target image and multiple element images in the target image; specifically, the element images in the target image may include text, graphics, pictures, tables and other information distributed in each layer of each target image in the form of images.
[0039] In the embodiments of this specification, in actual applications, the source file of the target image: for example, the source file of a picture designed using design software such as Photoshop or Sketch contains the element images of each layer and their position, size and other information. Among them, the image size, position and other information can be used as the basic attribute information of the image. Specifically, the layer information may include the size information of the target image and the vertex position information of multiple element images (the vertex position information here refers to the position of the vertices of the element image in the target image). In a specific embodiment, Figure 2 As shown, Figure 2 It is a partial schematic diagram of a target image and its layer information provided in an embodiment of the present application.
[0040] S103: Determine layout structure information of multiple element images in the target image.
[0041] In the embodiment of the present specification, the layout structure information of the element image may include relevant information reflecting the layout structure of the element image itself. Specifically, the layout structure information may include at least one of the following: contour information, center of gravity, and tilt angle.
[0042] In a specific embodiment, Figure 3 As shown, determining the layout structure information of multiple element images in the target image may include:
[0043] S1031: performing binarization processing on the target image to obtain a binary image;
[0044] S1033: Determine the vertex positions of multiple polygons in the binary image;
[0045] S1035: Determine contour information of the plurality of element images based on vertex positions of the plurality of polygons;
[0046] S1037: Calculate moments of contour information of the plurality of element images;
[0047] S1039: determining the center of gravity of each element image according to each order moment of the contour information of each element image;
[0048] S10311: Determine the inclination angle of each edge of the polygon according to the vertex position of the polygon corresponding to each element image;
[0049] S10313: Determine the inclination angle of the corresponding element image according to the inclination angle of each edge of the polygon;
[0050] S10315: Using at least one of the outline information, the center of gravity, and the tilt angle of the element image as the layout structure information.
[0051] In practical applications, the specific steps of determining the layout structure information of multiple element images in the target image may include but are not limited to calling the OpenCV library (OpenSource Computer Vision Library) in combination with python (a computer programming language) and other codes to obtain contour information, center of gravity and tilt angle information.
[0052] Specifically, after the binary image is formed, the binary image can be preprocessed. Specifically, the preprocessing can include edge removal, denoising, etc. By preprocessing the binary image and then detecting the contour information of the element image, the accuracy of the detected contour information can be improved. In a specific embodiment, assuming that the target image is Figure 2 After contour detection, the image shown in Figure 4 Contour information of multiple element images in the target image shown.
[0053] In a specific embodiment, Figure 5 As shown, taking the element image (triangle) in the lower right corner of the target image as an example, Figure 5 500 is the contour information of the element image of the triangle, and the position of 510 is the centroid of the element image of the triangle. In the embodiment of this specification, the centroid of the element image is the centroid position corresponding to the contour information of the element image.
[0054] Specifically, when determining the inclination angle of each side of the polygon according to the vertex position of the polygon corresponding to each element image, the minimum circumscribed rectangle of each element image can be determined according to the vertices, and then the inclination angle of each side in the minimum external matrix is calculated. Then, the inclination angle of each side of the minimum circumscribed rectangle corresponding to the element image can be averaged to obtain the inclination angle of the element image.
[0055] S105: Performing composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image.
[0056] In the embodiments of the present specification, by acquiring the image information of the target image and the layout structure information of multiple element images in the target image, the target image is subjected to composition analysis based on the layer information and / or the layout structure information, thereby obtaining composition analysis data that effectively reflects the layout structure of the target image. Specifically, in the embodiments of the present specification, the composition analysis data of the target image can be a measure of the quality of the layout structure of the target image. In the embodiments of the present specification, the measure of the quality of the layout structure of the target image can be reflected from multiple aspects.
[0057] In a specific embodiment, when the layer information includes the size information of the target image and the vertex position information of the plurality of element images, the layout structure information includes the outline information; Figure 6 As shown, performing composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image may include:
[0058] S601: Constructing a target coordinate system according to the size information of the target image.
[0059] S603: Determine coordinate positions of the multiple element images in the target coordinate system according to the vertex position information and the contour information of the multiple element images.
[0060] S605: Determine alignment information of the multiple element images in the target coordinate system according to the coordinate positions.
[0061] S607: Analyze composition analysis data of the target image in image alignment based on the alignment information.
[0062] In practical applications, the target coordinate system may include but is not limited to a plane rectangular coordinate system and a polar coordinate system. In a specific embodiment, taking a plane rectangular coordinate system as an example, according to the size information of the target image, the upper left corner is the origin of the coordinate system (0, 0); the upper right corner is the point (0, W), where W represents the width of the target image; and the lower left corner is the point (H, 0), where H represents the height of the target image.
[0063] In the embodiments of the present specification, the alignment information may include, but is not limited to, edge alignment, centerline alignment, and other information that characterizes the alignment between element images in the target image. Specifically, edge alignment may be the alignment of element images located at the edge of the target coordinate system (i.e., element images located at a certain side of the target coordinate system whose distance is less than a preset threshold); centerline alignment may include, but is not limited to, the centerline alignment of element images located in the middle of the target coordinate system (i.e., element images located at the four sides of the target coordinate system whose distances are greater than or equal to the preset threshold).
[0064] In the embodiments of the present specification, the composition analysis data of the target image in image alignment can represent the degree of alignment between element images in the target image. Specifically, the better the degree of alignment between element images in the target image, the larger the composition analysis data of the target image in image alignment, and correspondingly, the better (excellent) the layout structure of the target image; conversely, the worse the degree of alignment between element images in the target image, the smaller the composition analysis data of the target image in image alignment, and correspondingly, the worse (inferior) the layout structure of the target image.
[0065] In a specific embodiment, taking edge alignment as an example, Figure 7 As shown, Figure 7is a schematic diagram of alignment information of multiple element images in a target image in a target coordinate system provided by the present application. Figure 7 It can be seen that the upper edge of the target coordinate system corresponds to two element images, and accordingly, the distance A between the two element images and the upper edge of the target coordinate system can be used as the upper alignment distance; the lower edge of the target coordinate system corresponds to two element images, and accordingly, the distance B between the two element images and the lower edge of the target coordinate system can be used as the lower alignment distance; the right edge of the target coordinate system corresponds to two element images, and accordingly, the distance C between the two element images and the right edge of the target coordinate system can be used as the right alignment distance; there is no element image at the left edge of the target coordinate system; accordingly, the alignment information of multiple element images of the target image can include the upper alignment distance, the lower alignment distance and the right alignment distance.
[0066] Further, from Figure 7 It can be seen that the upper alignment distance A> the lower alignment distance B> the right alignment distance C; accordingly, when analyzing the composition analysis data of the target image in image alignment based on the alignment information, a function that is proportional to the alignment information and the composition analysis data can be combined, and the alignment information is substituted into the function to obtain the composition analysis data. In a specific embodiment, it is assumed that the function can be the alignment distance of each side (the above Figure 7 The mean of the alignment distances of the upper and middle sides (including alignment distance, lower alignment distance, right alignment distance) is used as a function of the composition analysis data, and the variance of the alignment distances of the upper and middle sides can also be used as a function of the composition analysis data.
[0067] In the embodiments of the present specification, alignment information characterizing the alignment between element images in the target image can be determined through the size information of the target image in the layer information and the vertex position information of multiple element images, as well as the contour information in the layout structure information; based on the analysis of the alignment information, composition analysis data characterizing the degree of alignment between element images in the target image can be determined, and then the alignment of element images of the target image can be measured quickly and accurately, which greatly reduces the cost of composition analysis, improves the processing efficiency of image composition analysis, and further improves the accuracy and processing efficiency of subsequent image screening.
[0068] In another specific embodiment, when the layout structure information includes a tilt angle; performing composition analysis on the target image based on the layer information and / or the layout structure information to obtain composition analysis data of the target image may include:
[0069] 1) determining tilt deviation information between any two element images according to the tilt angles of the plurality of element images;
[0070] 2) Analyze the composition analysis data of the target image in terms of visual direction based on the tilt deviation information between the pairwise element images.
[0071] In the embodiments of the present specification, the tilt deviation information between each pair of element images may be the difference in tilt angles between the element images. The composition analysis data of the target image in terms of visual orientation may characterize the degree of consistency in visual orientation between the element images in the target image. Specifically, the larger the difference corresponding to the tilt deviation information, the worse the degree of consistency in visual orientation between the element images in the target image, and correspondingly, the worse (inferior) the layout structure of the target image; conversely, the smaller the difference corresponding to the tilt deviation information, the better the degree of consistency in visual orientation between the element images in the target image, and correspondingly, the better (excellent) the layout structure of the target image.
[0072] In a specific embodiment, Figure 8 As shown, Figure 8 is a schematic diagram of the tilt deviation information between two element images provided in an embodiment of the present application; specifically, Figure 8 The inclination angles of the three element images in the target image corresponding to a in the figure (the inclination angle can be the inclination angle of the direction corresponding to the longest side of the element image relative to the specified direction, and the specified direction can be set in combination with the actual application, such as the horizontal right direction in the figure) are all 135 degrees. Correspondingly, the inclination deviation information between the two element images is 0 degree. Figure 8 There are two element images "triangle" and "rectangle" in the target image corresponding to b, among which the inclination angle of the element image "triangle" is 135 degrees, and the inclination angle of the element image "rectangle" is 0 degrees. Correspondingly, the inclination deviation information between the element images "triangle" and "rectangle" is 0 degrees.
[0073] In an embodiment of the present specification, when analyzing the composition analysis data of the target image in terms of visual direction based on the tilt deviation information between the pairwise element images, the tilt deviation information can be combined with a function of the composition analysis data, and the tilt deviation information can be substituted into the function to obtain the composition analysis data. In a specific embodiment, it is assumed that the function can be a function that uses the mean of the tilt deviation information between the pairwise element images as the composition analysis data, or a function that uses the variance of the tilt deviation information as the composition analysis data, etc.
[0074] In the embodiments of the present specification, composition analysis data characterizing the degree of consistency in the visual orientation between the element images in the target image can be determined by the inclination angle of the element images in the target image, thereby quickly and accurately measuring the visual orientation of the element images in the target image, greatly reducing the cost of composition analysis, improving the processing efficiency of image composition analysis, and thereby also improving the accuracy and processing efficiency of subsequent image screening.
[0075] In some other embodiments, the layer information includes the size information of the target image and the vertex position information of the plurality of element images; the layout structure information includes contour information; Fig. 9 As shown, the composition analysis of the target image is performed based on the layer information and / or layout structure information to obtain the composition analysis data of the target image, including:
[0076] S901: Constructing a target coordinate system according to the size information of the target image.
[0077] S903: Draw the contour information of the multiple element images in the target coordinate system according to the vertex position information of the multiple element images and the contour information.
[0078] S905: Draw a spiral line corresponding to the golden section in the target coordinate system.
[0079] S907: Analyze first composition analysis data of the target image on the element structure based on the fitting degree of the spiral line and the contour information of the plurality of element images in the target coordinate system.
[0080] Specifically, the construction of the target coordinate system can refer to the above-mentioned related steps, which will not be repeated here. Fig.10 As shown, Fig.10 is a schematic diagram of the fitting of the contour information of a spiral line and an element image provided by an embodiment of the present application. Specifically, it can be seen from the figure that the target image includes three element images, namely Fig.10 The triangle in the lower right corner, the rectangle in the upper left corner and the rectangle on the right; among them, the contour information and the fitting degree of the spiral line of the triangle in the lower right corner are higher than those of the rectangle in the upper left corner and the rectangle on the right.
[0081] In the embodiments of the present specification, the higher the degree of fit between the spiral line and the contour information of the multiple element images, the larger the first composition analysis data of the target image on the element structure, and correspondingly, the better (excellent) the layout structure of the target image; conversely, the lower the degree of fit between the spiral line and the contour information of the multiple element images, the smaller the first composition analysis data of the target image on the element structure, and correspondingly, the worse (inferior) the layout structure of the target image.
[0082] In the embodiments of the present specification, the contour information of each element image in the target image and the fitting degree of the spiral line can be quantified to obtain the quantized fitting degree; then, the fitting degree can be combined with the function of the first composition analysis data, and the fitting degree can be substituted into the function to obtain the first composition analysis data. In a specific embodiment, it is assumed that the function can be a function that takes the mean of the fitting degree corresponding to each element image as the first composition analysis data, or a function that takes the variance of the fitting degree corresponding to each element image as the first composition analysis data, etc.
[0083] In an embodiment of the present specification, a target coordinate system is constructed through the size information of the target image in the layer information, and then, the contour information of the multiple element images in the layer information and the contour information in the layout structure information are combined to draw the contour information of the multiple element images in the target coordinate system, and a spiral line corresponding to the golden section is drawn in the target coordinate system, and the first composition analysis data of the target image on the element structure can be analyzed through the degree of fit between the spiral line and the contour information of the multiple element images; based on the first composition analysis data, the element structure of the target image can be measured quickly and accurately, which greatly reduces the cost of composition analysis, improves the processing efficiency of image composition analysis, and thus can also improve the accuracy and processing efficiency of subsequent image screening.
[0084] In another specific embodiment, when the layout structure information includes the center of gravity; and the layer information includes the size information of the multiple element images; performing composition analysis on the target image based on the layer information and / or the layout structure information to obtain the composition analysis data of the target image may include:
[0085] 1) determining the image ratio divided by the center of gravity of each element image according to the size information of the plurality of element images and the center of gravity of each element image;
[0086] 2) Analyzing the second composition analysis data of the target image on the element structure based on the image ratios of the plurality of element images.
[0087] In a specific embodiment, when analyzing the composition of the second composition analysis data of the target image on the element structure based on the image ratio of multiple element images, the golden ratio can be combined. Specifically, the smaller the difference between the image ratio divided by the center of gravity of the element image and the golden ratio, the larger the second composition analysis data of the target image on the element structure, and accordingly, the better (excellent) the layout structure of the target image; conversely, the larger the difference between the image ratio divided by the center of gravity of the element image and the golden ratio, the smaller the second composition analysis data of the target image on the element structure, and accordingly, the worse (inferior) the layout structure of the target image.
[0088] In the embodiments of the present specification, the second composition analysis data of the target image on the element structure can be determined through the center of gravity in the layout structure information and the size information of multiple element images in the layer information; based on the second composition analysis data, the element structure of the target image can be measured quickly and accurately, which greatly reduces the cost of composition analysis, improves the processing efficiency of image composition analysis, and thus can also improve the accuracy and processing efficiency of subsequent image screening.
[0089] In another specific embodiment, the layer information may further include: a hierarchical relationship between multiple element images; performing composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image may include:
[0090] The composition analysis data of the target image on the image overlay is analyzed according to the hierarchical relationship between the multiple element images.
[0091] In practical applications, the target image is composed of many element images stacked together layer by layer in a front-to-back order. Accordingly, each element image is located in a layer, and the hierarchical relationship between the element images is whether there is overlap between the layers of the element images. In a specific embodiment, in the embodiment of this specification, the composition analysis data of the target image on the image coverage can be determined based on the number of element image groups (i.e., two element images) with overlapping layers; specifically, the more element image groups there are, the smaller the composition analysis data, and accordingly, the worse (inferior) the layout structure of the target image is; conversely, the fewer element image groups there are, the larger the composition analysis data, and accordingly, the better (excellent) the layout structure of the target image is.
[0092] In the embodiments of the present specification, the composition analysis data of the target image in terms of image coverage can be analyzed through the hierarchical relationship between multiple element images; based on the composition analysis data, the image coverage of the target image can be measured quickly and accurately, which greatly reduces the cost of composition analysis, improves the processing efficiency of image composition analysis, and thus can also improve the accuracy and processing efficiency of subsequent image screening.
[0093] In another specific embodiment, when the composition analysis data includes multiple types of composition analysis data, such as Fig.11 As shown, the method also includes:
[0094] S107: performing normalization processing on various types of composition analysis data.
[0095] S109: Determine composition weights of the plurality of types of composition analysis data.
[0096] S111: performing weighted average processing based on the normalized composition analysis data and the composition weight to obtain target composition analysis data of the target image.
[0097] In the embodiment of this specification, the composition weight can represent the influence degree of each type of composition analysis data on the layout structure of the target image. Specifically, the composition weight can be preset in combination with the influence degree of each type of composition analysis data on the layout structure of the target image in actual application.
[0098] In addition, it should be noted that when the composition analysis data includes multiple types of composition analysis data, the target composition analysis data of the target image is not limited to the above-mentioned weighted average method. It is also possible to use geometric mean, harmonic mean, etc. to convert multiple types of composition analysis data into the target composition analysis data of the target image.
[0099] In another specific embodiment, Fig.12 As shown, the method also includes:
[0100] S113: performing image screening processing on the target image based on the composition analysis data or the target composition analysis data.
[0101] In practical applications, when some platforms need to filter images that need to be displayed and published based on the quality of image composition, they can directly filter the target images based on the composition analysis data or the target composition analysis data, thereby effectively improving the accuracy and processing efficiency of image screening.
[0102] In a specific embodiment, images whose composition analysis data or target composition analysis data is greater than or equal to a preset value may be used as images that can be displayed and published, whereas images whose composition analysis data or target composition analysis data is less than the preset value may be deleted.
[0103] In another specific embodiment, the composition analysis data or the target composition analysis data may be sorted from large to small according to their numerical values, and the images ranked first N (N is a positive integer) are used as images that can be displayed and published, and conversely, the images ranked after N (N is a positive integer) are deleted.
[0104] In addition, it should be noted that, in the process of determining the composition analysis data, tolerance items are taken into consideration. Specifically, for example, in the process of determining the composition analysis data by using the above-mentioned contour information and spiral fitting, by setting tolerance items, points that are close to the spiral but do not completely fall on the spiral can also be regarded as fitting the spiral.
[0105] It can be seen from the technical solutions provided in the above embodiments of this specification that, in the embodiments of this specification, by obtaining the layer information of the target image and the layout structure information of multiple element images in the target image; and performing composition analysis on the target image based on the layer information and / or layout structure information, composition analysis data that effectively reflects the layout structure of the target image can be obtained, and the composition analysis data of the target image can be used to measure the advantages and disadvantages of the layout structure of the target image from multiple aspects. The technical solution provided by this application can be used to quickly and accurately perform image composition analysis, solve the problems of high cost and low processing efficiency caused by manual processing, greatly reduce the cost of composition analysis, improve the processing efficiency of image composition analysis, and at the same time improve the accuracy and processing efficiency of subsequent image screening.
[0106] In other embodiments, the present application may also combine machine learning to perform image composition analysis processing. Specifically, it may combine a composition analysis model capable of analyzing image composition. Specifically, the composition analysis model may include one trained in the following manner:
[0107] Obtain a large number of images with different layout structures (different compositions) and use these images as training data;
[0108] Composition analysis data are set for these images with different layout structures;
[0109] Input the training data into the machine learning model to perform learning and training of the composition weights. During the learning and training process, the parameters of the machine learning model can be adjusted so that the output of the machine learning model matches the composition analysis data corresponding to the training data;
[0110] The machine learning model when the output matches the composition analysis data corresponding to the training data is used as the composition analysis model;
[0111] Furthermore, by inputting any image into the composition analysis model, the composition analysis data of the image can be obtained.
[0112] The present application also provides an image composition analysis device, such as Fig.13 As shown, the device comprises:
[0113] The layer information acquisition module 1310 may be used to acquire layer information of a target image, wherein the layer information represents basic attribute information of the target image and multiple element images in the target image;
[0114] The layout structure information determination module 1320 may be used to determine the layout structure information of multiple element images in the target image;
[0115] The composition analysis module 1330 may be used to perform composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image.
[0116] In some embodiments, the layer information includes size information of the target image and vertex position information of the plurality of element images, and the layout structure information includes contour information;
[0117] The composition analysis module 1330 includes:
[0118] A first target coordinate system construction unit, configured to construct a target coordinate system according to size information of the target image;
[0119] A coordinate position determining unit, configured to determine the coordinate positions of the plurality of element images in the target coordinate system according to the vertex position information of the plurality of element images and the contour information;
[0120] an alignment information determining unit, configured to determine alignment information of the plurality of element images in the target coordinate system according to the coordinate positions;
[0121] The first composition analysis data determining unit is configured to analyze the composition analysis data of the target image in image alignment based on the alignment information.
[0122] In some embodiments, the layout structure information includes a tilt angle;
[0123] The composition analysis module 1330 includes:
[0124] A tilt deviation information determining unit, configured to determine the tilt deviation information between any two element images according to the tilt angles of the plurality of element images;
[0125] The second composition analysis data determination unit is used to analyze the composition analysis data of the target image in terms of visual direction based on the tilt deviation information between the pairwise element images.
[0126] The layer information includes the size information of the target image and the vertex position information of the plurality of element images; the layout structure information includes outline information;
[0127] The composition analysis module 1330 includes:
[0128] A second target coordinate system construction unit, configured to construct a target coordinate system according to size information of the target image;
[0129] A contour information drawing unit, used for drawing the contour information of the plurality of element images in the target coordinate system according to the vertex position information of the plurality of element images and the contour information;
[0130] A spiral line drawing unit, used for drawing a spiral line corresponding to the golden section in the target coordinate system;
[0131] The third composition analysis data determining unit is used to analyze the first composition analysis data of the target image on the element structure based on the fitting degree of the spiral line and the contour information of the plurality of element images in the target coordinate system.
[0132] In some embodiments, the layout structure information includes: a center of gravity; the layer information includes size information of the plurality of element images;
[0133] The composition analysis module 1330 includes:
[0134] An image ratio determination unit, configured to determine the image ratio divided by the center of gravity of each element image according to the size information of the plurality of element images and the center of gravity of each element image;
[0135] The fourth composition analysis data determining unit is configured to analyze the second composition analysis data of the target image on the element structure based on the image ratios of the plurality of element images.
[0136] In some embodiments, the layout structure information determination module includes:
[0137] A binarization processing unit, used for performing binarization processing on the target image to obtain a binary image;
[0138] A vertex position determination unit, used to determine the vertex positions of a plurality of polygons in the binary image;
[0139] a contour information determining unit, configured to determine contour information of the plurality of element images based on vertex positions of the plurality of polygons;
[0140] A moment calculation unit, used for calculating moments of contour information of the plurality of element images;
[0141] A gravity center determination unit, used to determine the gravity center of each element image according to each order moment of the contour information of each element image;
[0142] A first inclination angle determination unit, used to determine the inclination angle of each edge of the polygon according to the vertex position of the polygon corresponding to each element image;
[0143] A second inclination angle determination unit, configured to determine the inclination angle of the corresponding element image according to the inclination angle of each edge of the polygon;
[0144] The layout structure information determining unit is used to use at least one of the outline information, the center of gravity and the tilt angle of the element image as the layout structure information.
[0145] In some embodiments, the layer information further includes: a hierarchical relationship between a plurality of element images;
[0146] The composition analysis module 1330 includes:
[0147] The fifth composition analysis data determining unit is used to analyze the composition analysis data of the target image on the image overlay according to the hierarchical relationship between the multiple element images.
[0148] In some embodiments, when the composition analysis data includes multiple types of composition analysis data, the apparatus further includes:
[0149] A normalization processing module, used for performing normalization processing on the multiple types of composition analysis data;
[0150] A composition weight determination module, used to determine the composition weights of the multiple types of composition analysis data, wherein the composition weights represent the degree of influence of each type of composition analysis data on the layout structure of the target image;
[0151] The weighted average processing module is used to perform weighted average processing based on the normalized composition analysis data and the composition weight to obtain target composition analysis data of the target image.
[0152] In some embodiments, the apparatus further comprises:
[0153] An image screening processing module is used to perform image screening processing on the target image based on the composition analysis data or the target composition analysis data.
[0154] The device and method embodiments in the device embodiments are based on the same application concept.
[0155] An embodiment of the present application provides an image composition analysis device, which includes a processor and a memory, in which at least one instruction, at least one program, a code set or an instruction set is stored, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the image composition analysis method provided in the above method embodiment.
[0156] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the device, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory can also include a memory controller to provide the processor with access to the memory.
[0157] The method embodiments provided in the embodiments of the present invention can be executed in a client (mobile terminal, computer terminal), a server or a similar computing device. Taking running on a client as an example, Fig.14 is a schematic diagram of the structure of a client provided by an embodiment of the present invention, such as Fig.14 As shown, the client can be used to implement the information interaction method provided in the above embodiment. Specifically:
[0158] The client may include components such as an RF (Radio Frequency) circuit 1410, a memory 1420 including one or more computer-readable storage media, an input unit 1430, a display unit 1440, a sensor 1450, an audio circuit 1460, a WiFi (wireless fidelity) module 1470, a processor 1480 including one or more processing cores, and a power supply 1490. Those skilled in the art will appreciate that Fig.14 The client structure shown in the figure does not constitute a limitation on the client, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0159] The RF circuit 1414 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 1480 for processing; in addition, the data related to the uplink is sent to the base station. Generally, the RF circuit 1414 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a user identity module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, etc. In addition, the RF circuit 1414 can also communicate with the network and other clients through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobilecommunication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), etc.
[0160] The memory 1420 can be used to store software programs and modules, and the processor 1480 executes various functional applications and data processing by running the software programs and modules stored in the memory 1420. The memory 1420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, etc.; the data storage area may store data created according to the use of the client, etc. In addition, the memory 1420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 1420 may also include a memory controller to provide the processor 1480 and the input unit 1430 with access to the memory 1420.
[0161] The input unit 1430 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 1430 may include a touch-sensitive surface 1431 and other input devices 1432. The touch-sensitive surface 1431, also known as a touch display screen or touch pad, can collect user touch operations on or near it (such as operations performed by the user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch-sensitive surface 1431), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface 1431 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 1480, and can receive and execute commands sent by the processor 1480. In addition, the touch-sensitive surface 1431 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 1431, the input unit 1430 may further include other input devices 1432. Specifically, the other input devices 1432 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0162] The display unit 1440 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the client, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 1440 may include a display panel 1441, and optionally, the display panel 1441 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode) and the like. Further, the touch-sensitive surface 1431 may cover the display panel 1441, and when the touch-sensitive surface 1431 detects a touch operation on or near it, it is transmitted to the processor 1480 to determine the type of the touch event, and then the processor 1480 provides corresponding visual output on the display panel 1441 according to the type of the touch event. Among them, the touch-sensitive surface 1431 and the display panel 1441 can be two independent components to realize the input and output functions, but in some embodiments, the touch-sensitive surface 1431 and the display panel 1441 can also be integrated to realize the input and output functions.
[0163] The client may also include at least one sensor 1450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1441 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1441 and / or the backlight when the client moves to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used for applications that identify the posture of the client (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can also be configured on the client, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.
[0164] The audio circuit 1460, the speaker 1461, and the microphone 1462 can provide an audio interface between the user and the client. The audio circuit 1460 can transmit the electrical signal converted from the received audio data to the speaker 1461, which is converted into a sound signal for output; on the other hand, the microphone 1462 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1460 and converted into audio data, and then the audio data is output to the processor 1480 for processing, and then sent to another client through the RF circuit 1410, or the audio data is output to the memory 1420 for further processing. The audio circuit 1460 may also include an earphone jack to provide communication between an external headset and the client.
[0165] WiFi is a short-range wireless transmission technology. The client can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 1470, which provides users with wireless broadband Internet access. Fig.14 A WiFi module 1470 is shown, but it is understandable that it is not a necessary component of the client and can be omitted as needed without changing the essence of the invention.
[0166] The processor 1480 is the control center of the client, and uses various interfaces and lines to connect various parts of the entire client. By running or executing software programs and / or modules stored in the memory 1420, and calling data stored in the memory 1420, the processor 1480 performs various functions of the client and processes data, thereby monitoring the client as a whole. Optionally, the processor 1480 may include one or more processing cores; preferably, the processor 1480 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1480.
[0167] The client also includes a power supply 1490 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 1480 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions. The power supply 1490 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0168] Although not shown, the client may also include a camera, a Bluetooth module, etc., which will not be described in detail herein. Specifically in this embodiment, the display unit of the client is a touch screen display, and the client also includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to execute instructions in the method embodiment of the present invention.
[0169] An embodiment of the present application also provides a storage medium, which can be set in a device to store at least one instruction, at least one program, code set or instruction set related to an image composition analysis method in a method embodiment. The at least one instruction, the at least one program, the code set or instruction set is loaded and executed by the processor to implement the image composition analysis method provided by the above method embodiment.
[0170] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0171] It can be seen from the embodiments of the image composition analysis method, device, server or storage medium provided by the present application that, in the present application, by obtaining the layer information of the target image and the layout structure information of multiple element images in the target image; performing composition analysis on the target image based on the layer information and / or layout structure information, it is possible to obtain composition analysis data that effectively reflects the layout structure of the target image, and measure the advantages and disadvantages of the layout structure of the target image from multiple aspects through the composition analysis data of the target image. The technical solution provided by the present application can be used to quickly and accurately perform image composition analysis, solve the problems of high cost and low processing efficiency caused by manual processing, greatly reduce the cost of composition analysis, improve the processing efficiency of image composition analysis, and at the same time improve the accuracy and processing efficiency of subsequent image screening.
[0172] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of this specification are described. Other embodiments are within the scope of the attached claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0173] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and server embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0174] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by instructing the relevant hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0175] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. An image composition analysis method, characterized in that: The method comprises: Acquire layer information of a target image, wherein the layer information represents basic attribute information of the target image and a plurality of element images in the target image; Determine layout structure information of multiple element images in the target image; Performing composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image, wherein the composition analysis data is a measure of the quality of the layout structure of the target image. When the layer information includes size information of the target image and vertex position information of the multiple element images, and the layout structure information includes contour information, performing composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image includes: constructing a target coordinate system based on the size information of the target image; determining coordinate positions of the multiple element images in the target coordinate system based on the vertex position information and the contour information of the multiple element images; determining alignment information of the multiple element images in the target coordinate system based on the coordinate positions, wherein the alignment information is information characterizing the alignment between the multiple element images; and analyzing the composition analysis data of the target image on image alignment based on the alignment information.
2. The method according to claim 1, characterized in that The layout structure information includes a tilt angle; The performing composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image includes: Determining tilt deviation information between any two element images according to the tilt angles of the plurality of element images; The composition analysis data of the target image in terms of visual direction is analyzed based on the tilt deviation information between the pairwise element images.
3. The method according to claim 1, characterized in that: The layer information includes the size information of the target image and the vertex position information of the plurality of element images; the layout structure information includes outline information; The performing composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image includes: Constructing a target coordinate system according to the size information of the target image; Drawing contour information of the plurality of element images in the target coordinate system according to vertex position information of the plurality of element images and the contour information; Draw a spiral line corresponding to the golden section in the target coordinate system; Based on the fitting degree of the spiral line and the contour information of the plurality of element images in the target coordinate system, the first composition analysis data of the target image on the element structure is analyzed.
4. The method according to claim 1, characterized in that: The layout structure information includes: the center of gravity; the layer information includes the size information of the multiple element images; The performing composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image includes: Determining the image ratio divided by the center of gravity of each element image according to the size information of the plurality of element images and the center of gravity of each element image; Based on the image ratios of the plurality of element images, second composition analysis data of the target image on the element structure is analyzed.
5. The method according to claim 1, characterized in that The layer information also includes: a hierarchical relationship between multiple element images; The method further comprises: The composition analysis data of the target image on the image overlay is analyzed according to the hierarchical relationship between the multiple element images.
6. The method according to claim 1, characterized in that The step of determining the layout structure information of the plurality of element images in the target image comprises: Performing binarization processing on the target image to obtain a binary image; Determining the vertex positions of a plurality of polygons in the binary image; Determining contour information of the plurality of element images based on vertex positions of the plurality of polygons; Calculating moments of contour information of the plurality of element images; Determining the center of gravity of each element image according to each order moment of the contour information of each element image; Determine the inclination angle of each side of the polygon according to the vertex position of the polygon corresponding to each element image; Determine the inclination angle of the corresponding element image according to the inclination angle of each edge of the polygon; At least one of the outline information, the center of gravity and the tilt angle of the element image is used as the layout structure information.
7. The method according to claim 1, characterized in that When the composition analysis data includes multiple types of composition analysis data, the method further includes: performing normalization processing on the multiple types of composition analysis data; Determining composition weights of the multiple types of composition analysis data, wherein the composition weights represent the degree of influence of each type of composition analysis data on the layout structure of the target image; A weighted average process is performed based on the normalized composition analysis data and the composition weight to obtain target composition analysis data of the target image.
8. The method according to claim 7, characterized in that The method further comprises: An image screening process is performed on the target image based on the composition analysis data or the target composition analysis data.
9. An image composition analysis device, characterized in that: The device comprises: A layer information acquisition module, used to acquire layer information of a target image, wherein the layer information represents basic attribute information of the target image and a plurality of element images in the target image; A layout structure information determination module, used to determine the layout structure information of multiple element images in the target image; A composition analysis module is used to perform composition analysis on the target image based on the layer information and / or layout structure information to obtain composition analysis data of the target image, wherein the composition analysis data is a measure of the quality of the layout structure of the target image; when the layer information includes the size information of the target image and the vertex position information of the multiple element images, and the layout structure information includes contour information, the composition analysis module includes: a first target coordinate system construction unit, used to construct a target coordinate system according to the size information of the target image; a coordinate position determination unit, used to determine the coordinate positions of the multiple element images in the target coordinate system according to the vertex position information and the contour information of the multiple element images; an alignment information determination unit, used to determine the alignment information of the multiple element images in the target coordinate system according to the coordinate positions, wherein the alignment information is information characterizing the alignment between the multiple element images; a first composition analysis data determination unit, used to analyze the composition analysis data of the target image on image alignment based on the alignment information.
10. The device according to claim 9, characterized in that The layout structure information includes a tilt angle; The composition analysis module comprises: A tilt deviation information determining unit, configured to determine the tilt deviation information between any two element images according to the tilt angles of the plurality of element images; The second composition analysis data determination unit is used to analyze the composition analysis data of the target image in terms of visual direction based on the tilt deviation information between the pairwise element images.
11. The device according to claim 9, characterized in that The layer information includes the size information of the target image and the vertex position information of the plurality of element images; the layout structure information includes contour information; and the composition analysis module includes: A second target coordinate system construction unit, configured to construct a target coordinate system according to size information of the target image; A contour information drawing unit, used for drawing the contour information of the plurality of element images in the target coordinate system according to the vertex position information of the plurality of element images and the contour information; A spiral line drawing unit, used for drawing a spiral line corresponding to the golden section in the target coordinate system; The third composition analysis data determining unit is used to analyze the first composition analysis data of the target image on the element structure based on the fitting degree of the spiral line and the contour information of the plurality of element images in the target coordinate system.
12. The device according to claim 9, characterized in that The layout structure information includes: the center of gravity; the layer information includes the size information of the multiple element images; The composition analysis module includes: An image ratio determination unit, configured to determine the image ratio divided by the center of gravity of each element image according to the size information of the plurality of element images and the center of gravity of each element image; The fourth composition analysis data determining unit is configured to analyze the second composition analysis data of the target image on the element structure based on the image ratios of the plurality of element images.
13. The device according to claim 9, characterized in that The layout structure information determination module includes: A binarization processing unit, used for performing binarization processing on the target image to obtain a binary image; A vertex position determination unit, used to determine the vertex positions of a plurality of polygons in the binary image; a contour information determining unit, configured to determine contour information of the plurality of element images based on vertex positions of the plurality of polygons; A moment calculation unit, used for calculating moments of contour information of the plurality of element images; A gravity center determination unit, used to determine the gravity center of each element image according to each order moment of the contour information of each element image; A first inclination angle determination unit, used to determine the inclination angle of each edge of the polygon according to the vertex position of the polygon corresponding to each element image; A second inclination angle determination unit, configured to determine the inclination angle of the corresponding element image according to the inclination angle of each edge of the polygon; The layout structure information determining unit is used to use at least one of the outline information, the center of gravity and the tilt angle of the element image as the layout structure information.
14. The device according to claim 9, characterized in that The layer information also includes: the hierarchical relationship between multiple element images; the composition analysis module includes: The fifth composition analysis data determining unit is used to analyze the composition analysis data of the target image on the image overlay according to the hierarchical relationship between the multiple element images.
15. The device according to claim 9, characterized in that When the composition analysis data includes multiple types of composition analysis data, the apparatus further includes: A normalization processing module, used for performing normalization processing on the multiple types of composition analysis data; A composition weight determination module, used to determine the composition weights of the multiple types of composition analysis data, wherein the composition weights represent the degree of influence of each type of composition analysis data on the layout structure of the target image; The weighted average processing module is used to perform weighted average processing based on the normalized composition analysis data and the composition weight to obtain target composition analysis data of the target image.
16. The device according to claim 15, characterized in that The device also includes: An image screening processing module is used to perform image screening processing on the target image based on the composition analysis data or the target composition analysis data.
17. An image composition analysis device, characterized in that: The device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program or a code set, and the at least one instruction, the at least one program or the code set is loaded and executed by the processor to implement the image composition analysis method as described in any one of claims 1 to 8.
18. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program or a code set, and the at least one instruction, the at least one program or the code set is loaded and executed by the processor to implement the image composition analysis method described in any one of claims 1 to 8.