Information processing method and apparatus

By acquiring and merging the base layer set of the target object and constructing a layer structure tree, the problem of low efficiency in component hierarchy analysis in existing technologies is solved, and fast and efficient component library construction is achieved.

CN116382772BActive Publication Date: 2026-07-14BEIJING KANYUN SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING KANYUN SOFTWARE CO LTD
Filing Date
2023-04-17
Publication Date
2026-07-14

Smart Images

  • Figure CN116382772B_ABST
    Figure CN116382772B_ABST
Patent Text Reader

Abstract

The present specification provides an information processing method and device, wherein the information processing method comprises: acquiring a base layer set composed of a plurality of base layers contained by a target object; determining layer position information between base layers having an adjacent relationship in the base layer set, and merging the base layers contained in the base layer set according to the layer position information to obtain an initial layer set; merging initial layers with the same layer recursive attribute in the initial layer set to obtain an intermediate layer set, and merging intermediate layers in the intermediate layer set according to a layer merging condition to obtain a target layer set; and constructing a layer structure tree corresponding to the target object based on merging information between the base layer set, the initial layer set, the intermediate layer set and the target layer set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of information processing technology, and in particular to information processing methods and apparatus. Background Technology

[0002] With the development of internet technology, more and more businesses are going online. Along with this online transformation, various applications and web pages, serving as bridges for interaction between businesses and users, are being designed to be more aesthetically pleasing and convenient by business providers. When designing components for applications or web pages, designers often need to build a unified component library to maintain design consistency, improve productivity, and manage the design system. This library should be shared with other designers to improve component design efficiency and facilitate the management of completed components. However, before implementing the components into the library, a hierarchical structure analysis of the components in the design draft is usually required. This allows downstream businesses to categorize the components based on the analysis results, ensuring proper component categorization during implementation. Currently, most hierarchical structure analysis is performed by users, which is not only resource-intensive but also inefficient. Therefore, an effective solution is urgently needed to address these issues. Summary of the Invention

[0003] In view of the above, embodiments of this specification provide an information processing method. This specification also relates to an information processing apparatus, a computing device, and a computer-readable storage medium to address the technical deficiencies existing in the prior art.

[0004] According to a first aspect of the embodiments of this specification, an information processing method is provided, comprising:

[0005] Get the collection of base layers that make up the target object;

[0006] Determine the layer position information between adjacent basic layers in the basic layer set, and merge the basic layers contained in the basic layer set according to the layer position information to obtain an initial layer set;

[0007] The initial layers with the same recursive properties in the initial layer set are merged to obtain an intermediate layer set, and the intermediate layers in the intermediate layer set are merged according to the layer merging conditions to obtain the target layer set.

[0008] Based on the merging information among the base layer set, the initial layer set, the intermediate layer set, and the target layer set, a layer structure tree corresponding to the target object is constructed.

[0009] Optionally, obtaining the set of base layers consisting of multiple base layers contained in the target object includes:

[0010] Obtain the multiple basic design layers contained in the target object, and determine the layer attribute information corresponding to each basic design layer;

[0011] The multiple basic design layers are filtered according to the layer attribute information corresponding to each basic design layer, and the multiple basic layers are obtained based on the filtering results.

[0012] The base layer set is constructed based on the multiple base layers.

[0013] Optionally, determining the layer position information between adjacent basic layers in the basic layer set includes:

[0014] Determine the basic elements corresponding to each basic layer in the set of basic layers, and construct a bounding box for each basic element corresponding to the basic layer;

[0015] Based on the adjacency relationship between the basic layers in the basic layer set, the position information between the bounding boxes corresponding to the basic layers is calculated and used as the layer position information.

[0016] Optionally, determining the layer position information between the first and second basic layers that are adjacent in the basic layer set includes:

[0017] If the visual priority of the first base layer is lower than that of the second base layer, and the bounding box corresponding to the first base layer contains the bounding box corresponding to the second base layer, then the layer position information between the first base layer and the second base layer is determined as layer containment information.

[0018] If the visual priority of the first base layer is greater than that of the second base layer, and the bounding box corresponding to the first base layer contains the bounding box corresponding to the second base layer, the layer position information between the first base layer and the second base layer is determined as layer coverage information.

[0019] When there is an overlapping area between the bounding box corresponding to the first base layer and the bounding box corresponding to the second base layer, the layer position information between the first base layer and the second base layer is determined as layer intersection information.

[0020] Optionally, merging the base layers contained in the base layer set according to the layer position information to obtain an initial layer set includes:

[0021] Determine the layer attribute information corresponding to each basic layer in the set of basic layers;

[0022] Based on the layer attribute information corresponding to each base layer, select base layers with the same color and whose layer position information is layer inclusion information or layer intersection information for merging;

[0023] The initial layer set is generated based on the merged result.

[0024] Optionally, merging initial layers with the same recursive attributes in the initial layer set to obtain an intermediate layer set includes:

[0025] The initial layers contained in the initial layer set are processed recursively in order from the highest layer to the lowest layer.

[0026] Based on the recursive processing results, select the layer position information as the initial layer containing the information, and construct at least two initial layer pairs;

[0027] In each initial layer pair, select initial layers with the same recursive properties and merge them. Generate the intermediate layer based on the merge result.

[0028] Optionally, merging the intermediate layers in the intermediate layer set according to the layer merging conditions to obtain the target layer set includes:

[0029] Select a first intermediate layer from the set of intermediate layers, and determine the number of base layers contained in the first intermediate layer, as well as the text layer attribute information of the text layers contained therein;

[0030] Based on the quantity information and the text layer attribute information, if the first intermediate layer satisfies the layer merging condition, then in the intermediate layer set, find the intermediate layer whose layer position information between it and the first intermediate layer is the layer containing information, and use it as the second intermediate layer.

[0031] An intermediate layer group is determined in the intermediate layer set based on the first intermediate layer and the second intermediate layer, and a third intermediate layer is generated based on the intermediate layer group;

[0032] The third intermediate layer and the first intermediate layer are merged, and the second intermediate layer and the fourth intermediate layer in the intermediate layer set are merged, and the target layer set is generated based on the merging result.

[0033] Optionally, after the steps of determining the number of base layers contained in the first intermediate layer and the text layer attribute information of the included text layers are performed, the method further includes:

[0034] Based on the quantity information and the text layer attribute information, if it is determined that the first intermediate layer does not meet the layer merging condition, a fifth intermediate layer with a visual priority lower than the first intermediate layer is searched in the intermediate layer set.

[0035] The first intermediate layer and the fifth intermediate layer are merged, and the target layer set is generated based on the merging result.

[0036] Optionally, constructing the layer structure tree corresponding to the target object based on the merging information among the base layer set, the initial layer set, the intermediate layer set, and the target layer set includes:

[0037] Layer nodes are generated based on the layers contained in the base layer set, the initial layer set, the intermediate layer set, and the target layer set, respectively;

[0038] Based on the merging information between the base layer set, the initial layer set, the intermediate layer set, and the target layer set, layer edges are generated;

[0039] Connect the layer nodes and the layer edges, and generate the layer structure tree corresponding to the target object based on the connection results.

[0040] According to a second aspect of the embodiments of this specification, an information processing apparatus is provided, comprising:

[0041] The acquisition module is configured to acquire a set of base layers consisting of multiple base layers contained in the target object;

[0042] The determining module is configured to determine the layer position information between adjacent basic layers in the basic layer set, and merge the basic layers contained in the basic layer set according to the layer position information to obtain an initial layer set;

[0043] The merging module is configured to merge initial layers with the same recursive properties in the initial layer set to obtain an intermediate layer set, and to merge the intermediate layers in the intermediate layer set according to the layer merging conditions to obtain a target layer set.

[0044] The construction module is configured to construct a layer structure tree corresponding to the target object based on the merging information between the base layer set, the initial layer set, the intermediate layer set, and the target layer set.

[0045] According to a third aspect of the embodiments of this specification, a computing device is provided, comprising:

[0046] Memory and processor;

[0047] The memory is used to store computer-executable instructions, and the processor is used to implement the steps of the information processing method when executing the computer-executable instructions.

[0048] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided that stores computer-executable instructions that, when executed by a processor, implement the steps of the information processing method.

[0049] The information processing method provided in this embodiment, in order to quickly and efficiently complete the hierarchical structure analysis between basic layers in a target object, first obtains a set of basic layers composed of multiple basic layers contained in the target object. Then, it determines the layer position information between adjacent basic layers in the set, and performs a first merging of the basic layers in the set based on the layer position information to obtain an initial layer set. Next, it performs a second merging of initial layers with the same recursive attributes in the initial layer set to obtain an intermediate layer set. Finally, it performs a third merging of the intermediate layers in the intermediate layer set according to the layer merging conditions to obtain the target layer set. This allows for a preliminary analysis of the hierarchical relationships, i.e., the superior-subordinate relationships, between the layers based on the merging relationships. Finally, based on the merging information between the basic layer set, the initial layer set, the intermediate layer set, and the target layer set, a layer structure tree corresponding to the target object is constructed. This allows the hierarchical relationships between each basic layer to be mined through merging, and the construction of a hierarchical structure tree based on these relationships provides a more intuitive feedback on the hierarchical relationships of the components corresponding to the layers contained in the target object. This not only saves more time in hierarchical structure analysis but also makes it more convenient for downstream business applications. Attached Figure Description

[0050] Figure 1 This is a schematic diagram of an information processing method provided in one embodiment of this specification;

[0051] Figure 2 This is a flowchart of an information processing method provided in one embodiment of this specification;

[0052] Figure 3 This is a schematic diagram of the layer structure in an information processing method provided in one embodiment of this specification;

[0053] Figure 4 This is a flowchart illustrating an information processing method provided in one embodiment of this specification.

[0054] Figure 5 This is a schematic diagram of the structure of an information processing device provided in one embodiment of this specification;

[0055] Figure 6This is a structural block diagram of a computing device provided in one embodiment of this specification. Detailed Implementation

[0056] Many specific details are set forth in the following description to provide a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.

[0057] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of this specification. The singular forms “a,” “described,” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0058] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this specification, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."

[0059] This specification provides an information processing method, and also relates to an information processing apparatus, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.

[0060] See Figure 1The schematic diagram illustrates that the information processing method provided in this embodiment, in order to quickly and efficiently complete the hierarchical structure analysis between basic layers in a target object, first obtains a set of basic layers composed of multiple basic layers contained in the target object. Then, it determines the layer position information between adjacent basic layers in the set, and performs a first merging of the basic layers in the set based on the layer position information to obtain an initial layer set. Next, it performs a second merging of the initial layers in the initial layer set that have the same recursive attributes to obtain an intermediate layer set. Finally, it performs a third merging of the intermediate layers in the intermediate layer set according to the layer merging conditions to obtain the target layer set. This allows for a preliminary analysis of the hierarchical relationship between each layer, i.e., the superior-subordinate relationship, based on the merging relationship. Finally, based on the merging information between the basic layer set, the initial layer set, the intermediate layer set, and the target layer set, a layer structure tree corresponding to the target object is constructed. This allows the hierarchical relationship between each basic layer to be mined through merging, and the hierarchical structure tree constructed from this relationship provides a more intuitive feedback on the hierarchical relationship of the components corresponding to the layers contained in the target object. This not only saves more time in hierarchical structure analysis but also makes it more convenient for downstream business use.

[0061] Figure 2 A flowchart of an information processing method according to an embodiment of this specification is shown, which specifically includes the following steps:

[0062] Step S202: Obtain the set of base layers consisting of multiple base layers contained in the target object.

[0063] The information processing method provided in this embodiment is applied to the conversion of component design drafts into layer structure trees. The converted layer structure tree can reflect the hierarchical relationship of elements in the component design draft, the hierarchical relationship between different components, and the hierarchical relationship between different layers. This enables the components in the component design draft to be persisted to the database based on the layer structure tree for the convenience of downstream business use.

[0064] Specifically, the target object refers to the component design draft, provided by the component designer. Correspondingly, the base layer refers to the smallest indivisible element in the component design draft, such as rectangles, shapes, text, and icons, used to generate a component by combining one or more layers; its structure is user-defined. Correspondingly, the base layer set refers to the collection of all base layers contained in the target object, used to determine the hierarchical relationships between layers based on the base layer set, facilitating downstream business applications. The design draft can be understood as a document composed of a series of different layers arranged according to a custom layout, created by the designer when designing the component.

[0065] Therefore, when it is necessary to perform hierarchical structure analysis on multiple basic layers contained in a target object to facilitate downstream business use, in order to complete the hierarchical structure analysis automatically and efficiently, a set of basic layers can be formed based on the multiple basic layers contained in the target object, so as to facilitate subsequent hierarchical structure analysis on the basic layers contained in the set of basic layers.

[0066] Furthermore, considering that the target object contains a base layer with a transparent visual effect, which is not part of the design component, this base layer can be removed to avoid affecting the hierarchical structure analysis. In this embodiment, the specific implementation is as follows:

[0067] Obtain multiple basic design layers contained in the target object, and determine the layer attribute information corresponding to each basic design layer; filter the multiple basic design layers according to the layer attribute information corresponding to each basic design layer, and obtain the multiple basic layers according to the filtering results; construct the basic layer set according to the multiple basic layers.

[0068] Specifically, the basic design layer refers to the layer within the target object designed by the designer, including but not limited to text, rectangles, icons, buttons, etc. Correspondingly, the layer attribute information refers to the attribute description information corresponding to each basic design layer, including but not limited to layer color, type, size, etc. This embodiment does not impose any limitations.

[0069] Therefore, in order to ensure that the layer structure tree is constructed based on the valid base layers contained in the target object, so as to facilitate downstream business use, we can first obtain the multiple base design layers contained in the target object and determine the layer attribute information corresponding to each base design layer; then, we can filter the multiple base design layers according to the layer attribute information corresponding to each base design layer to remove transparent base layers without color, so as to obtain multiple base layers according to the filtering results; and then construct a base layer set based on the multiple base layers.

[0070] In other words, after obtaining all the basic layers in the design draft, you can first remove the transparent basic layers without color. This will result in a set S = {s1, ..., s...} of the basic layers. n}, where Sn is a unique identifier for each base layer.

[0071] For example, after User A submits a component design draft, it contains 7 basic layers, namely A, B, C, D, E, F, and G. Then, the layer attribute information corresponding to each basic layer is read, and it is determined that the basic layer G is a transparent basic layer without color. Therefore, the G layer can be removed. Then, based on the remaining 6 basic layers, the hierarchical relationship between each layer is analyzed in subsequent steps.

[0072] In summary, by removing the base layers that affect the layer structure analysis, we can ensure that the constructed layer structure tree can more intuitively reflect the relationships between the various layers in the target object, thus facilitating downstream business use.

[0073] Step S204: Determine the layer position information between adjacent basic layers in the basic layer set, and merge the basic layers contained in the basic layer set according to the layer position information to obtain an initial layer set.

[0074] Specifically, after obtaining the set of basic layers in the target object, considering that the basic layers in the set have different priorities within the target object (i.e., low-level and high-level basic layers exist), and that these priorities represent the visual priority of elements within a layer, we can first determine the layer position information between adjacent basic layers in the set to facilitate the construction of a more accurate layer structure tree. This means determining the layer position of the basic layers within the target object. Based on this layer position information, we can selectively merge adjacent basic layers in the set to obtain an initial layer set. This facilitates further merging later. Then, based on the initial layer set, we determine new merging relationships and finally perform layer structure analysis according to these relationships.

[0075] Specifically, "adjacency relationship" refers to the spatial structural adjacency of base layers within the target object. Correspondingly, "layer position information" refers to the positional relationship between adjacent base layers, including but not limited to relationships such as overlapping, containment, or intersection between two base layers; different positional relationships correspond to different visual effects. Furthermore, the initial layer set specifically refers to the set of layers in the base layer set that have adjacency relationships and have been merged according to their positional relationships. This set also includes the base layers that were not merged.

[0076] Furthermore, when determining the layer position information between adjacent base layers, in order to ensure that the position information of layers with different relationships can be confirmed and to facilitate subsequent merging processing, the position information can be calculated by combining the bounding boxes of the base elements in the layers; in this embodiment, the specific implementation method is as follows:

[0077] Determine the basic element corresponding to each basic layer in the basic layer set, and construct a bounding box for each basic element; calculate the position information between the bounding boxes corresponding to the basic layers based on the adjacency relationship between the basic layers in the basic layer set, and use it as the layer position information.

[0078] Specifically, the basic elements refer to the elements contained in the basic layer, which can be used to demonstrate the display effect of the component, including but not limited to text boxes, rectangles, icons, shapes, etc. The bounding box refers to the wireframe drawn based on the shape of the base element, which is used to determine the position and shape of the basic element. Thus, the positional information between layers can be analyzed based on the relationship between the bounding boxes.

[0079] Based on this, in order to accurately analyze the positional relationship between adjacent base layers, we can first determine the base elements corresponding to each base layer in the base layer set, and construct bounding boxes for each base element. Then, based on the adjacency relationship between base layers in the base layer set, we can calculate the positional information between the bounding boxes corresponding to the base layers, thereby determining the layer positional information between adjacent base layers.

[0080] In summary, by constructing bounding boxes for base layers and analyzing the positional information of the bounding boxes between adjacent base layers, the layer positional information between base layers can be determined more accurately. Based on this, merging base layers can ensure even more accurate merging.

[0081] Furthermore, considering that different location information will affect different layer merging logics during the merging stage, it is necessary to determine different location information by combining different location relationships; in this embodiment, the determination of the layer location information between the first and second basic layers that have an adjacent relationship in the basic layer set includes:

[0082] If the visual priority of the first base layer is lower than that of the second base layer, and the bounding box corresponding to the first base layer contains the bounding box corresponding to the second base layer, then the layer position information between the first base layer and the second base layer is determined as layer containment information.

[0083] If the visual priority of the first base layer is greater than that of the second base layer, and the bounding box corresponding to the first base layer contains the bounding box corresponding to the second base layer, the layer position information between the first base layer and the second base layer is determined as layer coverage information.

[0084] When there is an overlapping area between the bounding box corresponding to the first base layer and the bounding box corresponding to the second base layer, the layer position information between the first base layer and the second base layer is determined as layer intersection information.

[0085] This embodiment describes the process of determining the positional relationship between any two base layers. The determination of the positional relationship between other adjacent layers can be found in the same or corresponding descriptions in this embodiment. This embodiment does not impose any limitations on this.

[0086] Specifically, the first base layer and the second base layer refer to two base layers in the target object that are spatially adjacent. Correspondingly, layer containment relationship refers to the positional relationship where the first base layer is contained by the second base layer, or vice versa. Similarly, layer overlap relationship refers to the positional relationship where the first base layer is covered by the second base layer, or vice versa. Layer intersection relationship refers to the positional relationship where the first base layer and the second base layer intersect.

[0087] Based on this, if the visual priority of the first base layer is lower than that of the second base layer, and the bounding box corresponding to the first base layer contains the bounding box corresponding to the second base layer, it indicates that the first base layer is a low base layer and the second base layer is a high base layer. Furthermore, if there is an inclusion relationship between the first base layer and the second base layer, the layer position information between the first base layer and the second base layer can be determined as layer inclusion information.

[0088] If the visual priority of the first base layer is greater than that of the second base layer, and the bounding box of the first base layer contains the bounding box of the second base layer, it indicates that the first base layer is a high base layer and the second base layer is a low base layer. If the first base layer and the second base layer have an overlapping position relationship, the layer position information between the first base layer and the second base layer is determined as layer coverage information.

[0089] If the bounding box corresponding to the first base layer overlaps with the bounding box corresponding to the second base layer, it indicates that there is an intersection between the first base layer and the second base layer. Therefore, the layer position information between the first base layer and the second base layer is determined as layer intersection information.

[0090] In other words, after obtaining the set of base layers corresponding to the target object, the relationships between neighboring layers in the set can be calculated. Neighboring layers are two adjacent and overlapping layers in the spatial structure; a lower layer refers to a layer that is visually below a higher layer. Layer positional relationships are categorized into three types: containment, overlap, and intersection. Containment means that the bounding box of an element in a lower layer completely contains the bounding box of an element in a higher layer; overlap means that the bounding box of an element in a higher layer completely contains the bounding box of an element in a lower layer; intersection means that the bounding boxes of two elements overlap, but do not satisfy the containment or overlap relationship.

[0091] Continuing with the previous example, after obtaining... Figure 3 As shown in the diagram, after establishing six basic layers (A, B, C, D, E, and F), the visual priority was determined to be C > A = B > E = F > D. Specifically, A and B are adjacent to C, C is adjacent to D, and D is adjacent to both E and F. Next, bounding boxes were drawn for the elements in each basic layer. Based on these bounding boxes and the visual priority, it was determined that basic layer D has an containment relationship with basic layers C, E, and F; basic layer C has an overlay relationship with basic layers A and B; and basic layers E and F have an intersection relationship. This facilitates subsequent layer merging based on these relationships.

[0092] In summary, by drawing bounding boxes for elements in a layer and analyzing the layer's position information based on these bounding boxes, we can ensure that the position information between adjacent base layers is determined more accurately, thereby enabling accurate subsequent merging processing.

[0093] After determining the layer position information, in order to merge layers with the same attributes together during the first layer merging and ensure accurate layer hierarchy, the merging can be performed by combining layer attribute information and layer position information. In this embodiment, the specific implementation method is as follows:

[0094] Determine the layer attribute information corresponding to each basic layer in the basic layer set; based on the layer attribute information corresponding to each basic layer, select basic layers with the same color and layer position information that is layer inclusion information or layer intersection information and merge them; generate the initial layer set based on the merging result.

[0095] Specifically, layer attribute information refers to the attribute description information corresponding to each base layer, including but not limited to the base layer's color, shape, size, etc. Based on this, in order to fully analyze the hierarchical relationship between the various base layers, we can first determine the layer attribute information corresponding to each base layer in the base layer set; then, based on the layer attribute information corresponding to each base layer, we select base layers with the same color and whose layer position information is either layer containment information or layer intersection information for merging; this allows us to generate an initial layer set based on the merging result.

[0096] In other words, the set S = {s1, ..., s} that constitutes the basic layers is determined. n After determining the positional relationship between adjacent base layers in the diagram, neighboring layers s with the same color can be identified as either containing or intersecting. i ,s j Merge the layers to obtain a new layer s. ij At this point, the updated set (initial layer set) is S = S - {s} i ,s j}+{s i,}

[0097] Following the previous example, after determining the layer position information among the six basic layers A, B, C, D, E, and F, by analyzing the layer attribute information of each basic layer, it is determined that basic layers E and F have the same color and are in an overlapping position. Therefore, basic layers E and F can be merged to obtain the merged basic layer S. EF Then the layer set is updated, resulting in a new layer set {A, B, C, D, S}. EF This is to facilitate use by downstream businesses.

[0098] In summary, by merging layers with related attributes and position settings, it is possible to merge basic layers with the same hierarchical relationship together. This ensures that the merged basic layers are at the same level and that their parent nodes are the same when constructing the layer structure tree later, thus providing a more intuitive feedback on the layer position relationship.

[0099] Step S206: Merge the initial layers with the same recursive attributes in the initial layer set to obtain an intermediate layer set, and merge the intermediate layers in the intermediate layer set according to the layer merging conditions to obtain the target layer set.

[0100] Specifically, after the initial merging of the basic layers in the basic layer set, the initial merging of the basic layers is completed. At this time, the initial layer set also includes other layers. Therefore, in order to recursively derive the root node and realize the layer structure analysis by combining the merging information between sets, we can first merge the initial layers with the same recursive attributes in the initial layer set to obtain the intermediate layer set. On this basis, we can then merge the intermediate layers in the intermediate layer set according to the layer merging conditions to obtain the target layer set. This facilitates the subsequent construction of the layer structure tree using the layer sets at each stage to reflect the hierarchical relationship between the basic layers.

[0101] Specifically, layer recursive attributes refer to the attributes shared by initial layers that have the same positional information but are not adjacent. For example, if layer A is contained by layer B and layer C is contained by layer D, then layers A and C have the same recursive attributes and can be merged. Similarly, layers B and D have the same recursive attributes and can be merged. Correspondingly, the intermediate layer set refers to the layer set obtained by merging the initial layers in the initial layer set. Furthermore, the layer merging condition refers to the conditions for merging intermediate layers, used to merge mergeable intermediate layers to obtain the final target layer set.

[0102] Furthermore, during the second merge, considering that this merge is based on the first merge and the merging basis has changed to some extent, in order to ensure that the hierarchical relationship between layers can still be accurately reflected after the merge, it can be implemented according to the position information corresponding to the second merge; in this embodiment, the specific implementation method is as follows:

[0103] The initial layers contained in the initial layer set are recursively processed in order from layer high to layer low; the initial layer containing the layer position information is selected based on the recursive processing result, and at least two initial layer pairs are constructed; the initial layers with the same recursive properties are selected in each initial layer pair and merged, and the intermediate layer is generated based on the merging result.

[0104] Specifically, recursive processing refers to recursively processing the initial layer from layers with high visual priority to layers with low visual priority, in order to determine the initial layers with the same recursive attributes; correspondingly, the initial layer pair refers to the layer pair constructed by selecting adjacent initial layers.

[0105] Based on this, during the second merging, the initial layers contained in the initial layer set can be recursively processed in order from layer high to layer low. This allows the initial layers whose layer position information is selected as the layer containing information based on the recursive processing results, constructing at least two initial layer pairs. Then, in each initial layer pair, the initial layers with the same recursive layer attributes are selected and merged, and an intermediate layer can be generated based on the merging result.

[0106] In other words, after obtaining the initial layer set S = S - {s} i ,s j}+{s i, After that, you can start from the highest layer and recursively search downwards for lower layers with contained relationships, such as s i was s j Includes, s j was s k If it includes, then proceed sequentially for s. j and s k s i and s jk Perform the merge and update S = S - {s} j ,s k}+{s jk},S=S-{s i ,s jk}+{s i,,k}

[0107] Continuing with the previous example, the new layer set is obtained as {A, B, C, D, S}. EFAfter that, you can recursively search downwards from the higher layers to find the lower layers that contain the higher layers, thus determining the relationship between layer D and layer S. EF Because of the containment relationship, layer D and layer S can be considered as one. EF The layers are merged, resulting in a new set of layers: {A, B, C, S}. DEF Furthermore, assuming the set also contains layers W, X, Y, and Z, where W is contained within X and Y is contained within Z, then layers W and Y can be merged, and layers X and Z can be merged to facilitate further merging processing in downstream applications.

[0108] In summary, by merging initial layers with the same recursive properties, we can ensure that basic layers at the same level can be merged, thereby generating the corresponding parent layers. This facilitates the representation of the node hierarchy relationship between layers when constructing the layer structure tree.

[0109] Furthermore, during the third merge, considering that the result obtained at this stage will be the final merged structure, in order to ensure the accuracy of the merge, it can be completed by combining it with set conditions; in this embodiment, the specific implementation method is as follows:

[0110] Select a first intermediate layer from the set of intermediate layers, and determine the number of base layers contained in the first intermediate layer, as well as the text layer attribute information of the text layers contained therein;

[0111] Based on the quantity information and the text layer attribute information, if the first intermediate layer satisfies the layer merging condition, an intermediate layer whose layer position information between it and the first intermediate layer is layer-containing information is found in the intermediate layer set and designated as the second intermediate layer; an intermediate layer group is determined in the intermediate layer set based on the first intermediate layer and the second intermediate layer, and a third intermediate layer is generated based on the intermediate layer group; the third intermediate layer and the first intermediate layer are merged, and the second intermediate layer and the fourth intermediate layer in the intermediate layer set are merged, and the target layer set is generated based on the merging result.

[0112] Based on the quantity information and the text layer attribute information, if it is determined that the first intermediate layer does not meet the layer merging condition, a fifth intermediate layer with a visual priority lower than the first intermediate layer is searched in the intermediate layer set; the first intermediate layer and the fifth intermediate layer are merged, and the target layer set is generated based on the merging result.

[0113] Specifically, the first intermediate layer refers to the intermediate layer selected from the intermediate layer set that needs to be processed at the current moment. Correspondingly, considering that the intermediate layers in the intermediate layer set are obtained by merging the initial layers in the initial layer set, the number of base layers contained in each intermediate layer can be determined. Correspondingly, the text layer attribute information refers to the attribute description information corresponding to the text layers contained in the intermediate layers. Correspondingly, the second intermediate layer refers to the intermediate layer determined in the intermediate layer set that is related to the first intermediate layer. Correspondingly, the intermediate layer group refers to the subset of intermediate layer groups extracted from the intermediate layer set based on the first and second intermediate layers. Correspondingly, the third intermediate layer refers to the layer obtained after merging the intermediate layers in the intermediate layer group. Correspondingly, the fifth intermediate layer refers to the layer selected in the intermediate layer set that is related to the first midpoint layer and has a set priority.

[0114] Based on this, firstly, a first intermediate layer is selected from the intermediate layer set, and the number of base layers contained in the first intermediate layer and the text layer attribute information of the text layers it contains are determined. Then, based on the number and text layer attribute information, if the first intermediate layer meets the layer merging conditions, it can be considered the main body. Therefore, an intermediate layer whose layer position information is the layer containing information between it and the first intermediate layer is found in the intermediate layer set and designated as the second intermediate layer. Next, an intermediate layer group is determined in the intermediate layer set based on the first and second intermediate layers. Then, a third intermediate layer is generated based on the intermediate layer group. This completes the layer merging process for this level. Finally, the third intermediate layer and the first intermediate layer are merged, as are the second intermediate layer and the fourth intermediate layer in the intermediate layer set. The target layer set is then generated based on the merging results.

[0115] Furthermore, if the first intermediate layer does not meet the layer merging conditions based on the quantity information and text layer attribute information, it means that the currently selected first intermediate layer cannot be regarded as the main body. Therefore, the fifth intermediate layer with a lower visual priority than the first intermediate layer can be found in the intermediate layer set. Then, the first intermediate layer and the fifth intermediate layer are merged, and the target layer set can be generated based on the merging result.

[0116] In other words, if the currently selected layer and the lower layer are in a overlapping or intersecting relationship, it is necessary to determine whether the current layer meets the subject condition; assuming the current layer is s * The lower layer is s i When s * The number of base layers contained is greater than 2 and s *A layer containing a text layer that is not rotated can be considered the main subject. If the currently selected layer is the main subject, continue searching downwards until a layer containing "s" is found. * The layer, set to s j , for {s j+1 ,…,s *1}; At this point, returning to the process of merging the intermediate layer and the target layer will yield the new layer s. j+1,…,*-1 , for s j+1,…,*-1 and s * Merge, then process s j and s j+1,…,* After merging and updating, the set becomes S = S - {s} j+1,…,*-1 ,s *}+{s j+1,…,*}, S=S-{s j ,s j+1,…,*}+{s j,…,* If the currently selected layer is not the main subject, then S can be merged. i and S * After the update, the set is S = S - {s} i ,s *}+{s i,*}

[0117] Continuing with the previous example, the new layer set obtained above is {A, B, C, S}. DEF After that, the new layer set can be set as {A, B, C, S}. DEF The analysis of each layer contained in the} was conducted, and the relationship between A and B and S was determined. DEF Because they have a merge relationship, layer S can be merged. DEF Merge layers A and B to obtain a new layer S. ABDEF The resulting set is {C, S} ABDEF This is to facilitate the subsequent construction of the layer structure tree by combining the merging relationships between the sets of each stage.

[0118] In summary, by merging the basic layer set multiple times, a progressive merging process can be achieved. This ensures that the merging process is recorded, facilitating the subsequent construction of the layer structure tree to clearly reflect the hierarchical structure.

[0119] Step S208: Based on the merging information between the base layer set, the initial layer set, the intermediate layer set, and the target layer set, construct the layer structure tree corresponding to the target object.

[0120] Specifically, after obtaining the base layer set, initial layer set, intermediate layer set, and target layer set through multiple merging processes, it can be determined that the merging process of the four layer sets is carried out in a progressive manner. This merging relationship can be mapped to the connection relationship between parent and child nodes in the layer structure tree. Therefore, based on the merging information between the base layer set, initial layer set, intermediate layer set, and target layer set, the layer structure tree corresponding to the target object can be constructed to facilitate downstream business to use the layer structure tree to store the components contained in the target object, etc.

[0121] Specifically, the merge information refers to the information recorded when merging different layer sets, which is used to map the connection relationships between nodes in the layer structure tree. Correspondingly, the layer structure tree is a structure tree that represents the hierarchical structure of the components corresponding to the base layer in the target object based on the merge information. Here, tree nodes are the layers to which the components belong, and edges are the hierarchical relationships between nodes.

[0122] Furthermore, after obtaining the layer sets corresponding to different merging stages, the merging information between each layer set can be determined. This merging information can characterize the hierarchical relationship between layers, thus a layer structure tree can be generated by combining the merging information. In this embodiment, the specific implementation method is as follows:

[0123] Layer nodes are generated based on the layers contained in the base layer set, the initial layer set, the intermediate layer set, and the target layer set, respectively; layer edges are generated based on the merging information between the base layer set, the initial layer set, the intermediate layer set, and the target layer set; the layer nodes and the layer edges are connected, and a layer structure tree corresponding to the target object is generated based on the connection results.

[0124] Specifically, layer nodes refer to nodes constructed based on the layers contained in each layer set. Based on this, layer nodes can first be generated from the layers contained in the base layer set, initial layer set, intermediate layer set, and target layer set, respectively; secondly, layer edges can be generated based on the merging information between the base layer set, initial layer set, intermediate layer set, and target layer set; finally, the layer nodes and layer edges can be connected to generate the layer structure tree corresponding to the target object based on the connection results.

[0125] Continuing with the previous example, after obtaining the base layer set {A, B, C, D, E, F}, the initial layer set {A, B, C, D, S}... EF The intermediate layer set {A, B, C, S} DEF}, and the target layer set {C, S} ABDEF After that, you can first base it on layers A, B, C, D, E, F, SDEF S ABDEF Multiple layer nodes are generated, and then edges are established between nodes based on the merging relationship between sets. The nodes are then connected using the edges to obtain the corresponding layer structure tree of the design draft, which facilitates the subsequent storage and use of the components contained in the design draft.

[0126] The information processing method provided in this embodiment, in order to quickly and efficiently complete the hierarchical structure analysis between basic layers in a target object, first obtains a set of basic layers composed of multiple basic layers contained in the target object. Then, it determines the layer position information between adjacent basic layers in the set, and performs a first merging of the basic layers in the set based on the layer position information to obtain an initial layer set. Next, it performs a second merging of initial layers with the same recursive attributes in the initial layer set to obtain an intermediate layer set. Finally, it performs a third merging of the intermediate layers in the intermediate layer set according to the layer merging conditions to obtain the target layer set. This allows for a preliminary analysis of the hierarchical relationships, i.e., the superior-subordinate relationships, between the layers based on the merging relationships. Finally, based on the merging information between the basic layer set, the initial layer set, the intermediate layer set, and the target layer set, a layer structure tree corresponding to the target object is constructed. This allows the hierarchical relationships between each basic layer to be mined through merging, and the construction of a hierarchical structure tree based on these relationships provides a more intuitive feedback on the hierarchical relationships of the components corresponding to the layers contained in the target object. This not only saves more time in hierarchical structure analysis but also makes it more convenient for downstream business applications.

[0127] The following is in conjunction with the appendix Figure 4 Taking the application of the information processing method provided in this specification in a component design scenario as an example, the information processing method will be further explained. Among other things, Figure 4 The present specification shows a flowchart of an information processing method according to an embodiment, which specifically includes the following steps:

[0128] Step S402: Obtain the multiple basic design layers contained in the target object, and determine the layer attribute information corresponding to each basic design layer.

[0129] Step S404: Filter the multiple basic design layers according to the layer attribute information corresponding to each basic design layer, obtain the multiple basic layers according to the filtering results, and construct the basic layer set according to the multiple basic layers.

[0130] Step S406: Determine the basic element corresponding to each basic layer in the basic layer set, and construct a bounding box for each basic element corresponding to the basic layer.

[0131] Step S408: Calculate the position information between the bounding boxes corresponding to the basic layers based on the adjacency relationship between the basic layers in the basic layer set, and use this information as the layer position information.

[0132] Specifically, determining the layer position information between the first and second basic layers that are adjacent in the set of basic layers includes: when the visual priority of the first basic layer is lower than that of the second basic layer, and the bounding box corresponding to the first basic layer contains the bounding box corresponding to the second basic layer, determining the layer position information between the first and second basic layers as layer containment information; when the visual priority of the first basic layer is higher than that of the second basic layer, and the bounding box corresponding to the first basic layer contains the bounding box corresponding to the second basic layer, determining the layer position information between the first and second basic layers as layer coverage information; and when there is an overlapping area between the bounding box corresponding to the first basic layer and the bounding box corresponding to the second basic layer, determining the layer position information between the first and second basic layers as layer intersection information.

[0133] Step S410: Determine the layer attribute information corresponding to each basic layer in the basic layer set.

[0134] Step S412: Based on the layer attribute information corresponding to each base layer, select base layers with the same color and layer position information that are layer inclusion information or layer intersection information, merge them, and generate the initial layer set based on the merging result.

[0135] Step S414: Recursively process the initial layers contained in the initial layer set in order from layer high to layer low.

[0136] Step S416: Select the layer position information as the initial layer containing the information based on the recursive processing result, and construct at least two initial layer pairs.

[0137] Step S418: Select initial layers with the same recursive properties in each initial layer pair and merge them to generate the intermediate layer based on the merging result.

[0138] Step S420: Select a first intermediate layer from the set of intermediate layers, and determine the number of base layers contained in the first intermediate layer, as well as the text layer attribute information of the text layers contained therein.

[0139] Step S422: Based on the quantity information and the text layer attribute information, if the first intermediate layer satisfies the layer merging condition, find the intermediate layer in the intermediate layer set whose layer position information is the layer containing information between it and the first intermediate layer, and use it as the second intermediate layer.

[0140] Step S424: Determine an intermediate layer group in the intermediate layer set based on the first intermediate layer and the second intermediate layer, and generate a third intermediate layer based on the intermediate layer group.

[0141] Step S426: Merge the third intermediate layer and the first intermediate layer, and merge the second intermediate layer and the fourth intermediate layer in the intermediate layer set, and generate the target layer set based on the merging result.

[0142] Step S428: Generate layer nodes based on the layers contained in the base layer set, the initial layer set, the intermediate layer set, and the target layer set, respectively.

[0143] Step S430: Based on the merging information between the base layer set, the initial layer set, the intermediate layer set, and the target layer set, generate layer edges.

[0144] Step S432: Connect the layer nodes and the layer edges, and generate the layer structure tree corresponding to the target object based on the connection results.

[0145] The information processing method provided in this embodiment, in order to quickly and efficiently complete the hierarchical structure analysis between basic layers in a target object, first obtains a set of basic layers composed of multiple basic layers contained in the target object. Then, it determines the layer position information between adjacent basic layers in the set, and performs a first merging of the basic layers in the set based on the layer position information to obtain an initial layer set. Next, it performs a second merging of initial layers with the same recursive attributes in the initial layer set to obtain an intermediate layer set. Finally, it performs a third merging of the intermediate layers in the intermediate layer set according to the layer merging conditions to obtain the target layer set. This allows for a preliminary analysis of the hierarchical relationships, i.e., the superior-subordinate relationships, between the layers based on the merging relationships. Finally, based on the merging information between the basic layer set, the initial layer set, the intermediate layer set, and the target layer set, a layer structure tree corresponding to the target object is constructed. This allows the hierarchical relationships between each basic layer to be mined through merging, and the construction of a hierarchical structure tree based on these relationships provides a more intuitive feedback on the hierarchical relationships of the components corresponding to the layers contained in the target object. This not only saves more time in hierarchical structure analysis but also makes it more convenient for downstream business applications.

[0146] Corresponding to the above method embodiments, this specification also provides embodiments of an information processing apparatus. Figure 5 A schematic diagram of the structure of an information processing apparatus according to an embodiment of this specification is shown. Figure 5 As shown, the device includes:

[0147] The acquisition module 502 is configured to acquire a set of base layers consisting of multiple base layers contained in the target object;

[0148] The determining module 504 is configured to determine the layer position information between adjacent basic layers in the basic layer set, and merge the basic layers contained in the basic layer set according to the layer position information to obtain an initial layer set;

[0149] The merging module 506 is configured to merge the initial layers with the same recursive attributes in the initial layer set to obtain an intermediate layer set, and to merge the intermediate layers in the intermediate layer set according to the layer merging conditions to obtain a target layer set.

[0150] The construction module 508 is configured to construct a layer structure tree corresponding to the target object based on the merging information between the base layer set, the initial layer set, the intermediate layer set, and the target layer set.

[0151] In an optional embodiment, the acquisition module 502 is further configured to:

[0152] Obtain multiple basic design layers contained in the target object, and determine the layer attribute information corresponding to each basic design layer; filter the multiple basic design layers according to the layer attribute information corresponding to each basic design layer, and obtain the multiple basic layers according to the filtering results; construct the basic layer set according to the multiple basic layers.

[0153] In an optional embodiment, the determining module 504 is further configured to:

[0154] Determine the basic element corresponding to each basic layer in the basic layer set, and construct a bounding box for each basic element; calculate the position information between the bounding boxes corresponding to the basic layers based on the adjacency relationship between the basic layers in the basic layer set, and use it as the layer position information.

[0155] In an optional embodiment, determining the layer position information between the first and second basic layers that have an adjacent relationship in the basic layer set includes:

[0156] When the visual priority of the first base layer is lower than that of the second base layer, and the bounding box corresponding to the first base layer contains the bounding box corresponding to the second base layer, the layer position information between the first base layer and the second base layer is determined to be layer containment information; when the visual priority of the first base layer is higher than that of the second base layer, and the bounding box corresponding to the first base layer contains the bounding box corresponding to the second base layer, the layer position information between the first base layer and the second base layer is determined to be layer coverage information; when there is an overlapping area between the bounding box corresponding to the first base layer and the bounding box corresponding to the second base layer, the layer position information between the first base layer and the second base layer is determined to be layer intersection information.

[0157] In an optional embodiment, the determining module 504 is further configured to:

[0158] Determine the layer attribute information corresponding to each basic layer in the basic layer set; based on the layer attribute information corresponding to each basic layer, select basic layers with the same color and layer position information that is layer inclusion information or layer intersection information and merge them; generate the initial layer set based on the merging result.

[0159] In an optional embodiment, the merging module 506 is further configured to:

[0160] The initial layers contained in the initial layer set are recursively processed in order from layer high to layer low; the initial layer containing the layer position information is selected based on the recursive processing result, and at least two initial layer pairs are constructed; the initial layers with the same recursive properties are selected in each initial layer pair and merged, and the intermediate layer is generated based on the merging result.

[0161] In an optional embodiment, the merging module 506 is further configured to:

[0162] In the intermediate layer set, a first intermediate layer is selected, and the number of base layers contained in the first intermediate layer and the text layer attribute information of the text layers contained therein are determined. Based on the number of base layers and the text layer attribute information, if the first intermediate layer meets the layer merging condition, an intermediate layer with layer position information between it and the first intermediate layer is found in the intermediate layer set and is designated as the second intermediate layer. Based on the first intermediate layer and the second intermediate layer, an intermediate layer group is determined in the intermediate layer set, and a third intermediate layer is generated based on the intermediate layer group. The third intermediate layer and the first intermediate layer are merged, and the second intermediate layer and the fourth intermediate layer in the intermediate layer set are merged. The target layer set is generated based on the merging result.

[0163] In an optional embodiment, the merging module 506 is further configured to:

[0164] Based on the quantity information and the text layer attribute information, if it is determined that the first intermediate layer does not meet the layer merging condition, a fifth intermediate layer with a visual priority lower than the first intermediate layer is searched in the intermediate layer set; the first intermediate layer and the fifth intermediate layer are merged, and the target layer set is generated based on the merging result.

[0165] In an optional embodiment, the building module 508 is further configured to:

[0166] Layer nodes are generated based on the layers contained in the base layer set, the initial layer set, the intermediate layer set, and the target layer set, respectively; layer edges are generated based on the merging information between the base layer set, the initial layer set, the intermediate layer set, and the target layer set; the layer nodes and the layer edges are connected, and a layer structure tree corresponding to the target object is generated based on the connection results.

[0167] The information processing device provided in this embodiment, in order to quickly and efficiently complete the hierarchical structure analysis between basic layers in a target object, can first obtain a set of basic layers composed of multiple basic layers contained in the target object. Then, it can first determine the layer position information between adjacent basic layers in the basic layer set, and perform a first merging of the basic layers contained in the basic layer set based on the layer position information to obtain an initial layer set. Next, it performs a second merging of the initial layers in the initial layer set that have the same recursive attributes to obtain an intermediate layer set. Then, it performs a third merging of the intermediate layers in the intermediate layer set according to the layer merging conditions to obtain the target layer set. This achieves a preliminary analysis of the hierarchical relationship between each layer, i.e., the superior-subordinate relationship, based on the merging relationship. Finally, based on the merging information between the basic layer set, the initial layer set, the intermediate layer set, and the target layer set, it constructs a layer structure tree corresponding to the target object. This allows the hierarchical relationship between each basic layer to be mined through merging, and the hierarchical structure tree constructed based on this hierarchical relationship can more intuitively reflect the hierarchical relationship of the components corresponding to the layers contained in the target object. This not only saves more time in hierarchical structure analysis but also makes it more convenient for downstream business use.

[0168] The above is an illustrative scheme of an information processing device according to this embodiment. It should be noted that the technical solution of this information processing device and the technical solution of the information processing method described above belong to the same concept. For details not described in detail in the technical solution of the information processing device, please refer to the description of the technical solution of the information processing method described above.

[0169] Figure 6 A structural block diagram of a computing device 600 according to an embodiment of this specification is shown. The components of the computing device 600 include, but are not limited to, a memory 610 and a processor 620. The processor 620 is connected to the memory 610 via a bus 630, and a database 650 is used to store data.

[0170] The computing device 600 also includes an access device 640, which enables the computing device 600 to communicate via one or more networks 660. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. The access device 640 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Wi-MAX (Worldwide Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.

[0171] In one embodiment of this application, the aforementioned components of the computing device 600 and Figure 6 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 6 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.

[0172] The computing device 600 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or personal computers (PCs). The computing device 600 can also be a mobile or stationary server.

[0173] The processor 620 is used to implement the steps of the information processing method when executing computer-executable instructions.

[0174] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the information processing method described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the information processing method described above.

[0175] An embodiment of this specification also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are used for an information processing method.

[0176] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the information processing method described above belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the information processing method described above.

[0177] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0178] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added or removed according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.

[0179] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this specification is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this specification. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this specification.

[0180] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0181] The preferred embodiments disclosed above are merely illustrative of this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this specification. These embodiments have been selected and specifically described in this specification to better explain the principles and practical applications of this specification, thereby enabling those skilled in the art to better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.

Claims

1. An information processing method, characterized in that, include: Get the collection of base layers that make up the target object; Determine the layer position information and layer attribute information between adjacent basic layers in the basic layer set, and merge the basic layers contained in the basic layer set according to the layer position information and layer attribute information to obtain an initial layer set; The layer position information refers to the positional relationship between adjacent base layers, including overlapping, containing, or intersecting relationships. Among them, containing means that the bounding box of an element in a lower layer completely contains the bounding box of an element in a higher layer; covering means that the bounding box of an element in a higher layer completely contains the bounding box of an element in a lower layer; intersecting means that the bounding boxes of two elements overlap, but do not satisfy the containing or covering relationship. For the initial layers contained in the initial layer set, recursively process them in order from layer high to layer low; select the initial layer whose layer position information is the layer containing information according to the recursive processing result, construct at least two initial layer pairs, merge the initial layers with the same recursive attributes in the initial layer set to obtain an intermediate layer set, and merge the intermediate layers in the intermediate layer set according to the layer merging condition to obtain the target layer set. Layer nodes are generated based on the base layer set, the initial layer set, the intermediate layer set, and the target layer set. Layer edges are generated based on the merging information between the sets. The layer nodes and the layer edges are connected to construct the layer structure tree corresponding to the target object.

2. The method according to claim 1, characterized in that, The process of obtaining a set of basic layers consisting of multiple basic layers contained in the target object includes: Obtain the multiple basic design layers contained in the target object, and determine the layer attribute information corresponding to each basic design layer; The multiple basic design layers are filtered according to the layer attribute information corresponding to each basic design layer, and the multiple basic layers are obtained based on the filtering results. The base layer set is constructed based on the multiple base layers.

3. The method according to claim 1, characterized in that, The process of determining the layer position information and layer attribute information between adjacent basic layers in the basic layer set includes: Determine the basic elements corresponding to each basic layer in the set of basic layers, and construct a bounding box for each basic element corresponding to the basic layer; Based on the adjacency relationship between the basic layers in the basic layer set, the position information between the bounding boxes corresponding to the basic layers is calculated and used as the layer position information.

4. The method according to claim 3, characterized in that, The determination of layer position information and layer attribute information between the first and second basic layers that are adjacent in the basic layer set includes: If the visual priority of the first base layer is lower than that of the second base layer, and the bounding box corresponding to the first base layer contains the bounding box corresponding to the second base layer, then the layer position information between the first base layer and the second base layer is determined as layer containment information. If the visual priority of the first base layer is greater than that of the second base layer, and the bounding box corresponding to the first base layer contains the bounding box corresponding to the second base layer, the layer position information between the first base layer and the second base layer is determined as layer coverage information. When there is an overlapping area between the bounding box corresponding to the first base layer and the bounding box corresponding to the second base layer, the layer position information between the first base layer and the second base layer is determined as layer intersection information.

5. The method according to claim 3, characterized in that, The step of merging the base layers contained in the base layer set according to the layer position information and layer attribute information to obtain an initial layer set includes: Determine the layer attribute information corresponding to each basic layer in the set of basic layers; Based on the layer attribute information corresponding to each base layer, select base layers with the same color and whose layer position information is layer inclusion information or layer intersection information for merging; The initial layer set is generated based on the merged result.

6. The method according to claim 3, characterized in that, The step of merging the intermediate layers in the intermediate layer set according to the layer merging conditions to obtain the target layer set includes: Select a first intermediate layer from the set of intermediate layers, and determine the number of base layers contained in the first intermediate layer, as well as the text layer attribute information of the text layers contained therein; Based on the quantity information and the text layer attribute information, if the first intermediate layer satisfies the layer merging condition, then in the intermediate layer set, find the intermediate layer whose layer position information between it and the first intermediate layer is the layer containing information, and use it as the second intermediate layer. An intermediate layer group is determined in the intermediate layer set based on the first intermediate layer and the second intermediate layer, and a third intermediate layer is generated based on the intermediate layer group; The third intermediate layer and the first intermediate layer are merged, and the second intermediate layer and the fourth intermediate layer in the intermediate layer set are merged, and the target layer set is generated based on the merging result.

7. The method according to claim 6, characterized in that, After the steps of determining the number of base layers contained in the first intermediate layer and the text layer attribute information of the included text layers are executed, the method further includes: Based on the quantity information and the text layer attribute information, if it is determined that the first intermediate layer does not meet the layer merging condition, a fifth intermediate layer with a visual priority lower than the first intermediate layer is searched in the intermediate layer set. The first intermediate layer and the fifth intermediate layer are merged, and the target layer set is generated based on the merging result.

8. The method according to any one of claims 1-7, characterized in that, The process of generating layer nodes based on the base layer set, the initial layer set, the intermediate layer set, and the target layer set, generating layer edges based on the merging information between the sets, connecting the layer nodes and the layer edges, and constructing the layer structure tree corresponding to the target object includes: Layer nodes are generated based on the layers contained in the base layer set, the initial layer set, the intermediate layer set, and the target layer set, respectively; Based on the merging information between the base layer set, the initial layer set, the intermediate layer set, and the target layer set, layer edges are generated; Connect the layer nodes and the layer edges, and generate the layer structure tree corresponding to the target object based on the connection results.

9. An information processing device, characterized in that, include: The acquisition module is configured to acquire a set of base layers consisting of multiple base layers contained in the target object; The determination module is configured to determine the layer position information and layer attribute information between adjacent basic layers in the basic layer set, and merge the basic layers contained in the basic layer set according to the layer position information and layer attribute information to obtain an initial layer set; The layer position information refers to the positional relationship between adjacent base layers, including overlapping, containing, or intersecting relationships. Among them, containing means that the bounding box of an element in a lower layer completely contains the bounding box of an element in a higher layer; covering means that the bounding box of an element in a higher layer completely contains the bounding box of an element in a lower layer; intersecting means that the bounding boxes of two elements overlap, but do not satisfy the containing or covering relationship. The merging module is configured to recursively process the initial layers contained in the initial layer set in descending order of layer height; select the initial layer whose layer position information is the layer containing information based on the recursive processing result; construct at least two pairs of initial layers; merge the initial layers with the same recursive attributes in the initial layer set to obtain an intermediate layer set; and merge the intermediate layers in the intermediate layer set according to the layer merging conditions to obtain the target layer set. The construction module is configured to generate layer nodes based on the base layer set, the initial layer set, the intermediate layer set, and the target layer set, and to connect the layer nodes and the layer edges based on the generated layer edges between each set to construct the layer structure tree corresponding to the target object.

10. A computing device, characterized in that, It includes a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of the method of any one of claims 1 to 8.

11. A computer-readable storage medium storing computer instructions, characterized in that, When executed by the processor, this instruction implements the steps of the method of any one of claims 1 to 8.